simulationjsv2 0.10.4 → 0.10.5

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.
Files changed (2) hide show
  1. package/dist/graphics.js +2 -0
  2. package/package.json +1 -1
package/dist/graphics.js CHANGED
@@ -118,11 +118,13 @@ export class SimulationElement3d {
118
118
  this.geometry.setSubdivisions(divisions, vertexLimit);
119
119
  this.vertexCache.updated();
120
120
  this.geometry.compute();
121
+ this.geometry.triangulate();
121
122
  }
122
123
  clearSubdivisions() {
123
124
  this.geometry.clearSubdivisions();
124
125
  this.vertexCache.updated();
125
126
  this.geometry.compute();
127
+ this.geometry.triangulate();
126
128
  }
127
129
  setSubdivisionVertexLimit(limit) {
128
130
  this.geometry.setSubdivisionVertexLimit(limit);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "types": "./dist/index.d.ts",
6
6
  "author": "Jackson Otto",
7
7
  "description": "A simple graphics library using WebGPU",
8
- "version": "0.10.4",
8
+ "version": "0.10.5",
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": "./dist/index.js",