opengeometry 2.0.11 → 2.0.14
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/analytic-worker.js +90 -0
- package/index.d.ts +16 -1
- package/index.js +3222 -3057
- package/index.js.map +1 -1
- package/opengeometry/pkg/opengeometry.d.ts +362 -224
- package/opengeometry/pkg/opengeometry.js +982 -298
- package/opengeometry/pkg/opengeometry_bg.wasm +0 -0
- package/opengeometry/pkg/opengeometry_bg.wasm.d.ts +251 -198
- package/opengeometry_bg.wasm +0 -0
- package/opengeometry_bg.wasm.d.ts +251 -198
- package/package.json +2 -1
- package/src/editor/types.d.ts +1 -1
- package/src/examples/booleans.d.ts +3 -2
- package/src/examples/editor-modes.d.ts +4 -8
- package/src/examples/index.d.ts +1 -0
- package/src/examples/offset-ring-variable.d.ts +13 -0
- package/src/examples/shapes.d.ts +1 -1
- package/src/examples/wall-from-offsets.d.ts +7 -14
- package/src/export/analytic-ifc.d.ts +61 -0
- package/src/freeform/geometry.d.ts +2 -0
- package/src/freeform/index.d.ts +1 -1
- package/src/operations/analytic-errors.d.ts +8 -0
- package/src/operations/boolean.d.ts +9 -141
- package/src/operations/index.d.ts +2 -4
- package/src/operations/loft.d.ts +13 -0
- package/src/operations/offset-regions.d.ts +36 -0
- package/src/primitives/analytic-curve.d.ts +42 -0
- package/src/primitives/arc.d.ts +26 -55
- package/src/primitives/elliptical_arc.d.ts +38 -0
- package/src/primitives/index.d.ts +1 -0
- package/src/rendering/analytic-lod.d.ts +32 -0
- package/src/rendering/analytic-tessellation.d.ts +32 -0
- package/src/shapes/analytic-pattern.d.ts +36 -0
- package/src/shapes/analytic-solid.d.ts +288 -0
- package/src/shapes/cuboid.d.ts +40 -54
- package/src/shapes/cylinder.d.ts +26 -70
- package/src/shapes/opening.d.ts +19 -82
- package/src/shapes/polygon.d.ts +4 -5
- package/src/shapes/solid.d.ts +0 -8
- package/src/shapes/sphere.d.ts +18 -73
- package/src/shapes/sweep.d.ts +0 -5
- package/src/shapes/wedge.d.ts +0 -5
- package/src/toolkit/index.d.ts +0 -4
- package/src/toolkit/wall.d.ts +0 -40
|
@@ -2,29 +2,92 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const extrudeBrepFace: (a: number, b: number, c: number) => [number, number, number, number];
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
16
|
-
export const
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
5
|
+
export const extrudeBrepFaceDirectional: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
|
|
6
|
+
export const analyzeProfile: (a: number, b: number) => [number, number, number, number];
|
|
7
|
+
export const __wbg_ogfreeformeditor_free: (a: number, b: number) => void;
|
|
8
|
+
export const ogfreeformeditor_new: () => number;
|
|
9
|
+
export const ogfreeformeditor_getTopologyRenderData: (a: number, b: number) => [number, number, number, number];
|
|
10
|
+
export const ogfreeformeditor_getFaceInfo: (a: number, b: number, c: number) => [number, number, number, number];
|
|
11
|
+
export const ogfreeformeditor_getEdgeInfo: (a: number, b: number, c: number) => [number, number, number, number];
|
|
12
|
+
export const ogfreeformeditor_getVertexInfo: (a: number, b: number, c: number) => [number, number, number, number];
|
|
13
|
+
export const ogfreeformeditor_getEditCapabilities: (a: number, b: number) => [number, number, number, number];
|
|
14
|
+
export const ogfreeformeditor_getFaceEditCapabilities: (a: number, b: number, c: number) => [number, number, number, number];
|
|
15
|
+
export const ogfreeformeditor_getEdgeEditCapabilities: (a: number, b: number, c: number) => [number, number, number, number];
|
|
16
|
+
export const ogfreeformeditor_getVertexEditCapabilities: (a: number, b: number, c: number) => [number, number, number, number];
|
|
17
|
+
export const ogfreeformeditor_pushPullFace: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
18
|
+
export const ogfreeformeditor_moveFace: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
19
|
+
export const ogfreeformeditor_moveEdge: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
20
|
+
export const ogfreeformeditor_moveVertex: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
21
|
+
export const ogfreeformeditor_extrudeFace: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
22
|
+
export const ogfreeformeditor_cutFace: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
23
|
+
export const ogfreeformeditor_insertVertexOnEdge: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
24
|
+
export const ogfreeformeditor_loopCut: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
25
|
+
export const ogfreeformeditor_removeVertex: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
26
|
+
export const __wbg_ogfreeformgeometry_free: (a: number, b: number) => void;
|
|
27
|
+
export const ogfreeformgeometry_new: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
28
|
+
export const ogfreeformgeometry_id: (a: number) => [number, number];
|
|
29
|
+
export const ogfreeformgeometry_getBrepSerialized: (a: number) => [number, number];
|
|
30
|
+
export const ogfreeformgeometry_getLocalBrepSerialized: (a: number) => [number, number];
|
|
31
|
+
export const ogfreeformgeometry_getGeometrySerialized: (a: number) => [number, number];
|
|
32
|
+
export const ogfreeformgeometry_getGeometryBuffer: (a: number) => [number, number];
|
|
33
|
+
export const ogfreeformgeometry_getLocalGeometryBuffer: (a: number) => [number, number];
|
|
34
|
+
export const ogfreeformgeometry_getOutlineGeometrySerialized: (a: number) => [number, number];
|
|
35
|
+
export const ogfreeformgeometry_getOutlineGeometryBuffer: (a: number) => [number, number];
|
|
36
|
+
export const ogfreeformgeometry_getLocalOutlineGeometryBuffer: (a: number) => [number, number];
|
|
37
|
+
export const ogfreeformgeometry_getPlacementSerialized: (a: number) => [number, number];
|
|
38
|
+
export const ogfreeformgeometry_setPlacementSerialized: (a: number, b: number, c: number) => [number, number];
|
|
39
|
+
export const ogfreeformgeometry_setTransform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
40
|
+
export const ogfreeformgeometry_setTranslation: (a: number, b: number) => void;
|
|
41
|
+
export const ogfreeformgeometry_setRotation: (a: number, b: number) => void;
|
|
42
|
+
export const ogfreeformgeometry_setScale: (a: number, b: number) => [number, number];
|
|
43
|
+
export const ogfreeformgeometry_setAnchor: (a: number, b: number) => void;
|
|
44
|
+
export const ogfreeformeditor_splitEdge: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
45
|
+
export const __wbg_ogcurve_free: (a: number, b: number) => void;
|
|
46
|
+
export const ogcurve_set_id: (a: number, b: number, c: number) => void;
|
|
47
|
+
export const ogcurve_id: (a: number) => [number, number];
|
|
48
|
+
export const ogcurve_new: (a: number, b: number) => number;
|
|
49
|
+
export const ogcurve_set_config: (a: number, b: number, c: number) => [number, number];
|
|
50
|
+
export const ogcurve_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
51
|
+
export const ogcurve_set_translation: (a: number, b: number) => void;
|
|
52
|
+
export const ogcurve_set_rotation: (a: number, b: number) => void;
|
|
53
|
+
export const ogcurve_set_scale: (a: number, b: number) => [number, number];
|
|
54
|
+
export const ogcurve_generate_geometry: (a: number) => [number, number];
|
|
55
|
+
export const ogcurve_get_brep_serialized: (a: number) => [number, number];
|
|
56
|
+
export const ogcurve_get_local_brep_serialized: (a: number) => [number, number];
|
|
57
|
+
export const ogcurve_get_geometry_serialized: (a: number) => [number, number];
|
|
58
|
+
export const ogcurve_get_local_geometry_serialized: (a: number) => [number, number];
|
|
59
|
+
export const ogcurve_get_geometry_buffer: (a: number) => [number, number];
|
|
60
|
+
export const ogcurve_get_local_geometry_buffer: (a: number) => [number, number];
|
|
61
|
+
export const ogcurve_get_anchor: (a: number) => number;
|
|
62
|
+
export const ogcurve_set_anchor: (a: number, b: number) => [number, number];
|
|
63
|
+
export const ogcurve_reset_anchor: (a: number) => [number, number];
|
|
64
|
+
export const ogcurve_get_offset_serialized: (a: number, b: number, c: number, d: number) => [number, number];
|
|
65
|
+
export const ogcurve_dispose: (a: number) => void;
|
|
66
|
+
export const __wbg_ogpolygon_free: (a: number, b: number) => void;
|
|
67
|
+
export const ogpolygon_set_id: (a: number, b: number, c: number) => void;
|
|
68
|
+
export const ogpolygon_id: (a: number) => [number, number];
|
|
69
|
+
export const ogpolygon_new: (a: number, b: number) => number;
|
|
70
|
+
export const ogpolygon_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
71
|
+
export const ogpolygon_set_translation: (a: number, b: number) => void;
|
|
72
|
+
export const ogpolygon_set_rotation: (a: number, b: number) => void;
|
|
73
|
+
export const ogpolygon_set_scale: (a: number, b: number) => [number, number];
|
|
74
|
+
export const ogpolygon_add_vertices: (a: number, b: number, c: number) => [number, number];
|
|
75
|
+
export const ogpolygon_add_holes: (a: number, b: number, c: number) => [number, number];
|
|
76
|
+
export const ogpolygon_clean_geometry: (a: number) => void;
|
|
77
|
+
export const ogpolygon_generate_brep: (a: number) => [number, number];
|
|
78
|
+
export const ogpolygon_get_brep_serialized: (a: number) => [number, number];
|
|
79
|
+
export const ogpolygon_get_local_brep_serialized: (a: number) => [number, number];
|
|
80
|
+
export const ogpolygon_get_geometry_serialized: (a: number) => [number, number];
|
|
81
|
+
export const ogpolygon_get_local_geometry_serialized: (a: number) => [number, number];
|
|
82
|
+
export const ogpolygon_get_geometry_buffer: (a: number) => [number, number];
|
|
83
|
+
export const ogpolygon_get_local_geometry_buffer: (a: number) => [number, number];
|
|
84
|
+
export const ogpolygon_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
85
|
+
export const ogpolygon_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
86
|
+
export const ogpolygon_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
87
|
+
export const ogpolygon_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
88
|
+
export const ogpolygon_get_anchor: (a: number) => number;
|
|
89
|
+
export const ogpolygon_set_anchor: (a: number, b: number) => [number, number];
|
|
90
|
+
export const ogpolygon_reset_anchor: (a: number) => [number, number];
|
|
28
91
|
export const __wbg_ogrectangle_free: (a: number, b: number) => void;
|
|
29
92
|
export const ogrectangle_set_id: (a: number, b: number, c: number) => void;
|
|
30
93
|
export const ogrectangle_id: (a: number) => [number, number];
|
|
@@ -44,6 +107,40 @@ export const ogrectangle_get_geometry_buffer: (a: number) => [number, number];
|
|
|
44
107
|
export const ogrectangle_get_local_geometry_buffer: (a: number) => [number, number];
|
|
45
108
|
export const ogrectangle_get_anchor: (a: number) => number;
|
|
46
109
|
export const ogrectangle_get_offset_serialized: (a: number, b: number, c: number, d: number) => [number, number];
|
|
110
|
+
export const __wbg_ogsweep_free: (a: number, b: number) => void;
|
|
111
|
+
export const ogsweep_set_id: (a: number, b: number, c: number) => void;
|
|
112
|
+
export const ogsweep_id: (a: number) => [number, number];
|
|
113
|
+
export const ogsweep_new: (a: number, b: number) => number;
|
|
114
|
+
export const ogsweep_set_config: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
115
|
+
export const ogsweep_set_config_with_caps: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
116
|
+
export const ogsweep_set_caps: (a: number, b: number, c: number) => [number, number];
|
|
117
|
+
export const ogsweep_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
118
|
+
export const ogsweep_set_translation: (a: number, b: number) => void;
|
|
119
|
+
export const ogsweep_set_rotation: (a: number, b: number) => void;
|
|
120
|
+
export const ogsweep_set_scale: (a: number, b: number) => [number, number];
|
|
121
|
+
export const ogsweep_generate_brep: (a: number) => [number, number];
|
|
122
|
+
export const ogsweep_clean_geometry: (a: number) => void;
|
|
123
|
+
export const ogsweep_generate_geometry: (a: number) => [number, number];
|
|
124
|
+
export const ogsweep_get_brep_serialized: (a: number) => [number, number];
|
|
125
|
+
export const ogsweep_get_local_brep_serialized: (a: number) => [number, number];
|
|
126
|
+
export const ogsweep_get_geometry_serialized: (a: number) => [number, number];
|
|
127
|
+
export const ogsweep_get_local_geometry_serialized: (a: number) => [number, number];
|
|
128
|
+
export const ogsweep_get_geometry_buffer: (a: number) => [number, number];
|
|
129
|
+
export const ogsweep_get_local_geometry_buffer: (a: number) => [number, number];
|
|
130
|
+
export const ogsweep_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
131
|
+
export const ogsweep_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
132
|
+
export const ogsweep_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
133
|
+
export const ogsweep_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
134
|
+
export const ogsweep_set_anchor: (a: number, b: number) => [number, number];
|
|
135
|
+
export const ogsweep_reset_anchor: (a: number) => [number, number];
|
|
136
|
+
export const ogsweep_get_anchor: (a: number) => number;
|
|
137
|
+
export const ogpolygon_set_config: (a: number, b: number, c: number) => [number, number];
|
|
138
|
+
export const ogpolygon_generate_geometry: (a: number) => [number, number];
|
|
139
|
+
export const __wbg_ogoffsetregionsresult_free: (a: number, b: number) => void;
|
|
140
|
+
export const ogoffsetregionsresult_regionsSerialized: (a: number) => [number, number];
|
|
141
|
+
export const offsetPolylineRegions: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
142
|
+
export const offsetPolylineGroupRegions: (a: number, b: number) => [number, number, number];
|
|
143
|
+
export const offsetRingVariable: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
47
144
|
export const __wbg_ogcylinder_free: (a: number, b: number) => void;
|
|
48
145
|
export const ogcylinder_set_id: (a: number, b: number, c: number) => void;
|
|
49
146
|
export const ogcylinder_id: (a: number) => [number, number];
|
|
@@ -68,24 +165,60 @@ export const ogcylinder_get_local_outline_geometry_serialized: (a: number) => [n
|
|
|
68
165
|
export const ogcylinder_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
69
166
|
export const ogcylinder_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
70
167
|
export const ogcylinder_get_anchor: (a: number) => number;
|
|
71
|
-
export const
|
|
72
|
-
export const
|
|
73
|
-
export const
|
|
74
|
-
export const
|
|
75
|
-
export const
|
|
76
|
-
export const
|
|
77
|
-
export const
|
|
78
|
-
export const
|
|
79
|
-
export const
|
|
80
|
-
export const
|
|
81
|
-
export const
|
|
82
|
-
export const
|
|
83
|
-
export const
|
|
84
|
-
export const
|
|
85
|
-
export const
|
|
86
|
-
export const
|
|
87
|
-
export const
|
|
88
|
-
export const
|
|
168
|
+
export const validateAnalyticBrep: (a: number, b: number) => [number, number, number, number];
|
|
169
|
+
export const tessellate_brep: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
170
|
+
export const __wbg_oganalyticbrep_free: (a: number, b: number) => void;
|
|
171
|
+
export const oganalyticbrep_new: (a: number, b: number) => [number, number, number];
|
|
172
|
+
export const oganalyticbrep_from_primitive: (a: number, b: number) => [number, number, number];
|
|
173
|
+
export const oganalyticbrep_get_brep_serialized: (a: number) => [number, number, number, number];
|
|
174
|
+
export const oganalyticbrep_export_step: (a: number, b: number, c: number) => [number, number, number, number];
|
|
175
|
+
export const oganalyticbrep_placed: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
176
|
+
export const oganalyticbrep_prepare_ifc_exchange: (a: number) => [number, number, number, number];
|
|
177
|
+
export const oganalyticbrep_face_normal_at: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
178
|
+
export const oganalyticbrep_classify_point: (a: number, b: number, c: number) => [number, number, number, number];
|
|
179
|
+
export const oganalyticbrep_project_to_2d_lines: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
180
|
+
export const oganalyticbrep_boolean_brep: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
181
|
+
export const oganalyticbrep_shell: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
182
|
+
export const oganalyticbrep_get_boolean_report_serialized: (a: number) => [number, number, number, number];
|
|
183
|
+
export const oganalyticbrep_tessellate: (a: number, b: number) => [number, number, number];
|
|
184
|
+
export const oganalyticbrep_get_face_count: (a: number) => number;
|
|
185
|
+
export const oganalyticbrep_get_edge_count: (a: number) => number;
|
|
186
|
+
export const oganalyticbrep_get_id: (a: number) => [number, number];
|
|
187
|
+
export const oganalyticbrep_get_bounds: (a: number) => [number, number, number, number];
|
|
188
|
+
export const oganalyticbrep_get_vertex_count: (a: number) => number;
|
|
189
|
+
export const oganalyticbrep_get_revision: (a: number) => bigint;
|
|
190
|
+
export const __wbg_oganalytictessellation_free: (a: number, b: number) => void;
|
|
191
|
+
export const oganalytictessellation_positions: (a: number) => [number, number];
|
|
192
|
+
export const oganalytictessellation_normals: (a: number) => [number, number];
|
|
193
|
+
export const oganalytictessellation_indices: (a: number) => [number, number];
|
|
194
|
+
export const oganalytictessellation_triangle_face_ids: (a: number) => [number, number];
|
|
195
|
+
export const oganalytictessellation_outline_positions: (a: number) => [number, number];
|
|
196
|
+
export const oganalytictessellation_outline_edge_ids: (a: number) => [number, number];
|
|
197
|
+
export const oganalytictessellation_revision: (a: number) => bigint;
|
|
198
|
+
export const oganalytictessellation_achieved_deflection: (a: number) => number;
|
|
199
|
+
export const __wbg_ogline_free: (a: number, b: number) => void;
|
|
200
|
+
export const ogline_set_id: (a: number, b: number, c: number) => void;
|
|
201
|
+
export const ogline_id: (a: number) => [number, number];
|
|
202
|
+
export const ogline_new: (a: number, b: number) => number;
|
|
203
|
+
export const ogline_set_config: (a: number, b: number, c: number) => [number, number];
|
|
204
|
+
export const ogline_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
205
|
+
export const ogline_set_translation: (a: number, b: number) => void;
|
|
206
|
+
export const ogline_set_rotation: (a: number, b: number) => void;
|
|
207
|
+
export const ogline_set_scale: (a: number, b: number) => [number, number];
|
|
208
|
+
export const ogline_generate_geometry: (a: number) => [number, number];
|
|
209
|
+
export const ogline_dispose_points: (a: number) => void;
|
|
210
|
+
export const ogline_destroy: (a: number) => void;
|
|
211
|
+
export const ogline_get_brep_serialized: (a: number) => [number, number];
|
|
212
|
+
export const ogline_get_local_brep_serialized: (a: number) => [number, number];
|
|
213
|
+
export const ogline_get_geometry_serialized: (a: number) => [number, number];
|
|
214
|
+
export const ogline_get_local_geometry_serialized: (a: number) => [number, number];
|
|
215
|
+
export const ogline_get_geometry_buffer: (a: number) => [number, number];
|
|
216
|
+
export const ogline_get_local_geometry_buffer: (a: number) => [number, number];
|
|
217
|
+
export const ogline_get_anchor: (a: number) => number;
|
|
218
|
+
export const ogline_set_anchor: (a: number, b: number) => [number, number];
|
|
219
|
+
export const ogline_reset_anchor: (a: number) => [number, number];
|
|
220
|
+
export const ogline_get_offset_serialized: (a: number, b: number, c: number, d: number) => [number, number];
|
|
221
|
+
export const ogline_get_dxf_serialized: (a: number) => [number, number];
|
|
89
222
|
export const __wbg_ogpolyline_free: (a: number, b: number) => void;
|
|
90
223
|
export const ogpolyline_set_id: (a: number, b: number, c: number) => void;
|
|
91
224
|
export const ogpolyline_id: (a: number) => [number, number];
|
|
@@ -109,15 +242,15 @@ export const ogpolyline_get_geometry_serialized: (a: number) => [number, number]
|
|
|
109
242
|
export const ogpolyline_get_local_geometry_serialized: (a: number) => [number, number];
|
|
110
243
|
export const ogpolyline_get_geometry_buffer: (a: number) => [number, number];
|
|
111
244
|
export const ogpolyline_get_local_geometry_buffer: (a: number) => [number, number];
|
|
112
|
-
export const ogpolyline_get_anchor: (a: number) => number;
|
|
113
245
|
export const ogpolyline_set_anchor: (a: number, b: number) => [number, number];
|
|
114
246
|
export const ogpolyline_reset_anchor: (a: number) => [number, number];
|
|
115
|
-
export const
|
|
247
|
+
export const __wbg_workplane_free: (a: number, b: number) => void;
|
|
248
|
+
export const workplane_fromOriginNormal: (a: number, b: number) => number;
|
|
249
|
+
export const workplane_new: (a: number, b: number, c: number) => number;
|
|
250
|
+
export const workplane_liftPoint: (a: number, b: number, c: number) => number;
|
|
251
|
+
export const workplane_liftPoints: (a: number, b: number, c: number) => [number, number];
|
|
252
|
+
export const workplane_normal: (a: number) => number;
|
|
116
253
|
export const ogstlexportresult_bytes: (a: number) => [number, number];
|
|
117
|
-
export const ogstlexportresult_reportJson: (a: number) => [number, number];
|
|
118
|
-
export const __wbg_ogstepexportresult_free: (a: number, b: number) => void;
|
|
119
|
-
export const ogstepexportresult_text: (a: number) => [number, number];
|
|
120
|
-
export const ogstepexportresult_reportJson: (a: number) => [number, number];
|
|
121
254
|
export const __wbg_ogifcexportresult_free: (a: number, b: number) => void;
|
|
122
255
|
export const ogifcexportresult_text: (a: number) => [number, number];
|
|
123
256
|
export const ogifcexportresult_reportJson: (a: number) => [number, number];
|
|
@@ -171,60 +304,60 @@ export const ogentityregistry_registerEntity: (a: number, b: number, c: number,
|
|
|
171
304
|
export const ogentityregistry_unregisterEntity: (a: number, b: number, c: number) => number;
|
|
172
305
|
export const ogentityregistry_clearEntities: (a: number) => void;
|
|
173
306
|
export const ogentityregistry_projectCurrentToViews: (a: number, b: number, c: number) => [number, number, number, number];
|
|
307
|
+
export const ogpolyline_get_anchor: (a: number) => number;
|
|
308
|
+
export const workplane_origin: (a: number) => number;
|
|
309
|
+
export const __wbg_ogstlexportresult_free: (a: number, b: number) => void;
|
|
310
|
+
export const __wbg_ogstepexportresult_free: (a: number, b: number) => void;
|
|
174
311
|
export const ogscenemanager_replaceBrepEntityInCurrentScene: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
175
312
|
export const ogscenemanager_refreshBrepEntityInCurrentScene: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
313
|
+
export const ogstlexportresult_reportJson: (a: number) => [number, number];
|
|
314
|
+
export const ogstepexportresult_reportJson: (a: number) => [number, number];
|
|
315
|
+
export const ogstepexportresult_text: (a: number) => [number, number];
|
|
176
316
|
export const ogscenemanager_replaceBrepEntityInScene: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number];
|
|
177
317
|
export const ogscenemanager_refreshBrepEntityInScene: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number];
|
|
178
318
|
export const ogpolyline_set_config: (a: number, b: number, c: number) => [number, number];
|
|
179
|
-
export const
|
|
180
|
-
export const
|
|
181
|
-
export const
|
|
182
|
-
export const
|
|
183
|
-
export const
|
|
184
|
-
export const
|
|
185
|
-
export const
|
|
186
|
-
export const
|
|
187
|
-
export const
|
|
188
|
-
export const
|
|
189
|
-
export const
|
|
190
|
-
export const
|
|
191
|
-
export const
|
|
192
|
-
export const
|
|
193
|
-
export const
|
|
194
|
-
export const
|
|
195
|
-
export const
|
|
196
|
-
export const
|
|
197
|
-
export const
|
|
198
|
-
export const
|
|
199
|
-
export const
|
|
200
|
-
export const
|
|
201
|
-
export const
|
|
202
|
-
export const
|
|
203
|
-
export const
|
|
204
|
-
export const
|
|
205
|
-
export const
|
|
206
|
-
export const
|
|
207
|
-
export const
|
|
208
|
-
export const
|
|
209
|
-
export const
|
|
210
|
-
export const
|
|
211
|
-
export const
|
|
212
|
-
export const
|
|
213
|
-
export const
|
|
214
|
-
export const
|
|
215
|
-
export const
|
|
216
|
-
export const
|
|
217
|
-
export const
|
|
218
|
-
export const
|
|
219
|
-
export const
|
|
220
|
-
export const
|
|
221
|
-
export const ogpolygon_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
222
|
-
export const ogpolygon_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
223
|
-
export const ogpolygon_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
224
|
-
export const ogpolygon_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
225
|
-
export const ogpolygon_get_anchor: (a: number) => number;
|
|
226
|
-
export const ogpolygon_set_anchor: (a: number, b: number) => [number, number];
|
|
227
|
-
export const ogpolygon_reset_anchor: (a: number) => [number, number];
|
|
319
|
+
export const __wbg_ogarc_free: (a: number, b: number) => void;
|
|
320
|
+
export const ogarc_set_id: (a: number, b: number, c: number) => void;
|
|
321
|
+
export const ogarc_id: (a: number) => [number, number];
|
|
322
|
+
export const ogarc_new: (a: number, b: number) => number;
|
|
323
|
+
export const ogarc_set_config: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
324
|
+
export const ogarc_set_center: (a: number, b: number) => void;
|
|
325
|
+
export const ogarc_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
326
|
+
export const ogarc_set_translation: (a: number, b: number) => void;
|
|
327
|
+
export const ogarc_set_rotation: (a: number, b: number) => void;
|
|
328
|
+
export const ogarc_set_scale: (a: number, b: number) => [number, number];
|
|
329
|
+
export const ogarc_generate_geometry: (a: number) => [number, number];
|
|
330
|
+
export const ogarc_dispose_points: (a: number) => void;
|
|
331
|
+
export const ogarc_destroy: (a: number) => void;
|
|
332
|
+
export const ogarc_get_brep_serialized: (a: number) => [number, number];
|
|
333
|
+
export const ogarc_get_local_brep_serialized: (a: number) => [number, number];
|
|
334
|
+
export const ogarc_get_geometry_serialized: (a: number) => [number, number];
|
|
335
|
+
export const ogarc_get_local_geometry_serialized: (a: number) => [number, number];
|
|
336
|
+
export const ogarc_get_geometry_buffer: (a: number) => [number, number];
|
|
337
|
+
export const ogarc_get_local_geometry_buffer: (a: number) => [number, number];
|
|
338
|
+
export const ogarc_get_anchor: (a: number) => number;
|
|
339
|
+
export const __wbg_ogcuboid_free: (a: number, b: number) => void;
|
|
340
|
+
export const ogcuboid_set_id: (a: number, b: number, c: number) => void;
|
|
341
|
+
export const ogcuboid_id: (a: number) => [number, number];
|
|
342
|
+
export const ogcuboid_new: (a: number, b: number) => number;
|
|
343
|
+
export const ogcuboid_set_config: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
344
|
+
export const ogcuboid_set_center: (a: number, b: number) => void;
|
|
345
|
+
export const ogcuboid_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
346
|
+
export const ogcuboid_set_translation: (a: number, b: number) => void;
|
|
347
|
+
export const ogcuboid_set_rotation: (a: number, b: number) => void;
|
|
348
|
+
export const ogcuboid_set_scale: (a: number, b: number) => [number, number];
|
|
349
|
+
export const ogcuboid_generate_geometry: (a: number) => [number, number];
|
|
350
|
+
export const ogcuboid_get_brep_serialized: (a: number) => [number, number];
|
|
351
|
+
export const ogcuboid_get_local_brep_serialized: (a: number) => [number, number];
|
|
352
|
+
export const ogcuboid_get_geometry_serialized: (a: number) => [number, number];
|
|
353
|
+
export const ogcuboid_get_local_geometry_serialized: (a: number) => [number, number];
|
|
354
|
+
export const ogcuboid_get_geometry_buffer: (a: number) => [number, number];
|
|
355
|
+
export const ogcuboid_get_local_geometry_buffer: (a: number) => [number, number];
|
|
356
|
+
export const ogcuboid_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
357
|
+
export const ogcuboid_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
358
|
+
export const ogcuboid_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
359
|
+
export const ogcuboid_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
360
|
+
export const ogcuboid_get_anchor: (a: number) => number;
|
|
228
361
|
export const __wbg_ogsphere_free: (a: number, b: number) => void;
|
|
229
362
|
export const ogsphere_set_id: (a: number, b: number, c: number) => void;
|
|
230
363
|
export const ogsphere_id: (a: number) => [number, number];
|
|
@@ -249,77 +382,28 @@ export const ogsphere_get_local_outline_geometry_serialized: (a: number) => [num
|
|
|
249
382
|
export const ogsphere_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
250
383
|
export const ogsphere_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
251
384
|
export const ogsphere_get_anchor: (a: number) => number;
|
|
252
|
-
export const
|
|
253
|
-
export const
|
|
254
|
-
export const
|
|
255
|
-
export const
|
|
256
|
-
export const
|
|
257
|
-
export const
|
|
258
|
-
export const
|
|
259
|
-
export const
|
|
260
|
-
export const
|
|
261
|
-
export const
|
|
262
|
-
export const
|
|
263
|
-
export const
|
|
264
|
-
export const
|
|
265
|
-
export const
|
|
266
|
-
export const
|
|
267
|
-
export const
|
|
268
|
-
export const
|
|
269
|
-
export const
|
|
270
|
-
export const
|
|
271
|
-
export const
|
|
272
|
-
export const
|
|
273
|
-
export const
|
|
274
|
-
export const ogcuboid_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
275
|
-
export const ogcuboid_get_anchor: (a: number) => number;
|
|
276
|
-
export const __wbg_ogsweep_free: (a: number, b: number) => void;
|
|
277
|
-
export const ogsweep_set_id: (a: number, b: number, c: number) => void;
|
|
278
|
-
export const ogsweep_id: (a: number) => [number, number];
|
|
279
|
-
export const ogsweep_new: (a: number, b: number) => number;
|
|
280
|
-
export const ogsweep_set_config: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
281
|
-
export const ogsweep_set_config_with_caps: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
282
|
-
export const ogsweep_set_caps: (a: number, b: number, c: number) => [number, number];
|
|
283
|
-
export const ogsweep_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
284
|
-
export const ogsweep_set_translation: (a: number, b: number) => void;
|
|
285
|
-
export const ogsweep_set_rotation: (a: number, b: number) => void;
|
|
286
|
-
export const ogsweep_set_scale: (a: number, b: number) => [number, number];
|
|
287
|
-
export const ogsweep_generate_brep: (a: number) => [number, number];
|
|
288
|
-
export const ogsweep_clean_geometry: (a: number) => void;
|
|
289
|
-
export const ogsweep_generate_geometry: (a: number) => [number, number];
|
|
290
|
-
export const ogsweep_get_brep_serialized: (a: number) => [number, number];
|
|
291
|
-
export const ogsweep_get_local_brep_serialized: (a: number) => [number, number];
|
|
292
|
-
export const ogsweep_get_geometry_serialized: (a: number) => [number, number];
|
|
293
|
-
export const ogsweep_get_local_geometry_serialized: (a: number) => [number, number];
|
|
294
|
-
export const ogsweep_get_geometry_buffer: (a: number) => [number, number];
|
|
295
|
-
export const ogsweep_get_local_geometry_buffer: (a: number) => [number, number];
|
|
296
|
-
export const ogsweep_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
297
|
-
export const ogsweep_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
298
|
-
export const ogsweep_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
299
|
-
export const ogsweep_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
300
|
-
export const ogsweep_get_anchor: (a: number) => number;
|
|
301
|
-
export const ogsweep_set_anchor: (a: number, b: number) => [number, number];
|
|
302
|
-
export const ogsweep_reset_anchor: (a: number) => [number, number];
|
|
303
|
-
export const __wbg_ogarc_free: (a: number, b: number) => void;
|
|
304
|
-
export const ogarc_set_id: (a: number, b: number, c: number) => void;
|
|
305
|
-
export const ogarc_id: (a: number) => [number, number];
|
|
306
|
-
export const ogarc_new: (a: number, b: number) => number;
|
|
307
|
-
export const ogarc_set_config: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
308
|
-
export const ogarc_set_center: (a: number, b: number) => void;
|
|
309
|
-
export const ogarc_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
310
|
-
export const ogarc_set_translation: (a: number, b: number) => void;
|
|
311
|
-
export const ogarc_set_rotation: (a: number, b: number) => void;
|
|
312
|
-
export const ogarc_set_scale: (a: number, b: number) => [number, number];
|
|
313
|
-
export const ogarc_generate_geometry: (a: number) => [number, number];
|
|
314
|
-
export const ogarc_dispose_points: (a: number) => void;
|
|
315
|
-
export const ogarc_destroy: (a: number) => void;
|
|
316
|
-
export const ogarc_get_brep_serialized: (a: number) => [number, number];
|
|
317
|
-
export const ogarc_get_local_brep_serialized: (a: number) => [number, number];
|
|
318
|
-
export const ogarc_get_geometry_serialized: (a: number) => [number, number];
|
|
319
|
-
export const ogarc_get_local_geometry_serialized: (a: number) => [number, number];
|
|
320
|
-
export const ogarc_get_geometry_buffer: (a: number) => [number, number];
|
|
321
|
-
export const ogarc_get_local_geometry_buffer: (a: number) => [number, number];
|
|
322
|
-
export const ogarc_get_anchor: (a: number) => number;
|
|
385
|
+
export const checkBrepValidity: (a: number, b: number) => [number, number, number, number];
|
|
386
|
+
export const healBrep: (a: number, b: number, c: number) => [number, number, number, number];
|
|
387
|
+
export const __wbg_ogellipticalarc_free: (a: number, b: number) => void;
|
|
388
|
+
export const ogellipticalarc_set_id: (a: number, b: number, c: number) => void;
|
|
389
|
+
export const ogellipticalarc_id: (a: number) => [number, number];
|
|
390
|
+
export const ogellipticalarc_new: (a: number, b: number) => number;
|
|
391
|
+
export const ogellipticalarc_set_config: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
392
|
+
export const ogellipticalarc_set_center: (a: number, b: number) => void;
|
|
393
|
+
export const ogellipticalarc_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
394
|
+
export const ogellipticalarc_set_translation: (a: number, b: number) => void;
|
|
395
|
+
export const ogellipticalarc_set_rotation: (a: number, b: number) => void;
|
|
396
|
+
export const ogellipticalarc_set_scale: (a: number, b: number) => [number, number];
|
|
397
|
+
export const ogellipticalarc_generate_geometry: (a: number) => [number, number];
|
|
398
|
+
export const ogellipticalarc_dispose_points: (a: number) => void;
|
|
399
|
+
export const ogellipticalarc_destroy: (a: number) => void;
|
|
400
|
+
export const ogellipticalarc_get_brep_serialized: (a: number) => [number, number];
|
|
401
|
+
export const ogellipticalarc_get_local_brep_serialized: (a: number) => [number, number];
|
|
402
|
+
export const ogellipticalarc_get_geometry_serialized: (a: number) => [number, number];
|
|
403
|
+
export const ogellipticalarc_get_local_geometry_serialized: (a: number) => [number, number];
|
|
404
|
+
export const ogellipticalarc_get_geometry_buffer: (a: number) => [number, number];
|
|
405
|
+
export const ogellipticalarc_get_local_geometry_buffer: (a: number) => [number, number];
|
|
406
|
+
export const ogellipticalarc_get_anchor: (a: number) => number;
|
|
323
407
|
export const __wbg_ogwedge_free: (a: number, b: number) => void;
|
|
324
408
|
export const ogwedge_set_id: (a: number, b: number, c: number) => void;
|
|
325
409
|
export const ogwedge_id: (a: number) => [number, number];
|
|
@@ -344,37 +428,6 @@ export const ogwedge_get_local_outline_geometry_serialized: (a: number) => [numb
|
|
|
344
428
|
export const ogwedge_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
345
429
|
export const ogwedge_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
346
430
|
export const ogwedge_get_anchor: (a: number) => number;
|
|
347
|
-
export const __wbg_ogcurve_free: (a: number, b: number) => void;
|
|
348
|
-
export const ogcurve_set_id: (a: number, b: number, c: number) => void;
|
|
349
|
-
export const ogcurve_id: (a: number) => [number, number];
|
|
350
|
-
export const ogcurve_new: (a: number, b: number) => number;
|
|
351
|
-
export const ogcurve_set_config: (a: number, b: number, c: number) => [number, number];
|
|
352
|
-
export const ogcurve_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
353
|
-
export const ogcurve_set_translation: (a: number, b: number) => void;
|
|
354
|
-
export const ogcurve_set_rotation: (a: number, b: number) => void;
|
|
355
|
-
export const ogcurve_set_scale: (a: number, b: number) => [number, number];
|
|
356
|
-
export const ogcurve_generate_geometry: (a: number) => [number, number];
|
|
357
|
-
export const ogcurve_get_brep_serialized: (a: number) => [number, number];
|
|
358
|
-
export const ogcurve_get_local_brep_serialized: (a: number) => [number, number];
|
|
359
|
-
export const ogcurve_get_geometry_serialized: (a: number) => [number, number];
|
|
360
|
-
export const ogcurve_get_local_geometry_serialized: (a: number) => [number, number];
|
|
361
|
-
export const ogcurve_get_geometry_buffer: (a: number) => [number, number];
|
|
362
|
-
export const ogcurve_get_local_geometry_buffer: (a: number) => [number, number];
|
|
363
|
-
export const ogcurve_get_anchor: (a: number) => number;
|
|
364
|
-
export const ogcurve_set_anchor: (a: number, b: number) => [number, number];
|
|
365
|
-
export const ogcurve_reset_anchor: (a: number) => [number, number];
|
|
366
|
-
export const ogcurve_get_offset_serialized: (a: number, b: number, c: number, d: number) => [number, number];
|
|
367
|
-
export const ogcurve_dispose: (a: number) => void;
|
|
368
|
-
export const __wbg_ogbooleanresult_free: (a: number, b: number) => void;
|
|
369
|
-
export const ogbooleanresult_brepSerialized: (a: number) => [number, number];
|
|
370
|
-
export const ogbooleanresult_geometrySerialized: (a: number) => [number, number];
|
|
371
|
-
export const ogbooleanresult_outlineGeometrySerialized: (a: number) => [number, number];
|
|
372
|
-
export const ogbooleanresult_reportJson: (a: number) => [number, number];
|
|
373
|
-
export const booleanUnion: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
374
|
-
export const booleanIntersection: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
375
|
-
export const booleanSubtraction: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
376
|
-
export const booleanSubtractionMany: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
377
|
-
export const batchUnion: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
378
431
|
export const __wbg_matrix4_free: (a: number, b: number) => void;
|
|
379
432
|
export const matrix4_elements: (a: number) => [number, number];
|
|
380
433
|
export const matrix4_new: () => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opengeometry",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"description": "CAD kernel for the web built with Rust, WebAssembly, and Three.js for browser CAD, AEC/BIM, and geometry-heavy tools.",
|
|
5
5
|
"author": "Vishwajeet Vinayak Mane",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"default": "./opengeometry/pkg/opengeometry.js"
|
|
20
20
|
},
|
|
21
21
|
"./opengeometry_bg.wasm": "./opengeometry_bg.wasm",
|
|
22
|
+
"./analytic-worker.js": "./analytic-worker.js",
|
|
22
23
|
"./package.json": "./package.json"
|
|
23
24
|
},
|
|
24
25
|
"keywords": [
|
package/src/editor/types.d.ts
CHANGED
|
@@ -191,7 +191,7 @@ export interface EditOperationOptions {
|
|
|
191
191
|
* High-level editing mode families exposed by public wrappers.
|
|
192
192
|
*/
|
|
193
193
|
export type EditingMode = "parametric" | "freeform";
|
|
194
|
-
export type ParametricEntityType = "line" | "polyline" | "arc" | "curve" | "rectangle" | "polygon" | "cuboid" | "cylinder" | "sphere" | "wedge" | "opening" | "sweep";
|
|
194
|
+
export type ParametricEntityType = "line" | "polyline" | "arc" | "curve" | "elliptical_arc" | "rectangle" | "polygon" | "cuboid" | "cylinder" | "sphere" | "wedge" | "opening" | "sweep";
|
|
195
195
|
export type EntityType = ParametricEntityType | "freeform";
|
|
196
196
|
export type EditFamily = "profile" | "curve" | "box" | "radial" | "wedge" | "sweep" | "freeform";
|
|
197
197
|
export type ParametricEditFamily = Exclude<EditFamily, "freeform">;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as THREE from "three";
|
|
2
2
|
import { Vector3 } from "../../opengeometry/pkg/opengeometry.js";
|
|
3
|
-
import { BooleanExecutionOptions
|
|
3
|
+
import { BooleanExecutionOptions } from "../operations/boolean.js";
|
|
4
|
+
import { AnalyticSolid } from "../shapes/analytic-solid.js";
|
|
4
5
|
export type BooleanExampleOperation = "union" | "intersection" | "subtraction";
|
|
5
6
|
export type BooleanExampleMode = "solid" | "polygon" | "extruded";
|
|
6
7
|
export interface BooleanExampleBuildOptions extends BooleanExecutionOptions {
|
|
@@ -13,7 +14,7 @@ export interface BooleanExampleBuildResult {
|
|
|
13
14
|
group: THREE.Group;
|
|
14
15
|
lhs: THREE.Object3D;
|
|
15
16
|
rhs: THREE.Object3D;
|
|
16
|
-
result:
|
|
17
|
+
result: AnalyticSolid;
|
|
17
18
|
title: string;
|
|
18
19
|
description: string;
|
|
19
20
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as THREE from "three";
|
|
2
|
-
import { FreeformEditResult
|
|
2
|
+
import { FreeformEditResult } from "../editor.js";
|
|
3
3
|
import { Line } from "../primitives/line.js";
|
|
4
4
|
import { Polygon } from "../shapes/polygon.js";
|
|
5
5
|
import { Cuboid } from "../shapes/cuboid.js";
|
|
6
6
|
/**
|
|
7
|
-
* Demonstrates
|
|
8
|
-
*
|
|
9
|
-
* including wire-backed freeform edge insertion on a converted line.
|
|
7
|
+
* Demonstrates strict v2 parametric solid edits and the separate sampled-wire
|
|
8
|
+
* freeform editor. Analytic solid freeform conversion is intentionally unsupported.
|
|
10
9
|
*/
|
|
11
10
|
export declare function createEditorModesExample(scene: THREE.Scene): {
|
|
12
11
|
polygon: Polygon;
|
|
@@ -16,9 +15,6 @@ export declare function createEditorModesExample(scene: THREE.Scene): {
|
|
|
16
15
|
cuboidCapabilities: import("../editor.js").ParametricEditCapabilities;
|
|
17
16
|
guideLineCapabilities: import("../editor.js").ParametricEditCapabilities;
|
|
18
17
|
guideLineFreeform: import("../freeform.js").FreeformGeometry;
|
|
19
|
-
guideLineEditor: FreeformEditor;
|
|
18
|
+
guideLineEditor: import("../editor.js").FreeformEditor;
|
|
20
19
|
guideLineSplitResult: FreeformEditResult | null;
|
|
21
|
-
freeform: import("../freeform.js").FreeformGeometry;
|
|
22
|
-
freeformEditor: FreeformEditor;
|
|
23
|
-
freeformResult: FreeformEditResult | null;
|
|
24
20
|
};
|
package/src/examples/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './primitives.js';
|
|
|
5
5
|
export * from './shapes.js';
|
|
6
6
|
export * from './sweep.js';
|
|
7
7
|
export * from './offset.js';
|
|
8
|
+
export * from './offset-ring-variable.js';
|
|
8
9
|
export * from './wall-from-offsets.js';
|
|
9
10
|
export * from './booleans.js';
|
|
10
11
|
export * from './editor-modes.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { Polyline } from "../primitives/polyline.js";
|
|
3
|
+
/**
|
|
4
|
+
* Variable (per-edge) ring inset: a rectangular "parcel" inset by front 6 /
|
|
5
|
+
* side 1.5 / rear 3 setbacks, and a waisted (dumbbell) parcel whose uniform
|
|
6
|
+
* 3 m inset SPLITS into two disjoint buildable envelopes — the case a uniform
|
|
7
|
+
* offset cannot express.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createOffsetRingVariableExample(scene: THREE.Scene): {
|
|
10
|
+
parcelOutline: Polyline;
|
|
11
|
+
dumbbellOutline: Polyline;
|
|
12
|
+
envelopes: Polyline[];
|
|
13
|
+
};
|