opengeometry 2.0.10 → 2.0.13
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 +1 -1
- package/index.js +991 -68
- package/index.js.map +1 -1
- package/opengeometry/pkg/opengeometry.d.ts +354 -207
- package/opengeometry/pkg/opengeometry.js +614 -36
- package/opengeometry/pkg/opengeometry_bg.wasm +0 -0
- package/opengeometry/pkg/opengeometry_bg.wasm.d.ts +243 -206
- package/opengeometry_bg.wasm +0 -0
- package/opengeometry_bg.wasm.d.ts +243 -206
- package/package.json +1 -1
- package/src/editor/types.d.ts +1 -1
- package/src/examples/index.d.ts +1 -0
- package/src/examples/offset-ring-variable.d.ts +13 -0
- package/src/operations/index.d.ts +1 -0
- package/src/operations/offset-regions.d.ts +77 -0
- package/src/primitives/elliptical_arc.d.ts +66 -0
- package/src/primitives/index.d.ts +1 -0
- package/src/operations/chamfer.d.ts +0 -10
- package/src/operations/draft.d.ts +0 -14
- package/src/operations/fillet.d.ts +0 -13
- package/src/operations/loft.d.ts +0 -16
- package/src/operations/mirror.d.ts +0 -21
- package/src/operations/pattern-circular.d.ts +0 -19
- package/src/operations/pattern-linear.d.ts +0 -15
- package/src/operations/pipe.d.ts +0 -17
- package/src/operations/revolve.d.ts +0 -29
- package/src/operations/sweep.d.ts +0 -13
- package/src/primitives/helix.d.ts +0 -31
- package/src/shapes/cone.d.ts +0 -64
- package/src/shapes/ellipsoid.d.ts +0 -86
- package/src/shapes/extrusion.d.ts +0 -64
- package/src/shapes/frustum.d.ts +0 -44
- package/src/shapes/torus.d.ts +0 -44
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
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 ogwedge_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
25
|
-
export const ogwedge_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
26
|
-
export const ogwedge_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
27
|
-
export const ogwedge_get_anchor: (a: number) => number;
|
|
4
|
+
export const __wbg_ogellipticalarc_free: (a: number, b: number) => void;
|
|
5
|
+
export const ogellipticalarc_set_id: (a: number, b: number, c: number) => void;
|
|
6
|
+
export const ogellipticalarc_id: (a: number) => [number, number];
|
|
7
|
+
export const ogellipticalarc_new: (a: number, b: number) => number;
|
|
8
|
+
export const ogellipticalarc_set_config: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
9
|
+
export const ogellipticalarc_set_center: (a: number, b: number) => void;
|
|
10
|
+
export const ogellipticalarc_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
11
|
+
export const ogellipticalarc_set_translation: (a: number, b: number) => void;
|
|
12
|
+
export const ogellipticalarc_set_rotation: (a: number, b: number) => void;
|
|
13
|
+
export const ogellipticalarc_set_scale: (a: number, b: number) => [number, number];
|
|
14
|
+
export const ogellipticalarc_generate_geometry: (a: number) => [number, number];
|
|
15
|
+
export const ogellipticalarc_dispose_points: (a: number) => void;
|
|
16
|
+
export const ogellipticalarc_destroy: (a: number) => void;
|
|
17
|
+
export const ogellipticalarc_get_brep_serialized: (a: number) => [number, number];
|
|
18
|
+
export const ogellipticalarc_get_local_brep_serialized: (a: number) => [number, number];
|
|
19
|
+
export const ogellipticalarc_get_geometry_serialized: (a: number) => [number, number];
|
|
20
|
+
export const ogellipticalarc_get_local_geometry_serialized: (a: number) => [number, number];
|
|
21
|
+
export const ogellipticalarc_get_geometry_buffer: (a: number) => [number, number];
|
|
22
|
+
export const ogellipticalarc_get_local_geometry_buffer: (a: number) => [number, number];
|
|
23
|
+
export const ogellipticalarc_get_anchor: (a: number) => number;
|
|
28
24
|
export const __wbg_ogsweep_free: (a: number, b: number) => void;
|
|
29
25
|
export const ogsweep_set_id: (a: number, b: number, c: number) => void;
|
|
30
26
|
export const ogsweep_id: (a: number) => [number, number];
|
|
@@ -49,78 +45,37 @@ export const ogsweep_get_outline_geometry_serialized: (a: number) => [number, nu
|
|
|
49
45
|
export const ogsweep_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
50
46
|
export const ogsweep_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
51
47
|
export const ogsweep_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
52
|
-
export const ogsweep_get_anchor: (a: number) => number;
|
|
53
48
|
export const ogsweep_set_anchor: (a: number, b: number) => [number, number];
|
|
54
49
|
export const ogsweep_reset_anchor: (a: number) => [number, number];
|
|
55
|
-
export const
|
|
56
|
-
export const
|
|
57
|
-
export const
|
|
58
|
-
export const
|
|
59
|
-
export const
|
|
60
|
-
export const
|
|
61
|
-
export const
|
|
62
|
-
export const
|
|
63
|
-
export const
|
|
64
|
-
export const
|
|
65
|
-
export const
|
|
66
|
-
export const
|
|
67
|
-
export const
|
|
68
|
-
export const
|
|
69
|
-
export const
|
|
70
|
-
export const
|
|
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 __wbg_ogfreeformgeometry_free: (a: number, b: number) => void;
|
|
85
|
-
export const ogfreeformgeometry_new: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
86
|
-
export const ogfreeformgeometry_id: (a: number) => [number, number];
|
|
87
|
-
export const ogfreeformgeometry_getBrepSerialized: (a: number) => [number, number];
|
|
88
|
-
export const ogfreeformgeometry_getLocalBrepSerialized: (a: number) => [number, number];
|
|
89
|
-
export const ogfreeformgeometry_getGeometrySerialized: (a: number) => [number, number];
|
|
90
|
-
export const ogfreeformgeometry_getGeometryBuffer: (a: number) => [number, number];
|
|
91
|
-
export const ogfreeformgeometry_getLocalGeometryBuffer: (a: number) => [number, number];
|
|
92
|
-
export const ogfreeformgeometry_getOutlineGeometrySerialized: (a: number) => [number, number];
|
|
93
|
-
export const ogfreeformgeometry_getOutlineGeometryBuffer: (a: number) => [number, number];
|
|
94
|
-
export const ogfreeformgeometry_getLocalOutlineGeometryBuffer: (a: number) => [number, number];
|
|
95
|
-
export const ogfreeformgeometry_getPlacementSerialized: (a: number) => [number, number];
|
|
96
|
-
export const ogfreeformgeometry_setPlacementSerialized: (a: number, b: number, c: number) => [number, number];
|
|
97
|
-
export const ogfreeformgeometry_setTransform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
98
|
-
export const ogfreeformgeometry_setTranslation: (a: number, b: number) => void;
|
|
99
|
-
export const ogfreeformgeometry_setRotation: (a: number, b: number) => void;
|
|
100
|
-
export const ogfreeformgeometry_setScale: (a: number, b: number) => [number, number];
|
|
101
|
-
export const ogfreeformgeometry_setAnchor: (a: number, b: number) => void;
|
|
102
|
-
export const __wbg_ogcuboid_free: (a: number, b: number) => void;
|
|
103
|
-
export const ogcuboid_set_id: (a: number, b: number, c: number) => void;
|
|
104
|
-
export const ogcuboid_id: (a: number) => [number, number];
|
|
105
|
-
export const ogcuboid_new: (a: number, b: number) => number;
|
|
106
|
-
export const ogcuboid_set_config: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
107
|
-
export const ogcuboid_set_center: (a: number, b: number) => void;
|
|
108
|
-
export const ogcuboid_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
109
|
-
export const ogcuboid_set_translation: (a: number, b: number) => void;
|
|
110
|
-
export const ogcuboid_set_rotation: (a: number, b: number) => void;
|
|
111
|
-
export const ogcuboid_set_scale: (a: number, b: number) => [number, number];
|
|
112
|
-
export const ogcuboid_generate_geometry: (a: number) => [number, number];
|
|
113
|
-
export const ogcuboid_get_brep_serialized: (a: number) => [number, number];
|
|
114
|
-
export const ogcuboid_get_local_brep_serialized: (a: number) => [number, number];
|
|
115
|
-
export const ogcuboid_get_geometry_serialized: (a: number) => [number, number];
|
|
116
|
-
export const ogcuboid_get_local_geometry_serialized: (a: number) => [number, number];
|
|
117
|
-
export const ogcuboid_get_geometry_buffer: (a: number) => [number, number];
|
|
118
|
-
export const ogcuboid_get_local_geometry_buffer: (a: number) => [number, number];
|
|
119
|
-
export const ogcuboid_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
120
|
-
export const ogcuboid_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
121
|
-
export const ogcuboid_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
122
|
-
export const ogcuboid_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
123
|
-
export const ogcuboid_get_anchor: (a: number) => number;
|
|
50
|
+
export const ogsweep_get_anchor: (a: number) => number;
|
|
51
|
+
export const __wbg_workplane_free: (a: number, b: number) => void;
|
|
52
|
+
export const workplane_fromOriginNormal: (a: number, b: number) => number;
|
|
53
|
+
export const workplane_new: (a: number, b: number, c: number) => number;
|
|
54
|
+
export const workplane_liftPoint: (a: number, b: number, c: number) => number;
|
|
55
|
+
export const workplane_liftPoints: (a: number, b: number, c: number) => [number, number];
|
|
56
|
+
export const workplane_origin: (a: number) => number;
|
|
57
|
+
export const workplane_normal: (a: number) => number;
|
|
58
|
+
export const __wbg_ogcurve_free: (a: number, b: number) => void;
|
|
59
|
+
export const ogcurve_set_id: (a: number, b: number, c: number) => void;
|
|
60
|
+
export const ogcurve_id: (a: number) => [number, number];
|
|
61
|
+
export const ogcurve_new: (a: number, b: number) => number;
|
|
62
|
+
export const ogcurve_set_config: (a: number, b: number, c: number) => [number, number];
|
|
63
|
+
export const ogcurve_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
64
|
+
export const ogcurve_set_translation: (a: number, b: number) => void;
|
|
65
|
+
export const ogcurve_set_rotation: (a: number, b: number) => void;
|
|
66
|
+
export const ogcurve_set_scale: (a: number, b: number) => [number, number];
|
|
67
|
+
export const ogcurve_generate_geometry: (a: number) => [number, number];
|
|
68
|
+
export const ogcurve_get_brep_serialized: (a: number) => [number, number];
|
|
69
|
+
export const ogcurve_get_local_brep_serialized: (a: number) => [number, number];
|
|
70
|
+
export const ogcurve_get_geometry_serialized: (a: number) => [number, number];
|
|
71
|
+
export const ogcurve_get_local_geometry_serialized: (a: number) => [number, number];
|
|
72
|
+
export const ogcurve_get_geometry_buffer: (a: number) => [number, number];
|
|
73
|
+
export const ogcurve_get_local_geometry_buffer: (a: number) => [number, number];
|
|
74
|
+
export const ogcurve_get_anchor: (a: number) => number;
|
|
75
|
+
export const ogcurve_set_anchor: (a: number, b: number) => [number, number];
|
|
76
|
+
export const ogcurve_reset_anchor: (a: number) => [number, number];
|
|
77
|
+
export const ogcurve_get_offset_serialized: (a: number, b: number, c: number, d: number) => [number, number];
|
|
78
|
+
export const ogcurve_dispose: (a: number) => void;
|
|
124
79
|
export const __wbg_ogpolygon_free: (a: number, b: number) => void;
|
|
125
80
|
export const ogpolygon_set_id: (a: number, b: number, c: number) => void;
|
|
126
81
|
export const ogpolygon_id: (a: number) => [number, number];
|
|
@@ -146,78 +101,69 @@ export const ogpolygon_get_local_outline_geometry_buffer: (a: number) => [number
|
|
|
146
101
|
export const ogpolygon_get_anchor: (a: number) => number;
|
|
147
102
|
export const ogpolygon_set_anchor: (a: number, b: number) => [number, number];
|
|
148
103
|
export const ogpolygon_reset_anchor: (a: number) => [number, number];
|
|
104
|
+
export const __wbg_ogrectangle_free: (a: number, b: number) => void;
|
|
105
|
+
export const ogrectangle_set_id: (a: number, b: number, c: number) => void;
|
|
106
|
+
export const ogrectangle_id: (a: number) => [number, number];
|
|
107
|
+
export const ogrectangle_new: (a: number, b: number) => number;
|
|
108
|
+
export const ogrectangle_set_config: (a: number, b: number, c: number, d: number) => [number, number];
|
|
109
|
+
export const ogrectangle_set_center: (a: number, b: number) => void;
|
|
110
|
+
export const ogrectangle_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
111
|
+
export const ogrectangle_set_translation: (a: number, b: number) => void;
|
|
112
|
+
export const ogrectangle_set_rotation: (a: number, b: number) => void;
|
|
113
|
+
export const ogrectangle_set_scale: (a: number, b: number) => [number, number];
|
|
114
|
+
export const ogrectangle_generate_geometry: (a: number) => [number, number];
|
|
115
|
+
export const ogrectangle_get_brep_serialized: (a: number) => [number, number];
|
|
116
|
+
export const ogrectangle_get_local_brep_serialized: (a: number) => [number, number];
|
|
117
|
+
export const ogrectangle_get_geometry_serialized: (a: number) => [number, number];
|
|
118
|
+
export const ogrectangle_get_local_geometry_serialized: (a: number) => [number, number];
|
|
119
|
+
export const ogrectangle_get_geometry_buffer: (a: number) => [number, number];
|
|
120
|
+
export const ogrectangle_get_local_geometry_buffer: (a: number) => [number, number];
|
|
121
|
+
export const ogrectangle_get_anchor: (a: number) => number;
|
|
122
|
+
export const ogrectangle_get_offset_serialized: (a: number, b: number, c: number, d: number) => [number, number];
|
|
149
123
|
export const ogpolygon_set_config: (a: number, b: number, c: number) => [number, number];
|
|
150
124
|
export const ogpolygon_generate_geometry: (a: number) => [number, number];
|
|
151
|
-
export const
|
|
152
|
-
export const
|
|
153
|
-
export const
|
|
154
|
-
export const
|
|
155
|
-
export const
|
|
156
|
-
export const
|
|
157
|
-
export const
|
|
158
|
-
export const
|
|
159
|
-
export const
|
|
160
|
-
export const
|
|
161
|
-
export const
|
|
162
|
-
export const
|
|
163
|
-
export const
|
|
164
|
-
export const
|
|
165
|
-
export const
|
|
166
|
-
export const
|
|
167
|
-
export const
|
|
168
|
-
export const
|
|
169
|
-
export const
|
|
170
|
-
export const
|
|
171
|
-
export const
|
|
172
|
-
export const
|
|
173
|
-
export const
|
|
174
|
-
export const
|
|
175
|
-
export const
|
|
176
|
-
export const
|
|
177
|
-
export const
|
|
178
|
-
export const
|
|
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 ogsphere_get_geometry_buffer: (a: number) => [number, number];
|
|
194
|
-
export const ogsphere_get_local_geometry_buffer: (a: number) => [number, number];
|
|
195
|
-
export const ogsphere_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
196
|
-
export const ogsphere_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
197
|
-
export const ogsphere_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
198
|
-
export const ogsphere_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
199
|
-
export const ogsphere_get_anchor: (a: number) => number;
|
|
200
|
-
export const __wbg_ogcurve_free: (a: number, b: number) => void;
|
|
201
|
-
export const ogcurve_set_id: (a: number, b: number, c: number) => void;
|
|
202
|
-
export const ogcurve_id: (a: number) => [number, number];
|
|
203
|
-
export const ogcurve_new: (a: number, b: number) => number;
|
|
204
|
-
export const ogcurve_set_config: (a: number, b: number, c: number) => [number, number];
|
|
205
|
-
export const ogcurve_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
206
|
-
export const ogcurve_set_translation: (a: number, b: number) => void;
|
|
207
|
-
export const ogcurve_set_rotation: (a: number, b: number) => void;
|
|
208
|
-
export const ogcurve_set_scale: (a: number, b: number) => [number, number];
|
|
209
|
-
export const ogcurve_generate_geometry: (a: number) => [number, number];
|
|
210
|
-
export const ogcurve_get_brep_serialized: (a: number) => [number, number];
|
|
211
|
-
export const ogcurve_get_local_brep_serialized: (a: number) => [number, number];
|
|
212
|
-
export const ogcurve_get_geometry_serialized: (a: number) => [number, number];
|
|
213
|
-
export const ogcurve_get_local_geometry_serialized: (a: number) => [number, number];
|
|
214
|
-
export const ogcurve_get_geometry_buffer: (a: number) => [number, number];
|
|
215
|
-
export const ogcurve_get_local_geometry_buffer: (a: number) => [number, number];
|
|
216
|
-
export const ogcurve_get_anchor: (a: number) => number;
|
|
217
|
-
export const ogcurve_set_anchor: (a: number, b: number) => [number, number];
|
|
218
|
-
export const ogcurve_reset_anchor: (a: number) => [number, number];
|
|
219
|
-
export const ogcurve_get_offset_serialized: (a: number, b: number, c: number, d: number) => [number, number];
|
|
220
|
-
export const ogcurve_dispose: (a: number) => void;
|
|
125
|
+
export const __wbg_ogwedge_free: (a: number, b: number) => void;
|
|
126
|
+
export const ogwedge_set_id: (a: number, b: number, c: number) => void;
|
|
127
|
+
export const ogwedge_id: (a: number) => [number, number];
|
|
128
|
+
export const ogwedge_new: (a: number, b: number) => number;
|
|
129
|
+
export const ogwedge_set_config: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
130
|
+
export const ogwedge_set_center: (a: number, b: number) => void;
|
|
131
|
+
export const ogwedge_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
132
|
+
export const ogwedge_set_translation: (a: number, b: number) => void;
|
|
133
|
+
export const ogwedge_set_rotation: (a: number, b: number) => void;
|
|
134
|
+
export const ogwedge_set_scale: (a: number, b: number) => [number, number];
|
|
135
|
+
export const ogwedge_generate_brep: (a: number) => [number, number];
|
|
136
|
+
export const ogwedge_clean_geometry: (a: number) => void;
|
|
137
|
+
export const ogwedge_generate_geometry: (a: number) => [number, number];
|
|
138
|
+
export const ogwedge_get_brep_serialized: (a: number) => [number, number];
|
|
139
|
+
export const ogwedge_get_local_brep_serialized: (a: number) => [number, number];
|
|
140
|
+
export const ogwedge_get_geometry_serialized: (a: number) => [number, number];
|
|
141
|
+
export const ogwedge_get_local_geometry_serialized: (a: number) => [number, number];
|
|
142
|
+
export const ogwedge_get_geometry_buffer: (a: number) => [number, number];
|
|
143
|
+
export const ogwedge_get_local_geometry_buffer: (a: number) => [number, number];
|
|
144
|
+
export const ogwedge_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
145
|
+
export const ogwedge_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
146
|
+
export const ogwedge_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
147
|
+
export const ogwedge_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
148
|
+
export const ogwedge_get_anchor: (a: number) => number;
|
|
149
|
+
export const __wbg_ogfreeformgeometry_free: (a: number, b: number) => void;
|
|
150
|
+
export const ogfreeformgeometry_new: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
151
|
+
export const ogfreeformgeometry_id: (a: number) => [number, number];
|
|
152
|
+
export const ogfreeformgeometry_getBrepSerialized: (a: number) => [number, number];
|
|
153
|
+
export const ogfreeformgeometry_getLocalBrepSerialized: (a: number) => [number, number];
|
|
154
|
+
export const ogfreeformgeometry_getGeometrySerialized: (a: number) => [number, number];
|
|
155
|
+
export const ogfreeformgeometry_getGeometryBuffer: (a: number) => [number, number];
|
|
156
|
+
export const ogfreeformgeometry_getLocalGeometryBuffer: (a: number) => [number, number];
|
|
157
|
+
export const ogfreeformgeometry_getOutlineGeometrySerialized: (a: number) => [number, number];
|
|
158
|
+
export const ogfreeformgeometry_getOutlineGeometryBuffer: (a: number) => [number, number];
|
|
159
|
+
export const ogfreeformgeometry_getLocalOutlineGeometryBuffer: (a: number) => [number, number];
|
|
160
|
+
export const ogfreeformgeometry_getPlacementSerialized: (a: number) => [number, number];
|
|
161
|
+
export const ogfreeformgeometry_setPlacementSerialized: (a: number, b: number, c: number) => [number, number];
|
|
162
|
+
export const ogfreeformgeometry_setTransform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
163
|
+
export const ogfreeformgeometry_setTranslation: (a: number, b: number) => void;
|
|
164
|
+
export const ogfreeformgeometry_setRotation: (a: number, b: number) => void;
|
|
165
|
+
export const ogfreeformgeometry_setScale: (a: number, b: number) => [number, number];
|
|
166
|
+
export const ogfreeformgeometry_setAnchor: (a: number, b: number) => void;
|
|
221
167
|
export const __wbg_ogline_free: (a: number, b: number) => void;
|
|
222
168
|
export const ogline_set_id: (a: number, b: number, c: number) => void;
|
|
223
169
|
export const ogline_id: (a: number) => [number, number];
|
|
@@ -236,6 +182,7 @@ export const ogline_get_geometry_serialized: (a: number) => [number, number];
|
|
|
236
182
|
export const ogline_get_local_geometry_serialized: (a: number) => [number, number];
|
|
237
183
|
export const ogline_get_geometry_buffer: (a: number) => [number, number];
|
|
238
184
|
export const ogline_get_local_geometry_buffer: (a: number) => [number, number];
|
|
185
|
+
export const ogline_get_anchor: (a: number) => number;
|
|
239
186
|
export const ogline_set_anchor: (a: number, b: number) => [number, number];
|
|
240
187
|
export const ogline_reset_anchor: (a: number) => [number, number];
|
|
241
188
|
export const ogline_get_offset_serialized: (a: number, b: number, c: number, d: number) => [number, number];
|
|
@@ -265,48 +212,29 @@ export const ogpolyline_get_geometry_buffer: (a: number) => [number, number];
|
|
|
265
212
|
export const ogpolyline_get_local_geometry_buffer: (a: number) => [number, number];
|
|
266
213
|
export const ogpolyline_set_anchor: (a: number, b: number) => [number, number];
|
|
267
214
|
export const ogpolyline_reset_anchor: (a: number) => [number, number];
|
|
268
|
-
export const
|
|
269
|
-
export const
|
|
270
|
-
export const
|
|
271
|
-
export const
|
|
272
|
-
export const
|
|
273
|
-
export const
|
|
274
|
-
export const
|
|
275
|
-
export const
|
|
276
|
-
export const
|
|
277
|
-
export const
|
|
278
|
-
export const
|
|
279
|
-
export const
|
|
280
|
-
export const
|
|
281
|
-
export const
|
|
282
|
-
export const
|
|
283
|
-
export const
|
|
284
|
-
export const
|
|
285
|
-
export const
|
|
286
|
-
export const
|
|
287
|
-
export const
|
|
288
|
-
export const
|
|
289
|
-
export const
|
|
290
|
-
export const
|
|
291
|
-
export const ogfreeformeditor_getEdgeInfo: (a: number, b: number, c: number) => [number, number, number, number];
|
|
292
|
-
export const ogfreeformeditor_getVertexInfo: (a: number, b: number, c: number) => [number, number, number, number];
|
|
293
|
-
export const ogfreeformeditor_getEditCapabilities: (a: number, b: number) => [number, number, number, number];
|
|
294
|
-
export const ogfreeformeditor_getFaceEditCapabilities: (a: number, b: number, c: number) => [number, number, number, number];
|
|
295
|
-
export const ogfreeformeditor_getEdgeEditCapabilities: (a: number, b: number, c: number) => [number, number, number, number];
|
|
296
|
-
export const ogfreeformeditor_getVertexEditCapabilities: (a: number, b: number, c: number) => [number, number, number, number];
|
|
297
|
-
export const ogfreeformeditor_pushPullFace: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
298
|
-
export const ogfreeformeditor_moveFace: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
299
|
-
export const ogfreeformeditor_moveEdge: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
300
|
-
export const ogfreeformeditor_moveVertex: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
301
|
-
export const ogfreeformeditor_extrudeFace: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
302
|
-
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];
|
|
303
|
-
export const ogfreeformeditor_insertVertexOnEdge: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
304
|
-
export const ogfreeformeditor_loopCut: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
305
|
-
export const ogfreeformeditor_removeVertex: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
306
|
-
export const ogline_get_anchor: (a: number) => number;
|
|
307
|
-
export const ogpolyline_get_anchor: (a: number) => number;
|
|
308
|
-
export const ogfreeformeditor_splitEdge: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
309
|
-
export const ogpolyline_set_config: (a: number, b: number, c: number) => [number, number];
|
|
215
|
+
export const __wbg_ogsphere_free: (a: number, b: number) => void;
|
|
216
|
+
export const ogsphere_set_id: (a: number, b: number, c: number) => void;
|
|
217
|
+
export const ogsphere_id: (a: number) => [number, number];
|
|
218
|
+
export const ogsphere_new: (a: number, b: number) => number;
|
|
219
|
+
export const ogsphere_set_config: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
220
|
+
export const ogsphere_set_center: (a: number, b: number) => void;
|
|
221
|
+
export const ogsphere_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
222
|
+
export const ogsphere_set_translation: (a: number, b: number) => void;
|
|
223
|
+
export const ogsphere_set_rotation: (a: number, b: number) => void;
|
|
224
|
+
export const ogsphere_set_scale: (a: number, b: number) => [number, number];
|
|
225
|
+
export const ogsphere_generate_brep: (a: number) => [number, number];
|
|
226
|
+
export const ogsphere_clean_geometry: (a: number) => void;
|
|
227
|
+
export const ogsphere_generate_geometry: (a: number) => [number, number];
|
|
228
|
+
export const ogsphere_get_brep_serialized: (a: number) => [number, number];
|
|
229
|
+
export const ogsphere_get_local_brep_serialized: (a: number) => [number, number];
|
|
230
|
+
export const ogsphere_get_geometry_serialized: (a: number) => [number, number];
|
|
231
|
+
export const ogsphere_get_local_geometry_serialized: (a: number) => [number, number];
|
|
232
|
+
export const ogsphere_get_geometry_buffer: (a: number) => [number, number];
|
|
233
|
+
export const ogsphere_get_local_geometry_buffer: (a: number) => [number, number];
|
|
234
|
+
export const ogsphere_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
235
|
+
export const ogsphere_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
236
|
+
export const ogsphere_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
237
|
+
export const ogsphere_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
310
238
|
export const __wbg_ogstlexportresult_free: (a: number, b: number) => void;
|
|
311
239
|
export const ogstlexportresult_bytes: (a: number) => [number, number];
|
|
312
240
|
export const ogstlexportresult_reportJson: (a: number) => [number, number];
|
|
@@ -366,10 +294,119 @@ export const ogentityregistry_registerEntity: (a: number, b: number, c: number,
|
|
|
366
294
|
export const ogentityregistry_unregisterEntity: (a: number, b: number, c: number) => number;
|
|
367
295
|
export const ogentityregistry_clearEntities: (a: number) => void;
|
|
368
296
|
export const ogentityregistry_projectCurrentToViews: (a: number, b: number, c: number) => [number, number, number, number];
|
|
297
|
+
export const ogpolyline_get_anchor: (a: number) => number;
|
|
298
|
+
export const ogsphere_get_anchor: (a: number) => number;
|
|
369
299
|
export const ogscenemanager_replaceBrepEntityInCurrentScene: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
370
300
|
export const ogscenemanager_refreshBrepEntityInCurrentScene: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
371
301
|
export const ogscenemanager_replaceBrepEntityInScene: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number];
|
|
372
302
|
export const ogscenemanager_refreshBrepEntityInScene: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number];
|
|
303
|
+
export const ogpolyline_set_config: (a: number, b: number, c: number) => [number, number];
|
|
304
|
+
export const analyzeProfile: (a: number, b: number) => [number, number, number, number];
|
|
305
|
+
export const checkBrepValidity: (a: number, b: number) => [number, number, number, number];
|
|
306
|
+
export const healBrep: (a: number, b: number, c: number) => [number, number, number, number];
|
|
307
|
+
export const __wbg_ogoffsetregionsresult_free: (a: number, b: number) => void;
|
|
308
|
+
export const ogoffsetregionsresult_regionsSerialized: (a: number) => [number, number];
|
|
309
|
+
export const offsetPolylineRegions: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
310
|
+
export const offsetPolylineGroupRegions: (a: number, b: number) => [number, number, number];
|
|
311
|
+
export const offsetRingVariable: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
312
|
+
export const __wbg_ogarc_free: (a: number, b: number) => void;
|
|
313
|
+
export const ogarc_set_id: (a: number, b: number, c: number) => void;
|
|
314
|
+
export const ogarc_id: (a: number) => [number, number];
|
|
315
|
+
export const ogarc_new: (a: number, b: number) => number;
|
|
316
|
+
export const ogarc_set_config: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
317
|
+
export const ogarc_set_center: (a: number, b: number) => void;
|
|
318
|
+
export const ogarc_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
319
|
+
export const ogarc_set_translation: (a: number, b: number) => void;
|
|
320
|
+
export const ogarc_set_rotation: (a: number, b: number) => void;
|
|
321
|
+
export const ogarc_set_scale: (a: number, b: number) => [number, number];
|
|
322
|
+
export const ogarc_generate_geometry: (a: number) => [number, number];
|
|
323
|
+
export const ogarc_dispose_points: (a: number) => void;
|
|
324
|
+
export const ogarc_destroy: (a: number) => void;
|
|
325
|
+
export const ogarc_get_brep_serialized: (a: number) => [number, number];
|
|
326
|
+
export const ogarc_get_local_brep_serialized: (a: number) => [number, number];
|
|
327
|
+
export const ogarc_get_geometry_serialized: (a: number) => [number, number];
|
|
328
|
+
export const ogarc_get_local_geometry_serialized: (a: number) => [number, number];
|
|
329
|
+
export const ogarc_get_geometry_buffer: (a: number) => [number, number];
|
|
330
|
+
export const ogarc_get_local_geometry_buffer: (a: number) => [number, number];
|
|
331
|
+
export const ogarc_get_anchor: (a: number) => number;
|
|
332
|
+
export const extrudeBrepFace: (a: number, b: number, c: number) => [number, number, number, number];
|
|
333
|
+
export const extrudeBrepFaceDirectional: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
|
|
334
|
+
export const __wbg_ogfreeformeditor_free: (a: number, b: number) => void;
|
|
335
|
+
export const ogfreeformeditor_new: () => number;
|
|
336
|
+
export const ogfreeformeditor_getTopologyRenderData: (a: number, b: number) => [number, number, number, number];
|
|
337
|
+
export const ogfreeformeditor_getFaceInfo: (a: number, b: number, c: number) => [number, number, number, number];
|
|
338
|
+
export const ogfreeformeditor_getEdgeInfo: (a: number, b: number, c: number) => [number, number, number, number];
|
|
339
|
+
export const ogfreeformeditor_getVertexInfo: (a: number, b: number, c: number) => [number, number, number, number];
|
|
340
|
+
export const ogfreeformeditor_getEditCapabilities: (a: number, b: number) => [number, number, number, number];
|
|
341
|
+
export const ogfreeformeditor_getFaceEditCapabilities: (a: number, b: number, c: number) => [number, number, number, number];
|
|
342
|
+
export const ogfreeformeditor_getEdgeEditCapabilities: (a: number, b: number, c: number) => [number, number, number, number];
|
|
343
|
+
export const ogfreeformeditor_getVertexEditCapabilities: (a: number, b: number, c: number) => [number, number, number, number];
|
|
344
|
+
export const ogfreeformeditor_pushPullFace: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
345
|
+
export const ogfreeformeditor_moveFace: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
346
|
+
export const ogfreeformeditor_moveEdge: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
347
|
+
export const ogfreeformeditor_moveVertex: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
348
|
+
export const ogfreeformeditor_extrudeFace: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
349
|
+
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];
|
|
350
|
+
export const ogfreeformeditor_insertVertexOnEdge: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
351
|
+
export const ogfreeformeditor_loopCut: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
352
|
+
export const ogfreeformeditor_removeVertex: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
353
|
+
export const ogfreeformeditor_splitEdge: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
354
|
+
export const __wbg_ogcuboid_free: (a: number, b: number) => void;
|
|
355
|
+
export const ogcuboid_set_id: (a: number, b: number, c: number) => void;
|
|
356
|
+
export const ogcuboid_id: (a: number) => [number, number];
|
|
357
|
+
export const ogcuboid_new: (a: number, b: number) => number;
|
|
358
|
+
export const ogcuboid_set_config: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
359
|
+
export const ogcuboid_set_center: (a: number, b: number) => void;
|
|
360
|
+
export const ogcuboid_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
361
|
+
export const ogcuboid_set_translation: (a: number, b: number) => void;
|
|
362
|
+
export const ogcuboid_set_rotation: (a: number, b: number) => void;
|
|
363
|
+
export const ogcuboid_set_scale: (a: number, b: number) => [number, number];
|
|
364
|
+
export const ogcuboid_generate_geometry: (a: number) => [number, number];
|
|
365
|
+
export const ogcuboid_get_brep_serialized: (a: number) => [number, number];
|
|
366
|
+
export const ogcuboid_get_local_brep_serialized: (a: number) => [number, number];
|
|
367
|
+
export const ogcuboid_get_geometry_serialized: (a: number) => [number, number];
|
|
368
|
+
export const ogcuboid_get_local_geometry_serialized: (a: number) => [number, number];
|
|
369
|
+
export const ogcuboid_get_geometry_buffer: (a: number) => [number, number];
|
|
370
|
+
export const ogcuboid_get_local_geometry_buffer: (a: number) => [number, number];
|
|
371
|
+
export const ogcuboid_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
372
|
+
export const ogcuboid_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
373
|
+
export const ogcuboid_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
374
|
+
export const ogcuboid_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
375
|
+
export const ogcuboid_get_anchor: (a: number) => number;
|
|
376
|
+
export const __wbg_ogbooleanresult_free: (a: number, b: number) => void;
|
|
377
|
+
export const ogbooleanresult_brepSerialized: (a: number) => [number, number];
|
|
378
|
+
export const ogbooleanresult_geometrySerialized: (a: number) => [number, number];
|
|
379
|
+
export const ogbooleanresult_outlineGeometrySerialized: (a: number) => [number, number];
|
|
380
|
+
export const ogbooleanresult_reportJson: (a: number) => [number, number];
|
|
381
|
+
export const booleanUnion: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
382
|
+
export const booleanIntersection: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
383
|
+
export const booleanSubtraction: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
384
|
+
export const booleanSubtractionMany: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
385
|
+
export const batchUnion: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
386
|
+
export const __wbg_ogcylinder_free: (a: number, b: number) => void;
|
|
387
|
+
export const ogcylinder_set_id: (a: number, b: number, c: number) => void;
|
|
388
|
+
export const ogcylinder_id: (a: number) => [number, number];
|
|
389
|
+
export const ogcylinder_new: (a: number, b: number) => number;
|
|
390
|
+
export const ogcylinder_set_config: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
391
|
+
export const ogcylinder_set_center: (a: number, b: number) => void;
|
|
392
|
+
export const ogcylinder_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
393
|
+
export const ogcylinder_set_translation: (a: number, b: number) => void;
|
|
394
|
+
export const ogcylinder_set_rotation: (a: number, b: number) => void;
|
|
395
|
+
export const ogcylinder_set_scale: (a: number, b: number) => [number, number];
|
|
396
|
+
export const ogcylinder_generate_brep: (a: number) => [number, number];
|
|
397
|
+
export const ogcylinder_clean_geometry: (a: number) => void;
|
|
398
|
+
export const ogcylinder_generate_geometry: (a: number) => [number, number];
|
|
399
|
+
export const ogcylinder_get_brep_serialized: (a: number) => [number, number];
|
|
400
|
+
export const ogcylinder_get_local_brep_serialized: (a: number) => [number, number];
|
|
401
|
+
export const ogcylinder_get_geometry_serialized: (a: number) => [number, number];
|
|
402
|
+
export const ogcylinder_get_local_geometry_serialized: (a: number) => [number, number];
|
|
403
|
+
export const ogcylinder_get_geometry_buffer: (a: number) => [number, number];
|
|
404
|
+
export const ogcylinder_get_local_geometry_buffer: (a: number) => [number, number];
|
|
405
|
+
export const ogcylinder_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
406
|
+
export const ogcylinder_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
407
|
+
export const ogcylinder_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
408
|
+
export const ogcylinder_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
409
|
+
export const ogcylinder_get_anchor: (a: number) => number;
|
|
373
410
|
export const __wbg_matrix4_free: (a: number, b: number) => void;
|
|
374
411
|
export const matrix4_elements: (a: number) => [number, number];
|
|
375
412
|
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.13",
|
|
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",
|
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">;
|
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
|
+
};
|