opengeometry 2.0.11 → 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.js +978 -203
- package/index.js.map +1 -1
- package/opengeometry/pkg/opengeometry.d.ts +311 -198
- package/opengeometry/pkg/opengeometry.js +508 -40
- package/opengeometry/pkg/opengeometry_bg.wasm +0 -0
- package/opengeometry/pkg/opengeometry_bg.wasm.d.ts +229 -197
- package/opengeometry_bg.wasm +0 -0
- package/opengeometry_bg.wasm.d.ts +229 -197
- 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 +0 -3
- package/src/operations/offset-regions.d.ts +36 -0
- package/src/primitives/elliptical_arc.d.ts +66 -0
- package/src/primitives/index.d.ts +1 -0
- package/src/toolkit/index.d.ts +0 -4
- package/src/toolkit/wall.d.ts +0 -40
|
@@ -1,30 +1,106 @@
|
|
|
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
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
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;
|
|
24
|
+
export const __wbg_ogsweep_free: (a: number, b: number) => void;
|
|
25
|
+
export const ogsweep_set_id: (a: number, b: number, c: number) => void;
|
|
26
|
+
export const ogsweep_id: (a: number) => [number, number];
|
|
27
|
+
export const ogsweep_new: (a: number, b: number) => number;
|
|
28
|
+
export const ogsweep_set_config: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
29
|
+
export const ogsweep_set_config_with_caps: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
30
|
+
export const ogsweep_set_caps: (a: number, b: number, c: number) => [number, number];
|
|
31
|
+
export const ogsweep_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
32
|
+
export const ogsweep_set_translation: (a: number, b: number) => void;
|
|
33
|
+
export const ogsweep_set_rotation: (a: number, b: number) => void;
|
|
34
|
+
export const ogsweep_set_scale: (a: number, b: number) => [number, number];
|
|
35
|
+
export const ogsweep_generate_brep: (a: number) => [number, number];
|
|
36
|
+
export const ogsweep_clean_geometry: (a: number) => void;
|
|
37
|
+
export const ogsweep_generate_geometry: (a: number) => [number, number];
|
|
38
|
+
export const ogsweep_get_brep_serialized: (a: number) => [number, number];
|
|
39
|
+
export const ogsweep_get_local_brep_serialized: (a: number) => [number, number];
|
|
40
|
+
export const ogsweep_get_geometry_serialized: (a: number) => [number, number];
|
|
41
|
+
export const ogsweep_get_local_geometry_serialized: (a: number) => [number, number];
|
|
42
|
+
export const ogsweep_get_geometry_buffer: (a: number) => [number, number];
|
|
43
|
+
export const ogsweep_get_local_geometry_buffer: (a: number) => [number, number];
|
|
44
|
+
export const ogsweep_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
45
|
+
export const ogsweep_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
46
|
+
export const ogsweep_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
47
|
+
export const ogsweep_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
48
|
+
export const ogsweep_set_anchor: (a: number, b: number) => [number, number];
|
|
49
|
+
export const ogsweep_reset_anchor: (a: number) => [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;
|
|
79
|
+
export const __wbg_ogpolygon_free: (a: number, b: number) => void;
|
|
80
|
+
export const ogpolygon_set_id: (a: number, b: number, c: number) => void;
|
|
81
|
+
export const ogpolygon_id: (a: number) => [number, number];
|
|
82
|
+
export const ogpolygon_new: (a: number, b: number) => number;
|
|
83
|
+
export const ogpolygon_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
84
|
+
export const ogpolygon_set_translation: (a: number, b: number) => void;
|
|
85
|
+
export const ogpolygon_set_rotation: (a: number, b: number) => void;
|
|
86
|
+
export const ogpolygon_set_scale: (a: number, b: number) => [number, number];
|
|
87
|
+
export const ogpolygon_add_vertices: (a: number, b: number, c: number) => [number, number];
|
|
88
|
+
export const ogpolygon_add_holes: (a: number, b: number, c: number) => [number, number];
|
|
89
|
+
export const ogpolygon_clean_geometry: (a: number) => void;
|
|
90
|
+
export const ogpolygon_generate_brep: (a: number) => [number, number];
|
|
91
|
+
export const ogpolygon_get_brep_serialized: (a: number) => [number, number];
|
|
92
|
+
export const ogpolygon_get_local_brep_serialized: (a: number) => [number, number];
|
|
93
|
+
export const ogpolygon_get_geometry_serialized: (a: number) => [number, number];
|
|
94
|
+
export const ogpolygon_get_local_geometry_serialized: (a: number) => [number, number];
|
|
95
|
+
export const ogpolygon_get_geometry_buffer: (a: number) => [number, number];
|
|
96
|
+
export const ogpolygon_get_local_geometry_buffer: (a: number) => [number, number];
|
|
97
|
+
export const ogpolygon_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
98
|
+
export const ogpolygon_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
99
|
+
export const ogpolygon_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
100
|
+
export const ogpolygon_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
101
|
+
export const ogpolygon_get_anchor: (a: number) => number;
|
|
102
|
+
export const ogpolygon_set_anchor: (a: number, b: number) => [number, number];
|
|
103
|
+
export const ogpolygon_reset_anchor: (a: number) => [number, number];
|
|
28
104
|
export const __wbg_ogrectangle_free: (a: number, b: number) => void;
|
|
29
105
|
export const ogrectangle_set_id: (a: number, b: number, c: number) => void;
|
|
30
106
|
export const ogrectangle_id: (a: number) => [number, number];
|
|
@@ -44,30 +120,32 @@ export const ogrectangle_get_geometry_buffer: (a: number) => [number, number];
|
|
|
44
120
|
export const ogrectangle_get_local_geometry_buffer: (a: number) => [number, number];
|
|
45
121
|
export const ogrectangle_get_anchor: (a: number) => number;
|
|
46
122
|
export const ogrectangle_get_offset_serialized: (a: number, b: number, c: number, d: number) => [number, number];
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
52
|
-
export const
|
|
53
|
-
export const
|
|
54
|
-
export const
|
|
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
|
|
123
|
+
export const ogpolygon_set_config: (a: number, b: number, c: number) => [number, number];
|
|
124
|
+
export const ogpolygon_generate_geometry: (a: number) => [number, number];
|
|
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;
|
|
71
149
|
export const __wbg_ogfreeformgeometry_free: (a: number, b: number) => void;
|
|
72
150
|
export const ogfreeformgeometry_new: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
73
151
|
export const ogfreeformgeometry_id: (a: number) => [number, number];
|
|
@@ -86,6 +164,29 @@ export const ogfreeformgeometry_setTranslation: (a: number, b: number) => void;
|
|
|
86
164
|
export const ogfreeformgeometry_setRotation: (a: number, b: number) => void;
|
|
87
165
|
export const ogfreeformgeometry_setScale: (a: number, b: number) => [number, number];
|
|
88
166
|
export const ogfreeformgeometry_setAnchor: (a: number, b: number) => void;
|
|
167
|
+
export const __wbg_ogline_free: (a: number, b: number) => void;
|
|
168
|
+
export const ogline_set_id: (a: number, b: number, c: number) => void;
|
|
169
|
+
export const ogline_id: (a: number) => [number, number];
|
|
170
|
+
export const ogline_new: (a: number, b: number) => number;
|
|
171
|
+
export const ogline_set_config: (a: number, b: number, c: number) => [number, number];
|
|
172
|
+
export const ogline_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
173
|
+
export const ogline_set_translation: (a: number, b: number) => void;
|
|
174
|
+
export const ogline_set_rotation: (a: number, b: number) => void;
|
|
175
|
+
export const ogline_set_scale: (a: number, b: number) => [number, number];
|
|
176
|
+
export const ogline_generate_geometry: (a: number) => [number, number];
|
|
177
|
+
export const ogline_dispose_points: (a: number) => void;
|
|
178
|
+
export const ogline_destroy: (a: number) => void;
|
|
179
|
+
export const ogline_get_brep_serialized: (a: number) => [number, number];
|
|
180
|
+
export const ogline_get_local_brep_serialized: (a: number) => [number, number];
|
|
181
|
+
export const ogline_get_geometry_serialized: (a: number) => [number, number];
|
|
182
|
+
export const ogline_get_local_geometry_serialized: (a: number) => [number, number];
|
|
183
|
+
export const ogline_get_geometry_buffer: (a: number) => [number, number];
|
|
184
|
+
export const ogline_get_local_geometry_buffer: (a: number) => [number, number];
|
|
185
|
+
export const ogline_get_anchor: (a: number) => number;
|
|
186
|
+
export const ogline_set_anchor: (a: number, b: number) => [number, number];
|
|
187
|
+
export const ogline_reset_anchor: (a: number) => [number, number];
|
|
188
|
+
export const ogline_get_offset_serialized: (a: number, b: number, c: number, d: number) => [number, number];
|
|
189
|
+
export const ogline_get_dxf_serialized: (a: number) => [number, number];
|
|
89
190
|
export const __wbg_ogpolyline_free: (a: number, b: number) => void;
|
|
90
191
|
export const ogpolyline_set_id: (a: number, b: number, c: number) => void;
|
|
91
192
|
export const ogpolyline_id: (a: number) => [number, number];
|
|
@@ -109,9 +210,31 @@ export const ogpolyline_get_geometry_serialized: (a: number) => [number, number]
|
|
|
109
210
|
export const ogpolyline_get_local_geometry_serialized: (a: number) => [number, number];
|
|
110
211
|
export const ogpolyline_get_geometry_buffer: (a: number) => [number, number];
|
|
111
212
|
export const ogpolyline_get_local_geometry_buffer: (a: number) => [number, number];
|
|
112
|
-
export const ogpolyline_get_anchor: (a: number) => number;
|
|
113
213
|
export const ogpolyline_set_anchor: (a: number, b: number) => [number, number];
|
|
114
214
|
export const ogpolyline_reset_anchor: (a: 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];
|
|
115
238
|
export const __wbg_ogstlexportresult_free: (a: number, b: number) => void;
|
|
116
239
|
export const ogstlexportresult_bytes: (a: number) => [number, number];
|
|
117
240
|
export const ogstlexportresult_reportJson: (a: number) => [number, number];
|
|
@@ -171,11 +294,43 @@ export const ogentityregistry_registerEntity: (a: number, b: number, c: number,
|
|
|
171
294
|
export const ogentityregistry_unregisterEntity: (a: number, b: number, c: number) => number;
|
|
172
295
|
export const ogentityregistry_clearEntities: (a: number) => void;
|
|
173
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;
|
|
174
299
|
export const ogscenemanager_replaceBrepEntityInCurrentScene: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
175
300
|
export const ogscenemanager_refreshBrepEntityInCurrentScene: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
|
|
176
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];
|
|
177
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];
|
|
178
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];
|
|
179
334
|
export const __wbg_ogfreeformeditor_free: (a: number, b: number) => void;
|
|
180
335
|
export const ogfreeformeditor_new: () => number;
|
|
181
336
|
export const ogfreeformeditor_getTopologyRenderData: (a: number, b: number) => [number, number, number, number];
|
|
@@ -196,61 +351,6 @@ export const ogfreeformeditor_insertVertexOnEdge: (a: number, b: number, c: numb
|
|
|
196
351
|
export const ogfreeformeditor_loopCut: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
197
352
|
export const ogfreeformeditor_removeVertex: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
198
353
|
export const ogfreeformeditor_splitEdge: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
199
|
-
export const __wbg_ogoffsetregionsresult_free: (a: number, b: number) => void;
|
|
200
|
-
export const ogoffsetregionsresult_regionsSerialized: (a: number) => [number, number];
|
|
201
|
-
export const offsetPolylineRegions: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
202
|
-
export const offsetPolylineGroupRegions: (a: number, b: number) => [number, number, number];
|
|
203
|
-
export const __wbg_ogpolygon_free: (a: number, b: number) => void;
|
|
204
|
-
export const ogpolygon_set_id: (a: number, b: number, c: number) => void;
|
|
205
|
-
export const ogpolygon_id: (a: number) => [number, number];
|
|
206
|
-
export const ogpolygon_new: (a: number, b: number) => number;
|
|
207
|
-
export const ogpolygon_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
208
|
-
export const ogpolygon_set_translation: (a: number, b: number) => void;
|
|
209
|
-
export const ogpolygon_set_rotation: (a: number, b: number) => void;
|
|
210
|
-
export const ogpolygon_set_scale: (a: number, b: number) => [number, number];
|
|
211
|
-
export const ogpolygon_add_vertices: (a: number, b: number, c: number) => [number, number];
|
|
212
|
-
export const ogpolygon_add_holes: (a: number, b: number, c: number) => [number, number];
|
|
213
|
-
export const ogpolygon_clean_geometry: (a: number) => void;
|
|
214
|
-
export const ogpolygon_generate_brep: (a: number) => [number, number];
|
|
215
|
-
export const ogpolygon_get_brep_serialized: (a: number) => [number, number];
|
|
216
|
-
export const ogpolygon_get_local_brep_serialized: (a: number) => [number, number];
|
|
217
|
-
export const ogpolygon_get_geometry_serialized: (a: number) => [number, number];
|
|
218
|
-
export const ogpolygon_get_local_geometry_serialized: (a: number) => [number, number];
|
|
219
|
-
export const ogpolygon_get_geometry_buffer: (a: number) => [number, number];
|
|
220
|
-
export const ogpolygon_get_local_geometry_buffer: (a: number) => [number, number];
|
|
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];
|
|
228
|
-
export const __wbg_ogsphere_free: (a: number, b: number) => void;
|
|
229
|
-
export const ogsphere_set_id: (a: number, b: number, c: number) => void;
|
|
230
|
-
export const ogsphere_id: (a: number) => [number, number];
|
|
231
|
-
export const ogsphere_new: (a: number, b: number) => number;
|
|
232
|
-
export const ogsphere_set_config: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
233
|
-
export const ogsphere_set_center: (a: number, b: number) => void;
|
|
234
|
-
export const ogsphere_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
235
|
-
export const ogsphere_set_translation: (a: number, b: number) => void;
|
|
236
|
-
export const ogsphere_set_rotation: (a: number, b: number) => void;
|
|
237
|
-
export const ogsphere_set_scale: (a: number, b: number) => [number, number];
|
|
238
|
-
export const ogsphere_generate_brep: (a: number) => [number, number];
|
|
239
|
-
export const ogsphere_clean_geometry: (a: number) => void;
|
|
240
|
-
export const ogsphere_generate_geometry: (a: number) => [number, number];
|
|
241
|
-
export const ogsphere_get_brep_serialized: (a: number) => [number, number];
|
|
242
|
-
export const ogsphere_get_local_brep_serialized: (a: number) => [number, number];
|
|
243
|
-
export const ogsphere_get_geometry_serialized: (a: number) => [number, number];
|
|
244
|
-
export const ogsphere_get_local_geometry_serialized: (a: number) => [number, number];
|
|
245
|
-
export const ogsphere_get_geometry_buffer: (a: number) => [number, number];
|
|
246
|
-
export const ogsphere_get_local_geometry_buffer: (a: number) => [number, number];
|
|
247
|
-
export const ogsphere_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
248
|
-
export const ogsphere_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
249
|
-
export const ogsphere_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
250
|
-
export const ogsphere_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
251
|
-
export const ogsphere_get_anchor: (a: number) => number;
|
|
252
|
-
export const ogpolygon_set_config: (a: number, b: number, c: number) => [number, number];
|
|
253
|
-
export const ogpolygon_generate_geometry: (a: number) => [number, number];
|
|
254
354
|
export const __wbg_ogcuboid_free: (a: number, b: number) => void;
|
|
255
355
|
export const ogcuboid_set_id: (a: number, b: number, c: number) => void;
|
|
256
356
|
export const ogcuboid_id: (a: number) => [number, number];
|
|
@@ -273,98 +373,6 @@ export const ogcuboid_get_local_outline_geometry_serialized: (a: number) => [num
|
|
|
273
373
|
export const ogcuboid_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
274
374
|
export const ogcuboid_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
275
375
|
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;
|
|
323
|
-
export const __wbg_ogwedge_free: (a: number, b: number) => void;
|
|
324
|
-
export const ogwedge_set_id: (a: number, b: number, c: number) => void;
|
|
325
|
-
export const ogwedge_id: (a: number) => [number, number];
|
|
326
|
-
export const ogwedge_new: (a: number, b: number) => number;
|
|
327
|
-
export const ogwedge_set_config: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
328
|
-
export const ogwedge_set_center: (a: number, b: number) => void;
|
|
329
|
-
export const ogwedge_set_transform: (a: number, b: number, c: number, d: number) => [number, number];
|
|
330
|
-
export const ogwedge_set_translation: (a: number, b: number) => void;
|
|
331
|
-
export const ogwedge_set_rotation: (a: number, b: number) => void;
|
|
332
|
-
export const ogwedge_set_scale: (a: number, b: number) => [number, number];
|
|
333
|
-
export const ogwedge_generate_brep: (a: number) => [number, number];
|
|
334
|
-
export const ogwedge_clean_geometry: (a: number) => void;
|
|
335
|
-
export const ogwedge_generate_geometry: (a: number) => [number, number];
|
|
336
|
-
export const ogwedge_get_brep_serialized: (a: number) => [number, number];
|
|
337
|
-
export const ogwedge_get_local_brep_serialized: (a: number) => [number, number];
|
|
338
|
-
export const ogwedge_get_geometry_serialized: (a: number) => [number, number];
|
|
339
|
-
export const ogwedge_get_local_geometry_serialized: (a: number) => [number, number];
|
|
340
|
-
export const ogwedge_get_geometry_buffer: (a: number) => [number, number];
|
|
341
|
-
export const ogwedge_get_local_geometry_buffer: (a: number) => [number, number];
|
|
342
|
-
export const ogwedge_get_outline_geometry_serialized: (a: number) => [number, number];
|
|
343
|
-
export const ogwedge_get_local_outline_geometry_serialized: (a: number) => [number, number];
|
|
344
|
-
export const ogwedge_get_outline_geometry_buffer: (a: number) => [number, number];
|
|
345
|
-
export const ogwedge_get_local_outline_geometry_buffer: (a: number) => [number, number];
|
|
346
|
-
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
376
|
export const __wbg_ogbooleanresult_free: (a: number, b: number) => void;
|
|
369
377
|
export const ogbooleanresult_brepSerialized: (a: number) => [number, number];
|
|
370
378
|
export const ogbooleanresult_geometrySerialized: (a: number) => [number, number];
|
|
@@ -375,6 +383,30 @@ export const booleanIntersection: (a: number, b: number, c: number, d: number, e
|
|
|
375
383
|
export const booleanSubtraction: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
376
384
|
export const booleanSubtractionMany: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
377
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;
|
|
378
410
|
export const __wbg_matrix4_free: (a: number, b: number) => void;
|
|
379
411
|
export const matrix4_elements: (a: number) => [number, number];
|
|
380
412
|
export const matrix4_new: () => number;
|
|
@@ -433,7 +465,7 @@ export const __externref_table_alloc: () => number;
|
|
|
433
465
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
434
466
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
435
467
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
436
|
-
export const __externref_table_dealloc: (a: number) => void;
|
|
437
468
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
469
|
+
export const __externref_table_dealloc: (a: number) => void;
|
|
438
470
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
439
471
|
export const __wbindgen_start: () => void;
|
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
|
+
};
|
|
@@ -25,6 +25,42 @@ export interface OffsetRegion {
|
|
|
25
25
|
* @param miterLimit SVG stroke-miterlimit; corners sharper than this bevel. Default 4.
|
|
26
26
|
*/
|
|
27
27
|
export declare function offsetPolylineRegions(centrelineFlat: number[] | Float64Array, width: number, closed: boolean, miterLimit?: number): OffsetRegion[];
|
|
28
|
+
/** An excluded interior ring of a variable inset (an easement island, a
|
|
29
|
+
* protected tree pit): its closed ring `[x,y,z, …]` plus one clearance
|
|
30
|
+
* distance per hole edge. The inset GROWS the hole by its distances. */
|
|
31
|
+
export interface OffsetHole {
|
|
32
|
+
ring: number[] | Float64Array;
|
|
33
|
+
distances: number[] | Float64Array;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Inset a CLOSED ring inward with one distance per edge (edge i =
|
|
37
|
+
* `ring[i] → ring[i+1]`; an explicit closing duplicate point is accepted and
|
|
38
|
+
* stripped, the distance count stays one per unique edge). Built for setback
|
|
39
|
+
* envelopes: the result is the CLEARANCE-EXACT buildable region — the ring's
|
|
40
|
+
* interior minus every point within `distances[i]` of edge i's SEGMENT, so
|
|
41
|
+
* distant lot lines are honoured across notches and corners where distances
|
|
42
|
+
* differ become circumscribed clearance arcs (conservative). There is no
|
|
43
|
+
* `miterLimit` parameter, deliberately: miters and bevels only approximate the
|
|
44
|
+
* clearance arc, and a bevel would claim points inside the required distance.
|
|
45
|
+
*
|
|
46
|
+
* `holes` are excluded interior rings, each grown outward by its own per-edge
|
|
47
|
+
* distances — the region keeps clear of a hole's edges exactly as it keeps
|
|
48
|
+
* clear of the lot lines, so a hole can split the region or swallow it.
|
|
49
|
+
*
|
|
50
|
+
* Returns CW-outer / CCW-hole regions (canonical start vertex), possibly
|
|
51
|
+
* SEVERAL when a deep inset (or a hole) splits a waisted ring into disjoint
|
|
52
|
+
* lobes, and an EMPTY array when the inset collapses or the outer ring is
|
|
53
|
+
* degenerate (< 3 unique points, zero area, self-intersecting). THROWS on
|
|
54
|
+
* malformed arguments: a distance count that does not match an edge count, a
|
|
55
|
+
* negative / non-finite distance, or a degenerate hole — those are caller
|
|
56
|
+
* bugs, not geometry.
|
|
57
|
+
*
|
|
58
|
+
* @param ring closed ring points as `[x,y,z, …]` (Y is carried through).
|
|
59
|
+
* @param distances inward inset distance per edge, metres, each >= 0
|
|
60
|
+
* (0 = the edge stays in place, e.g. lot-line construction).
|
|
61
|
+
* @param holes excluded interior rings with their own per-edge distances.
|
|
62
|
+
*/
|
|
63
|
+
export declare function offsetRingVariable(ring: number[] | Float64Array, distances: number[] | Float64Array, holes?: OffsetHole[]): OffsetRegion[];
|
|
28
64
|
/** One polyline in an offset group: centreline `[x,y,z, …]`, stroke width, closed flag. */
|
|
29
65
|
export interface OffsetPolyline {
|
|
30
66
|
centreline: number[];
|