okgeometry-api 1.1.21 → 1.1.23
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/NurbsCurve.d.ts.map +1 -1
- package/dist/NurbsCurve.js.map +1 -1
- package/dist/wasm-base64.d.ts +1 -1
- package/dist/wasm-base64.d.ts.map +1 -1
- package/dist/wasm-base64.js +1 -1
- package/dist/wasm-base64.js.map +1 -1
- package/dist/wasm-bindings.d.ts +6 -7
- package/dist/wasm-bindings.d.ts.map +1 -1
- package/dist/wasm-bindings.js +6 -7
- package/dist/wasm-bindings.js.map +1 -1
- package/package.json +1 -5
- package/src/NurbsCurve.ts +2 -3
- package/src/wasm-base64.ts +1 -1
- package/src/wasm-bindings.d.ts +6 -7
- package/src/wasm-bindings.js +6 -7
package/src/wasm-bindings.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
export function arc_length(radius: number, start_angle: number, end_angle: number): number;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Evaluate a point on an arc at parameter t
|
|
10
|
+
* Evaluate a point on an arc at parameter t ∈ [0,1].
|
|
11
11
|
* Returns [x, y, z].
|
|
12
12
|
*/
|
|
13
13
|
export function arc_point_at(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number, start_angle: number, end_angle: number, t: number): Float64Array;
|
|
@@ -26,7 +26,7 @@ export function chamfer_polycurve(coords: Float64Array, distance: number): Float
|
|
|
26
26
|
export function circle_length(radius: number): number;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Evaluate a point on a circle at parameter t
|
|
29
|
+
* Evaluate a point on a circle at parameter t ∈ [0,1].
|
|
30
30
|
* Returns [x, y, z].
|
|
31
31
|
*/
|
|
32
32
|
export function circle_point_at(cx: number, cy: number, cz: number, nx: number, ny: number, nz: number, radius: number, t: number): Float64Array;
|
|
@@ -100,7 +100,7 @@ export function line_length(x1: number, y1: number, z1: number, x2: number, y2:
|
|
|
100
100
|
export function line_offset(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, distance: number, nx: number, ny: number, nz: number): Float64Array;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* Evaluate a point on a line segment at parameter t
|
|
103
|
+
* Evaluate a point on a line segment at parameter t ∈ [0,1].
|
|
104
104
|
* Returns [x, y, z].
|
|
105
105
|
*/
|
|
106
106
|
export function line_point_at(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, t: number): Float64Array;
|
|
@@ -298,7 +298,7 @@ export function mesh_create_sphere(radius: number, segments: number, rings: numb
|
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* Evaluate a point on a mesh surface at parametric coordinates (u, v).
|
|
301
|
-
* Maps u
|
|
301
|
+
* Maps u ∈ [0,1] and v ∈ [0,1] to the mesh's AABB bounding box,
|
|
302
302
|
* then casts a ray perpendicular to the best-fit projection plane.
|
|
303
303
|
* Returns [x, y, z] of the intersection point, or [NaN, NaN, NaN] if no hit.
|
|
304
304
|
*/
|
|
@@ -394,8 +394,7 @@ export function mesh_is_closed_volume(vertex_count: number, buffer: Float64Array
|
|
|
394
394
|
|
|
395
395
|
/**
|
|
396
396
|
* Debug helper: run only the isolated direct-port `MeshGL -> Impl -> MeshGL`
|
|
397
|
-
* normalization owner and return a JSON dump
|
|
398
|
-
* comparison against official manifold-3d import/export, not legacy routing.
|
|
397
|
+
* normalization owner and return a JSON dump for local port validation.
|
|
399
398
|
*/
|
|
400
399
|
export function mesh_manifold_port_import_roundtrip_debug(vertex_count: number, buffer: Float64Array, trusted_input: boolean): string;
|
|
401
400
|
|
|
@@ -543,7 +542,7 @@ export function polycurve_to_nurbs(segment_data: Float64Array): Float64Array;
|
|
|
543
542
|
export function polyline_length(coords: Float64Array): number;
|
|
544
543
|
|
|
545
544
|
/**
|
|
546
|
-
* Evaluate a point on a polyline at parameter t
|
|
545
|
+
* Evaluate a point on a polyline at parameter t ∈ [0,1].
|
|
547
546
|
* Input: flat coords [x1,y1,z1, x2,y2,z2, ...]
|
|
548
547
|
* Returns [x, y, z].
|
|
549
548
|
*/
|
package/src/wasm-bindings.js
CHANGED
|
@@ -13,7 +13,7 @@ export function arc_length(radius, start_angle, end_angle) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Evaluate a point on an arc at parameter t
|
|
16
|
+
* Evaluate a point on an arc at parameter t ∈ [0,1].
|
|
17
17
|
* Returns [x, y, z].
|
|
18
18
|
* @param {number} cx
|
|
19
19
|
* @param {number} cy
|
|
@@ -63,7 +63,7 @@ export function circle_length(radius) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
* Evaluate a point on a circle at parameter t
|
|
66
|
+
* Evaluate a point on a circle at parameter t ∈ [0,1].
|
|
67
67
|
* Returns [x, y, z].
|
|
68
68
|
* @param {number} cx
|
|
69
69
|
* @param {number} cy
|
|
@@ -314,7 +314,7 @@ export function line_offset(x1, y1, z1, x2, y2, z2, distance, nx, ny, nz) {
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
/**
|
|
317
|
-
* Evaluate a point on a line segment at parameter t
|
|
317
|
+
* Evaluate a point on a line segment at parameter t ∈ [0,1].
|
|
318
318
|
* Returns [x, y, z].
|
|
319
319
|
* @param {number} x1
|
|
320
320
|
* @param {number} y1
|
|
@@ -1193,7 +1193,7 @@ export function mesh_create_sphere(radius, segments, rings) {
|
|
|
1193
1193
|
|
|
1194
1194
|
/**
|
|
1195
1195
|
* Evaluate a point on a mesh surface at parametric coordinates (u, v).
|
|
1196
|
-
* Maps u
|
|
1196
|
+
* Maps u ∈ [0,1] and v ∈ [0,1] to the mesh's AABB bounding box,
|
|
1197
1197
|
* then casts a ray perpendicular to the best-fit projection plane.
|
|
1198
1198
|
* Returns [x, y, z] of the intersection point, or [NaN, NaN, NaN] if no hit.
|
|
1199
1199
|
* @param {number} vertex_count
|
|
@@ -1493,8 +1493,7 @@ export function mesh_is_closed_volume(vertex_count, buffer) {
|
|
|
1493
1493
|
|
|
1494
1494
|
/**
|
|
1495
1495
|
* Debug helper: run only the isolated direct-port `MeshGL -> Impl -> MeshGL`
|
|
1496
|
-
* normalization owner and return a JSON dump
|
|
1497
|
-
* comparison against official manifold-3d import/export, not legacy routing.
|
|
1496
|
+
* normalization owner and return a JSON dump for local port validation.
|
|
1498
1497
|
* @param {number} vertex_count
|
|
1499
1498
|
* @param {Float64Array} buffer
|
|
1500
1499
|
* @param {boolean} trusted_input
|
|
@@ -1959,7 +1958,7 @@ export function polyline_length(coords) {
|
|
|
1959
1958
|
}
|
|
1960
1959
|
|
|
1961
1960
|
/**
|
|
1962
|
-
* Evaluate a point on a polyline at parameter t
|
|
1961
|
+
* Evaluate a point on a polyline at parameter t ∈ [0,1].
|
|
1963
1962
|
* Input: flat coords [x1,y1,z1, x2,y2,z2, ...]
|
|
1964
1963
|
* Returns [x, y, z].
|
|
1965
1964
|
* @param {Float64Array} coords
|