opengeometry 2.0.4 → 2.0.6
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/index.js +21 -21
- package/index.js.map +1 -1
- package/opengeometry/pkg/opengeometry.d.ts +205 -205
- package/opengeometry/pkg/opengeometry.js +22 -22
- package/opengeometry/pkg/opengeometry_bg.wasm +0 -0
- package/opengeometry/pkg/opengeometry_bg.wasm.d.ts +205 -205
- package/opengeometry_bg.wasm +0 -0
- package/opengeometry_bg.wasm.d.ts +205 -205
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -159,6 +159,22 @@ function getArrayF64FromWasm0(ptr, len) {
|
|
|
159
159
|
ptr = ptr >>> 0;
|
|
160
160
|
return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
|
|
161
161
|
}
|
|
162
|
+
let cachedDataViewMemory0 = null;
|
|
163
|
+
function getDataViewMemory0() {
|
|
164
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
165
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
166
|
+
}
|
|
167
|
+
return cachedDataViewMemory0;
|
|
168
|
+
}
|
|
169
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
170
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
171
|
+
for (let i = 0; i < array.length; i++) {
|
|
172
|
+
const add = addToExternrefTable0(array[i]);
|
|
173
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
174
|
+
}
|
|
175
|
+
WASM_VECTOR_LEN = array.length;
|
|
176
|
+
return ptr;
|
|
177
|
+
}
|
|
162
178
|
/**
|
|
163
179
|
* @param {string} local_brep_serialized
|
|
164
180
|
* @param {number} height
|
|
@@ -185,21 +201,8 @@ function extrudeBrepFace$1(local_brep_serialized, height) {
|
|
|
185
201
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
186
202
|
}
|
|
187
203
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
191
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
192
|
-
}
|
|
193
|
-
return cachedDataViewMemory0;
|
|
194
|
-
}
|
|
195
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
196
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
197
|
-
for (let i = 0; i < array.length; i++) {
|
|
198
|
-
const add = addToExternrefTable0(array[i]);
|
|
199
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
200
|
-
}
|
|
201
|
-
WASM_VECTOR_LEN = array.length;
|
|
202
|
-
return ptr;
|
|
204
|
+
function isLikeNone(x) {
|
|
205
|
+
return x === undefined || x === null;
|
|
203
206
|
}
|
|
204
207
|
function getArrayJsValueFromWasm0(ptr, len) {
|
|
205
208
|
ptr = ptr >>> 0;
|
|
@@ -211,9 +214,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
211
214
|
wasm.__externref_drop_slice(ptr, len);
|
|
212
215
|
return result;
|
|
213
216
|
}
|
|
214
|
-
function isLikeNone(x) {
|
|
215
|
-
return x === undefined || x === null;
|
|
216
|
-
}
|
|
217
217
|
/**
|
|
218
218
|
* Wasm entry point for union.
|
|
219
219
|
* @param {string} lhs_brep_serialized
|
|
@@ -4996,7 +4996,7 @@ class OGSweep {
|
|
|
4996
4996
|
* @returns {Vector3}
|
|
4997
4997
|
*/
|
|
4998
4998
|
get_anchor() {
|
|
4999
|
-
const ret = wasm.
|
|
4999
|
+
const ret = wasm.ogarc_get_anchor(this.__wbg_ptr);
|
|
5000
5000
|
return Vector3.__wrap(ret);
|
|
5001
5001
|
}
|
|
5002
5002
|
/**
|
|
@@ -10222,7 +10222,7 @@ function createOffsetExample(scene) {
|
|
|
10222
10222
|
],
|
|
10223
10223
|
color: 0x0f172a,
|
|
10224
10224
|
});
|
|
10225
|
-
const polylineOffset = basePolyline.getOffset(0.45,
|
|
10225
|
+
const polylineOffset = basePolyline.getOffset(0.45, 35.0, true);
|
|
10226
10226
|
const polylineOffsetPrimitive = new Polyline({
|
|
10227
10227
|
points: polylineOffset.points,
|
|
10228
10228
|
color: 0xdc2626,
|
|
@@ -10308,7 +10308,7 @@ function createWallFromOffsetsExample(scene) {
|
|
|
10308
10308
|
});
|
|
10309
10309
|
const wallThickness = 0.45;
|
|
10310
10310
|
const half = wallThickness * 0.5;
|
|
10311
|
-
const acuteThreshold =
|
|
10311
|
+
const acuteThreshold = 35.0;
|
|
10312
10312
|
const bevel = true;
|
|
10313
10313
|
const leftOffset = centerline.getOffset(half, acuteThreshold, bevel);
|
|
10314
10314
|
const rightOffset = centerline.getOffset(-0.225, acuteThreshold, bevel);
|