nodi-modular 0.0.0 → 0.0.1
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.d.ts +6 -4
- package/index.js +1 -1
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export interface EvaluationInterop {
|
|
|
40
40
|
geometryIdentifiers: GeometryIdentifier[];
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
export type GeometryInteropHandleProxy = {
|
|
43
|
+
export type GeometryInteropHandleProxy = { variant: "Mesh"; data: MeshInteropHandle } | { variant: "Curve"; data: CurveInteropHandle } | { variant: "Group"; data: GroupInteropHandle };
|
|
44
44
|
|
|
45
45
|
export interface GeometryIdentifier {
|
|
46
46
|
nodeId?: NodeId;
|
|
@@ -127,6 +127,8 @@ export type Point2<T = number> = Point<T, 2>;
|
|
|
127
127
|
export type Vector2<T = number> = SVector<T, 2>;
|
|
128
128
|
export type Point3<T = number> = Point<T, 3>;
|
|
129
129
|
export type Vector3<T = number> = SVector<T, 3>;
|
|
130
|
+
export type Point4<T = number> = Point<T, 4>;
|
|
131
|
+
export type Vector4<T = number> = SVector<T, 4>;
|
|
130
132
|
export type Transform3<T = number> = FixedLengthArray<T, 16>;
|
|
131
133
|
|
|
132
134
|
|
|
@@ -237,7 +239,7 @@ export interface Graph<T, U> {
|
|
|
237
239
|
|
|
238
240
|
|
|
239
241
|
export type NurbsCurve3D<T = number> = {
|
|
240
|
-
control_points:
|
|
242
|
+
control_points: Point4<T>[];
|
|
241
243
|
knots: T[];
|
|
242
244
|
degree: T;
|
|
243
245
|
};
|
|
@@ -285,7 +287,7 @@ export type BoundingBox3D = {
|
|
|
285
287
|
max: Vector3;
|
|
286
288
|
};
|
|
287
289
|
|
|
288
|
-
export type GeometryInterop = {
|
|
290
|
+
export type GeometryInterop = { variant: "Mesh"; data: MeshInterop } | { variant: "Curve"; data: CurveInterop } | { variant: "Point"; data: PointCloudInterop } | { variant: "Plane"; data: Plane } | { variant: "Group"; data: GeometryInterop[] };
|
|
289
291
|
|
|
290
292
|
export interface CurveInterop {
|
|
291
293
|
vertices: [number, number, number][];
|
|
@@ -343,7 +345,7 @@ export type PolylineCurve3D = {
|
|
|
343
345
|
|
|
344
346
|
|
|
345
347
|
export type NurbsSurface3D<T = number> = {
|
|
346
|
-
control_points:
|
|
348
|
+
control_points: Point4<T>[][];
|
|
347
349
|
u_knots: T[];
|
|
348
350
|
v_knots: T[];
|
|
349
351
|
u_degree: T;
|
package/index.js
CHANGED
|
@@ -691,7 +691,7 @@ function __wbg_get_imports() {
|
|
|
691
691
|
const ret = wasm.memory;
|
|
692
692
|
return ret;
|
|
693
693
|
};
|
|
694
|
-
imports.wbg.
|
|
694
|
+
imports.wbg.__wbindgen_closure_wrapper2514 = function(arg0, arg1, arg2) {
|
|
695
695
|
const ret = makeMutClosure(arg0, arg1, 538, __wbg_adapter_52);
|
|
696
696
|
return ret;
|
|
697
697
|
};
|
package/index_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"Masatatsu Nakamura <masatatsu.nakamura@gmail.com"
|
|
6
6
|
],
|
|
7
7
|
"description": "Modular is a module project designed to import node graphs created in Nodi in JSON format, enabling the extraction of geometric data generated based on the node graph structure.",
|
|
8
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.1",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|