@flighthq/mesh 0.3.0-next.1032.e2b99fc → 0.3.0-next.1220.6982c21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { CANONICAL_MESH_GEOMETRY_LAYOUT, CANONICAL_SKINNED_MESH_GEOMETRY_LAYOUT, addMeshGeometrySubset, blendMeshGeometryMorph, captureMeshMorphBindPose, centerMeshGeometry, cloneMeshGeometry, cloneMeshGeometryForDeformation, compactMeshGeometryVertices, computeMeshGeometryBoundingSphere, computeMeshGeometryBounds, computeMeshGeometryFlatNormals, computeMeshGeometryNormals, computeMeshGeometryTangents, computeMeshGeometryWireframeIndices, convertMeshGeometryLayout, createBoxMeshGeometry, createCapsuleMeshGeometry, createCircleMeshGeometry, createConeMeshGeometry, createCylinderMeshGeometry, createDodecahedronMeshGeometry, createIcosahedronMeshGeometry, createIcosphereMeshGeometry, createMeshGeometry, createMeshGeometryFromAttributes, createOctahedronMeshGeometry, createPlaneMeshGeometry, createPolyhedronMeshGeometry, createQuadMeshGeometry, createRingMeshGeometry, createSphereMeshGeometry, createTetrahedronMeshGeometry, createTorusKnotMeshGeometry, createTorusMeshGeometry, destroyMeshGeometryGlData, destroyMeshGeometryWgpuData, expandMeshGeometryIndices, getMeshGeometryIndexCount, getMeshGeometryMorphBindPose, getMeshGeometrySkinBindPose, getMeshGeometrySubsetTriangleCount, getMeshGeometryTriangleCount, getMeshGeometryTriangleSubsetIndex, getMeshGeometryTriangleVertexIndices, getMeshGeometryVertexColor0, getMeshGeometryVertexCount, getMeshGeometryVertexJoints0, getMeshGeometryVertexNormal, getMeshGeometryVertexPosition, getMeshGeometryVertexTangent, getMeshGeometryVertexUv0, getMeshGeometryVertexUv1, getMeshGeometryVertexWeights0, getVertexAttribute, getVertexAttributeFloatOffset, hasMeshGeometrySkin, indexMeshGeometryVertices, mergeMeshGeometries, offsetMeshGeometryUvs, refreshMeshGeometryBounds, scaleMeshGeometry, scaleMeshGeometryUvs, setMeshGeometryMorphBindPose, setMeshGeometrySkinBindPose, setMeshGeometrySubsets, setMeshGeometryVertexColor0, setMeshGeometryVertexJoints0, setMeshGeometryVertexNormal, setMeshGeometryVertexPosition, setMeshGeometryVertexTangent, setMeshGeometryVertexUv0, setMeshGeometryVertexUv1, setMeshGeometryVertexWeights0, transformMeshGeometry, transformMeshGeometryInto, translateMeshGeometry, updateMeshMorph, validateMeshGeometry, weldMeshGeometryVertices, wrapMeshGeometryUvs, } from './contract';
1
+ export { CANONICAL_MESH_GEOMETRY_LAYOUT, CANONICAL_SKINNED_MESH_GEOMETRY_LAYOUT, addMeshGeometrySubset, blendMeshGeometryMorph, captureMeshMorphBindPose, centerMeshGeometry, cloneMeshGeometry, cloneMeshGeometryForDeformation, compactMeshGeometryVertices, computeMeshGeometryBoundingSphere, computeMeshGeometryBounds, computeMeshGeometryFlatNormals, computeMeshGeometryNormals, computeMeshGeometryTangents, computeMeshGeometryWireframeIndices, convertMeshGeometryLayout, createBoxMeshGeometry, createCapsuleMeshGeometry, createCircleMeshGeometry, createConeMeshGeometry, createCylinderMeshGeometry, createDodecahedronMeshGeometry, createIcosahedronMeshGeometry, createIcosphereMeshGeometry, createMeshGeometry, createMeshGeometryFromAttributes, createOctahedronMeshGeometry, createPlaneMeshGeometry, createPolyhedronMeshGeometry, createQuadMeshGeometry, createRingMeshGeometry, createSphereMeshGeometry, createTetrahedronMeshGeometry, createTorusKnotMeshGeometry, createTorusMeshGeometry, destroyMeshGeometryGlData, destroyMeshGeometryWgpuData, expandMeshGeometryIndices, getMeshGeometryIndexCount, getMeshGeometryMorphBindPose, getMeshGeometrySkinBindPose, getMeshGeometrySubsetTriangleCount, getMeshGeometryTriangleCount, getMeshGeometryTriangleSubsetIndex, getMeshGeometryTriangleVertexIndices, getMeshGeometryVertexColor0, getMeshGeometryVertexCount, getMeshGeometryVertexJoints0, getMeshGeometryVertexNormal, getMeshGeometryVertexPosition, getMeshGeometryVertexTangent, getMeshGeometryVertexUv0, getMeshGeometryVertexUv1, getMeshGeometryVertexWeights0, getVertexAttribute, getVertexAttributeFloatOffset, hasMeshGeometrySkin, indexMeshGeometryVertices, invalidateMeshGeometry, mergeMeshGeometries, offsetMeshGeometryUvs, refreshMeshGeometryBounds, scaleMeshGeometry, scaleMeshGeometryUvs, setMeshGeometryMorphBindPose, setMeshGeometrySkinBindPose, setMeshGeometrySubsets, setMeshGeometryVertexColor0, setMeshGeometryVertexJoints0, setMeshGeometryVertexNormal, setMeshGeometryVertexPosition, setMeshGeometryVertexTangent, setMeshGeometryVertexUv0, setMeshGeometryVertexUv1, setMeshGeometryVertexWeights0, transformMeshGeometry, transformMeshGeometryInto, translateMeshGeometry, updateMeshMorph, validateMeshGeometry, weldMeshGeometryVertices, wrapMeshGeometryUvs, } from './contract';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,sCAAsC,EACtC,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,+BAA+B,EAC/B,2BAA2B,EAC3B,iCAAiC,EACjC,yBAAyB,EACzB,8BAA8B,EAC9B,0BAA0B,EAC1B,2BAA2B,EAC3B,mCAAmC,EACnC,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,2BAA2B,EAC3B,kBAAkB,EAClB,gCAAgC,EAChC,4BAA4B,EAC5B,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAy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A2B,EAC3B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,kCAAkC,EAClC,4BAA4B,EAC5B,kCAAkC,EAClC,oCAAoC,EACpC,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,6BAA6B,EAC7B,kBAAkB,EAClB,6BAA6B,EAC7B,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,oBAAoB,EACpB,4BAA4B,EAC5B,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,6BAA6B,EAC7B,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { CANONICAL_MESH_GEOMETRY_LAYOUT, CANONICAL_SKINNED_MESH_GEOMETRY_LAYOUT, addMeshGeometrySubset, blendMeshGeometryMorph, captureMeshMorphBindPose, centerMeshGeometry, cloneMeshGeometry, cloneMeshGeometryForDeformation, compactMeshGeometryVertices, computeMeshGeometryBoundingSphere, computeMeshGeometryBounds, computeMeshGeometryFlatNormals, computeMeshGeometryNormals, computeMeshGeometryTangents, computeMeshGeometryWireframeIndices, convertMeshGeometryLayout, createBoxMeshGeometry, createCapsuleMeshGeometry, createCircleMeshGeometry, createConeMeshGeometry, createCylinderMeshGeometry, createDodecahedronMeshGeometry, createIcosahedronMeshGeometry, createIcosphereMeshGeometry, createMeshGeometry, createMeshGeometryFromAttributes, createOctahedronMeshGeometry, createPlaneMeshGeometry, createPolyhedronMeshGeometry, createQuadMeshGeometry, createRingMeshGeometry, createSphereMeshGeometry, createTetrahedronMeshGeometry, createTorusKnotMeshGeometry, createTorusMeshGeometry, destroyMeshGeometryGlData, destroyMeshGeometryWgpuData, expandMeshGeometryIndices, getMeshGeometryIndexCount, getMeshGeometryMorphBindPose, getMeshGeometrySkinBindPose, getMeshGeometrySubsetTriangleCount, getMeshGeometryTriangleCount, getMeshGeometryTriangleSubsetIndex, getMeshGeometryTriangleVertexIndices, getMeshGeometryVertexColor0, getMeshGeometryVertexCount, getMeshGeometryVertexJoints0, getMeshGeometryVertexNormal, getMeshGeometryVertexPosition, getMeshGeometryVertexTangent, getMeshGeometryVertexUv0, getMeshGeometryVertexUv1, getMeshGeometryVertexWeights0, getVertexAttribute, getVertexAttributeFloatOffset, hasMeshGeometrySkin, indexMeshGeometryVertices, mergeMeshGeometries, offsetMeshGeometryUvs, refreshMeshGeometryBounds, scaleMeshGeometry, scaleMeshGeometryUvs, setMeshGeometryMorphBindPose, setMeshGeometrySkinBindPose, setMeshGeometrySubsets, setMeshGeometryVertexColor0, setMeshGeometryVertexJoints0, setMeshGeometryVertexNormal, setMeshGeometryVertexPosition, setMeshGeometryVertexTangent, setMeshGeometryVertexUv0, setMeshGeometryVertexUv1, setMeshGeometryVertexWeights0, transformMeshGeometry, transformMeshGeometryInto, translateMeshGeometry, updateMeshMorph, validateMeshGeometry, weldMeshGeometryVertices, wrapMeshGeometryUvs, } from './contract';
1
+ export { CANONICAL_MESH_GEOMETRY_LAYOUT, CANONICAL_SKINNED_MESH_GEOMETRY_LAYOUT, addMeshGeometrySubset, blendMeshGeometryMorph, captureMeshMorphBindPose, centerMeshGeometry, cloneMeshGeometry, cloneMeshGeometryForDeformation, compactMeshGeometryVertices, computeMeshGeometryBoundingSphere, computeMeshGeometryBounds, computeMeshGeometryFlatNormals, computeMeshGeometryNormals, computeMeshGeometryTangents, computeMeshGeometryWireframeIndices, convertMeshGeometryLayout, createBoxMeshGeometry, createCapsuleMeshGeometry, createCircleMeshGeometry, createConeMeshGeometry, createCylinderMeshGeometry, createDodecahedronMeshGeometry, createIcosahedronMeshGeometry, createIcosphereMeshGeometry, createMeshGeometry, createMeshGeometryFromAttributes, createOctahedronMeshGeometry, createPlaneMeshGeometry, createPolyhedronMeshGeometry, createQuadMeshGeometry, createRingMeshGeometry, createSphereMeshGeometry, createTetrahedronMeshGeometry, createTorusKnotMeshGeometry, createTorusMeshGeometry, destroyMeshGeometryGlData, destroyMeshGeometryWgpuData, expandMeshGeometryIndices, getMeshGeometryIndexCount, getMeshGeometryMorphBindPose, getMeshGeometrySkinBindPose, getMeshGeometrySubsetTriangleCount, getMeshGeometryTriangleCount, getMeshGeometryTriangleSubsetIndex, getMeshGeometryTriangleVertexIndices, getMeshGeometryVertexColor0, getMeshGeometryVertexCount, getMeshGeometryVertexJoints0, getMeshGeometryVertexNormal, getMeshGeometryVertexPosition, getMeshGeometryVertexTangent, getMeshGeometryVertexUv0, getMeshGeometryVertexUv1, getMeshGeometryVertexWeights0, getVertexAttribute, getVertexAttributeFloatOffset, hasMeshGeometrySkin, indexMeshGeometryVertices, invalidateMeshGeometry, mergeMeshGeometries, offsetMeshGeometryUvs, refreshMeshGeometryBounds, scaleMeshGeometry, scaleMeshGeometryUvs, setMeshGeometryMorphBindPose, setMeshGeometrySkinBindPose, setMeshGeometrySubsets, setMeshGeometryVertexColor0, setMeshGeometryVertexJoints0, setMeshGeometryVertexNormal, setMeshGeometryVertexPosition, setMeshGeometryVertexTangent, setMeshGeometryVertexUv0, setMeshGeometryVertexUv1, setMeshGeometryVertexWeights0, transformMeshGeometry, transformMeshGeometryInto, translateMeshGeometry, updateMeshMorph, validateMeshGeometry, weldMeshGeometryVertices, wrapMeshGeometryUvs, } from './contract';
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","s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B,EAC7B,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,YAAY,CAAC"}
@@ -8,6 +8,7 @@ export declare function getMeshGeometryMorphBindPose(geometry: Readonly<MeshGeom
8
8
  export declare function getMeshGeometrySkinBindPose(geometry: Readonly<MeshGeometry>): MeshSkinBindPose | null;
9
9
  export declare function getMeshGeometryVertexCount(geometry: Readonly<MeshGeometry>): number;
10
10
  export declare function hasMeshGeometrySkin(geometry: Readonly<MeshGeometry>): boolean;
11
+ export declare function invalidateMeshGeometry(geometry: MeshGeometry): void;
11
12
  export declare function setMeshGeometryMorphBindPose(geometry: Readonly<MeshGeometry>, bindPose: MeshMorphBindPose | null): void;
12
13
  export declare function setMeshGeometrySkinBindPose(geometry: Readonly<MeshGeometry>, bindPose: MeshSkinBindPose | null): void;
13
14
  //# sourceMappingURL=meshGeometry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meshGeometry.d.ts","sourceRoot":"","sources":["../src/meshGeometry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EAEnB,iBAAiB,EACjB,gBAAgB,EAGjB,MAAM,0BAA0B,CAAC;AAMlC,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,YAAY,CAkC9E;AAOD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,YAAY,CAwBvF;AAMD,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,IAAI,CAGhF;AAMD,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,IAAI,CAGlF;AAGD,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,MAAM,CAElF;AAKD,w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ElF;AAKD,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,iBAAiB,GAAG,IAAI,CAGvG;AAKD,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,gBAAgB,GAAG,IAAI,CAGrG;AAID,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,MAAM,CAEnF;AAKD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,OAAO,CAM7E;AAKD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAEnE;AAKD,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,EAChC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,GACjC,IAAI,CAGN;AAKD,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAGrH"}
@@ -115,6 +115,12 @@ export function hasMeshGeometrySkin(geometry) {
115
115
  }
116
116
  return false;
117
117
  }
118
+ // Marks direct writes to the shared vertex/index payload visible to bounds and every backend upload
119
+ // cache. Mesh package mutators advance this version themselves; callers need this escape hatch only
120
+ // after mutating the public typed arrays directly.
121
+ export function invalidateMeshGeometry(geometry) {
122
+ geometry.version = (geometry.version + 1) >>> 0;
123
+ }
118
124
  // Stores (or clears, with null) the CPU-morph base pose on the geometry's runtime. Called once by the
119
125
  // morph deform glue when a morphed geometry is first captured; pass null to force a recapture (e.g.
120
126
  // after the vertex layout or base data changes). Sibling of setMeshGeometrySkinBindPose.
@@ -1 +1 @@
1
- {"version":3,"file":"meshGeometry.js","sourceRoot":"","sources":["../src/meshGeometry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,C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AAC;AAED,SAAS,wBAAwB,CAC/B,QAA6C,EAC7C,MAAuC;IAEvC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;IAC1C,IAAI,eAAe,IAAI,CAAC;QAAE,OAAO,CAAC,CAAC;IACnC,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC;AACvD,CAAC;AAED,+FAA+F;AAC/F,gGAAgG;AAChG,SAAS,cAAc,CACrB,MAA+E,EAC/E,WAAmB;IAEnB,IAAI,WAAW,GAAG,oBAAoB,IAAI,MAAM,YAAY,WAAW,EAAE,CAAC;QACxE,MAAM,GAAG,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC3C,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAChB,OAAO,GAAG,CAAC;IACb,CAAC;IACD,MAAM,GAAG,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3C,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAChB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,oBAAoB,GAAG,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/mesh",
3
- "version": "0.3.0-next.1032.e2b99fc",
3
+ "version": "0.3.0-next.1220.6982c21",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/flighthq/flight.git",
@@ -36,9 +36,9 @@
36
36
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@flighthq/entity": "0.3.0-next.1032.e2b99fc",
40
- "@flighthq/geometry": "0.3.0-next.1032.e2b99fc",
41
- "@flighthq/types": "0.3.0-next.1032.e2b99fc"
39
+ "@flighthq/entity": "0.3.0-next.1220.6982c21",
40
+ "@flighthq/geometry": "0.3.0-next.1220.6982c21",
41
+ "@flighthq/types": "0.3.0-next.1220.6982c21"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "^5.3.0"
@@ -16,6 +16,7 @@ import {
16
16
  getMeshGeometrySkinBindPose,
17
17
  getMeshGeometryVertexCount,
18
18
  hasMeshGeometrySkin,
19
+ invalidateMeshGeometry,
19
20
  setMeshGeometryMorphBindPose,
20
21
  setMeshGeometrySkinBindPose,
21
22
  } from './meshGeometry';
@@ -196,6 +197,18 @@ describe('hasMeshGeometrySkin', () => {
196
197
  });
197
198
  });
198
199
 
200
+ describe('invalidateMeshGeometry', () => {
201
+ it('advances the shared upload revision as a wrapping u32', () => {
202
+ const geometry = createMeshGeometry({ layout: CANONICAL_LAYOUT, vertices: makeVertices(1) });
203
+ invalidateMeshGeometry(geometry);
204
+ expect(geometry.version).toBe(1);
205
+
206
+ geometry.version = 0xffffffff;
207
+ invalidateMeshGeometry(geometry);
208
+ expect(geometry.version).toBe(0);
209
+ });
210
+ });
211
+
199
212
  describe('setMeshGeometryMorphBindPose', () => {
200
213
  it('stores and clears the morph base pose on the runtime slot', () => {
201
214
  const geometry = createMeshGeometry({ layout: CANONICAL_LAYOUT, vertices: makeVertices(3) });
@@ -1,7 +1,7 @@
1
1
  import { createAabb, createBoundingSphere } from '@flighthq/geometry/contract';
2
2
  import type { VertexAttributeLayout } from '@flighthq/types/contract';
3
3
 
4
- import { createMeshGeometry } from './meshGeometry';
4
+ import { createMeshGeometry, invalidateMeshGeometry } from './meshGeometry';
5
5
  import {
6
6
  computeMeshGeometryBoundingSphere,
7
7
  computeMeshGeometryBounds,
@@ -232,8 +232,8 @@ describe('ensureMeshGeometryBounds', () => {
232
232
  geometry.vertices[12] = 4;
233
233
  expect(ensureMeshGeometryBounds(geometry)?.max.x).toBe(1);
234
234
 
235
- // Bumping the version (what every deform does) is what marks the cache stale.
236
- geometry.version++;
235
+ // The public direct-write escape hatch marks the cache stale.
236
+ invalidateMeshGeometry(geometry);
237
237
  expect(ensureMeshGeometryBounds(geometry)?.max.x).toBe(4);
238
238
  });
239
239