@bitbybit-dev/manifold 0.19.0-alpha.0
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/LICENSE +21 -0
- package/README.md +63 -0
- package/babel.config.cjs +14 -0
- package/babel.config.d.cts +5 -0
- package/index.d.ts +1 -0
- package/index.js +4 -0
- package/lib/api/inputs/base-inputs.d.ts +38 -0
- package/lib/api/inputs/base-inputs.js +1 -0
- package/lib/api/inputs/index.d.ts +2 -0
- package/lib/api/inputs/index.js +2 -0
- package/lib/api/inputs/inputs.d.ts +2 -0
- package/lib/api/inputs/inputs.js +2 -0
- package/lib/api/inputs/manifold-inputs.d.ts +1131 -0
- package/lib/api/inputs/manifold-inputs.js +1270 -0
- package/lib/api/manifold-service.d.ts +14 -0
- package/lib/api/manifold-service.js +28 -0
- package/lib/api/services/cross-section/cross-section-booleans.d.ts +15 -0
- package/lib/api/services/cross-section/cross-section-booleans.js +44 -0
- package/lib/api/services/cross-section/cross-section-evaluate.d.ts +11 -0
- package/lib/api/services/cross-section/cross-section-evaluate.js +21 -0
- package/lib/api/services/cross-section/cross-section-operations.d.ts +13 -0
- package/lib/api/services/cross-section/cross-section-operations.js +34 -0
- package/lib/api/services/cross-section/cross-section-shapes.d.ts +10 -0
- package/lib/api/services/cross-section/cross-section-shapes.js +24 -0
- package/lib/api/services/cross-section/cross-section-transforms.d.ts +13 -0
- package/lib/api/services/cross-section/cross-section-transforms.js +26 -0
- package/lib/api/services/cross-section/cross-section.d.ts +20 -0
- package/lib/api/services/cross-section/cross-section.js +35 -0
- package/lib/api/services/index.d.ts +0 -0
- package/lib/api/services/index.js +0 -0
- package/lib/api/services/manifold/manifold-booleans.d.ts +18 -0
- package/lib/api/services/manifold/manifold-booleans.js +53 -0
- package/lib/api/services/manifold/manifold-evaluate.d.ts +19 -0
- package/lib/api/services/manifold/manifold-evaluate.js +45 -0
- package/lib/api/services/manifold/manifold-operations.d.ts +22 -0
- package/lib/api/services/manifold/manifold-operations.js +59 -0
- package/lib/api/services/manifold/manifold-shapes.d.ts +11 -0
- package/lib/api/services/manifold/manifold-shapes.js +29 -0
- package/lib/api/services/manifold/manifold-transforms.d.ts +16 -0
- package/lib/api/services/manifold/manifold-transforms.js +48 -0
- package/lib/api/services/manifold/manifold.d.ts +18 -0
- package/lib/api/services/manifold/manifold.js +27 -0
- package/lib/api/services/mesh/mesh-evaluate.d.ts +15 -0
- package/lib/api/services/mesh/mesh-evaluate.js +37 -0
- package/lib/api/services/mesh/mesh-operations.d.ts +7 -0
- package/lib/api/services/mesh/mesh-operations.js +8 -0
- package/lib/api/services/mesh/mesh.d.ts +9 -0
- package/lib/api/services/mesh/mesh.js +9 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/package.json +94 -0
|
@@ -0,0 +1,1131 @@
|
|
|
1
|
+
import { Base } from "./base-inputs";
|
|
2
|
+
export declare namespace Manifold {
|
|
3
|
+
type ManifoldPointer = {
|
|
4
|
+
hash: number;
|
|
5
|
+
type: string;
|
|
6
|
+
};
|
|
7
|
+
type CrossSectionPointer = {
|
|
8
|
+
hash: number;
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
type MeshPointer = {
|
|
12
|
+
hash: number;
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
enum fillRuleEnum {
|
|
16
|
+
evenOdd = "EvenOdd",
|
|
17
|
+
nonZero = "NonZero",
|
|
18
|
+
positive = "Positive",
|
|
19
|
+
negative = "Negative"
|
|
20
|
+
}
|
|
21
|
+
enum manifoldJoinTypeEnum {
|
|
22
|
+
square = "Square",
|
|
23
|
+
round = "Round",
|
|
24
|
+
miter = "Miter"
|
|
25
|
+
}
|
|
26
|
+
class DecomposedManifoldMeshDto {
|
|
27
|
+
numProp: number;
|
|
28
|
+
vertProperties: Float32Array;
|
|
29
|
+
triVerts: Uint32Array;
|
|
30
|
+
mergeFromVert?: Uint32Array;
|
|
31
|
+
mergeToVert?: Uint32Array;
|
|
32
|
+
runIndex?: Uint32Array;
|
|
33
|
+
runOriginalID?: Uint32Array;
|
|
34
|
+
runTransform?: Float32Array;
|
|
35
|
+
faceID?: Uint32Array;
|
|
36
|
+
halfedgeTangent?: Float32Array;
|
|
37
|
+
}
|
|
38
|
+
class DrawManifoldOrCrossSectionDto<T, M> {
|
|
39
|
+
/**
|
|
40
|
+
* Provide options without default values
|
|
41
|
+
*/
|
|
42
|
+
constructor(manifoldOrCrossSection?: T, faceOpacity?: number, faceMaterial?: M, faceColour?: Base.Color, crossSectionColour?: Base.Color, crossSectionWidth?: number, crossSectionOpacity?: number, computeNormals?: boolean);
|
|
43
|
+
/**
|
|
44
|
+
* Manifold geometry
|
|
45
|
+
* @default undefined
|
|
46
|
+
*/
|
|
47
|
+
manifoldOrCrossSection?: T;
|
|
48
|
+
/**
|
|
49
|
+
* Face opacity value between 0 and 1
|
|
50
|
+
* @default 1
|
|
51
|
+
* @minimum 0
|
|
52
|
+
* @maximum 1
|
|
53
|
+
* @step 0.1
|
|
54
|
+
*/
|
|
55
|
+
faceOpacity: number;
|
|
56
|
+
/**
|
|
57
|
+
* Face material
|
|
58
|
+
* @default undefined
|
|
59
|
+
* @optional true
|
|
60
|
+
*/
|
|
61
|
+
faceMaterial?: M;
|
|
62
|
+
/**
|
|
63
|
+
* Hex colour string for face colour
|
|
64
|
+
* @default #ff0000
|
|
65
|
+
*/
|
|
66
|
+
faceColour: Base.Color;
|
|
67
|
+
/**
|
|
68
|
+
* Hex colour string for cross section drawing
|
|
69
|
+
* @default #ff00ff
|
|
70
|
+
*/
|
|
71
|
+
crossSectionColour: Base.Color;
|
|
72
|
+
/**
|
|
73
|
+
* Width of cross section lines
|
|
74
|
+
* @default 2
|
|
75
|
+
*/
|
|
76
|
+
crossSectionWidth: number;
|
|
77
|
+
/**
|
|
78
|
+
* Cross section opacity value between 0 and 1
|
|
79
|
+
* @default 1
|
|
80
|
+
* @minimum 0
|
|
81
|
+
* @maximum 1
|
|
82
|
+
* @step 0.1
|
|
83
|
+
*/
|
|
84
|
+
crossSectionOpacity: number;
|
|
85
|
+
/**
|
|
86
|
+
* Compute normals for the shape
|
|
87
|
+
* @default false
|
|
88
|
+
*/
|
|
89
|
+
computeNormals: boolean;
|
|
90
|
+
}
|
|
91
|
+
class DrawManifoldsOrCrossSectionsDto<T, M> {
|
|
92
|
+
/**
|
|
93
|
+
* Provide options without default values
|
|
94
|
+
*/
|
|
95
|
+
constructor(manifoldsOrCrossSections?: T[], faceOpacity?: number, faceMaterial?: M, faceColour?: Base.Color, crossSectionColour?: Base.Color, crossSectionWidth?: number, crossSectionOpacity?: number, computeNormals?: boolean);
|
|
96
|
+
/**
|
|
97
|
+
* Manifold geometry
|
|
98
|
+
* @default undefined
|
|
99
|
+
*/
|
|
100
|
+
manifoldsOrCrossSections?: T[];
|
|
101
|
+
/**
|
|
102
|
+
* Face material
|
|
103
|
+
* @default undefined
|
|
104
|
+
* @optional true
|
|
105
|
+
*/
|
|
106
|
+
faceMaterial?: M;
|
|
107
|
+
/**
|
|
108
|
+
* Hex colour string for face colour
|
|
109
|
+
* @default #ff0000
|
|
110
|
+
*/
|
|
111
|
+
faceColour: Base.Color;
|
|
112
|
+
/**
|
|
113
|
+
* Face opacity value between 0 and 1
|
|
114
|
+
* @default 1
|
|
115
|
+
* @minimum 0
|
|
116
|
+
* @maximum 1
|
|
117
|
+
* @step 0.1
|
|
118
|
+
*/
|
|
119
|
+
faceOpacity: number;
|
|
120
|
+
/**
|
|
121
|
+
* Hex colour string for cross section drawing
|
|
122
|
+
* @default #ff00ff
|
|
123
|
+
*/
|
|
124
|
+
crossSectionColour: Base.Color;
|
|
125
|
+
/**
|
|
126
|
+
* Width of cross section lines
|
|
127
|
+
* @default 2
|
|
128
|
+
*/
|
|
129
|
+
crossSectionWidth: number;
|
|
130
|
+
/**
|
|
131
|
+
* Cross section opacity value between 0 and 1
|
|
132
|
+
* @default 1
|
|
133
|
+
* @minimum 0
|
|
134
|
+
* @maximum 1
|
|
135
|
+
* @step 0.1
|
|
136
|
+
*/
|
|
137
|
+
crossSectionOpacity: number;
|
|
138
|
+
/**
|
|
139
|
+
* Compute normals for the shape
|
|
140
|
+
* @default false
|
|
141
|
+
*/
|
|
142
|
+
computeNormals: boolean;
|
|
143
|
+
}
|
|
144
|
+
class CreateFromMeshDto {
|
|
145
|
+
constructor(mesh?: DecomposedManifoldMeshDto);
|
|
146
|
+
/**
|
|
147
|
+
* Mesh definition
|
|
148
|
+
*/
|
|
149
|
+
mesh: DecomposedManifoldMeshDto;
|
|
150
|
+
}
|
|
151
|
+
class CubeDto {
|
|
152
|
+
constructor(center?: boolean, size?: number);
|
|
153
|
+
/**
|
|
154
|
+
* Place cube on the center
|
|
155
|
+
* @default true
|
|
156
|
+
*/
|
|
157
|
+
center: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Size of the cube
|
|
160
|
+
* @default 1
|
|
161
|
+
* @minimum 0
|
|
162
|
+
* @maximum Infinity
|
|
163
|
+
* @step 0.1
|
|
164
|
+
*/
|
|
165
|
+
size: number;
|
|
166
|
+
}
|
|
167
|
+
class CreateContourSectionDto {
|
|
168
|
+
constructor(polygons?: Base.Vector2[][], fillRule?: fillRuleEnum);
|
|
169
|
+
/**
|
|
170
|
+
* Polygons to use for the contour section
|
|
171
|
+
* @default undefined
|
|
172
|
+
*/
|
|
173
|
+
polygons: Base.Vector2[][];
|
|
174
|
+
/**
|
|
175
|
+
* Fill rule for the contour section
|
|
176
|
+
* @default EvenOdd
|
|
177
|
+
*/
|
|
178
|
+
fillRule: fillRuleEnum;
|
|
179
|
+
}
|
|
180
|
+
class SquareDto {
|
|
181
|
+
constructor(center?: boolean, size?: number);
|
|
182
|
+
/**
|
|
183
|
+
* Place cube on the center
|
|
184
|
+
* @default false
|
|
185
|
+
*/
|
|
186
|
+
center: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Size of the cube
|
|
189
|
+
* @default 1
|
|
190
|
+
* @minimum 0
|
|
191
|
+
* @maximum Infinity
|
|
192
|
+
* @step 0.1
|
|
193
|
+
*/
|
|
194
|
+
size: number;
|
|
195
|
+
}
|
|
196
|
+
class SphereDto {
|
|
197
|
+
constructor(radius?: number, circularSegments?: number);
|
|
198
|
+
/**
|
|
199
|
+
* Radius of the sphere
|
|
200
|
+
* @default 1
|
|
201
|
+
* @minimum 0
|
|
202
|
+
* @maximum Infinity
|
|
203
|
+
* @step 0.1
|
|
204
|
+
*/
|
|
205
|
+
radius: number;
|
|
206
|
+
/**
|
|
207
|
+
* Circular segments of the sphere
|
|
208
|
+
* @default 32
|
|
209
|
+
* @minimum 0
|
|
210
|
+
* @maximum Infinity
|
|
211
|
+
* @step 1
|
|
212
|
+
*/
|
|
213
|
+
circularSegments: number;
|
|
214
|
+
}
|
|
215
|
+
class CylinderDto {
|
|
216
|
+
constructor(height?: number, radiusLow?: number, radiusHigh?: number, circularSegments?: number, center?: boolean);
|
|
217
|
+
/**
|
|
218
|
+
* Height of the cylinder
|
|
219
|
+
* @default 1
|
|
220
|
+
* @minimum 0
|
|
221
|
+
* @maximum Infinity
|
|
222
|
+
* @step 0.1
|
|
223
|
+
*/
|
|
224
|
+
height: number;
|
|
225
|
+
/**
|
|
226
|
+
* Radius of the cylinder
|
|
227
|
+
* @default 1
|
|
228
|
+
* @minimum 0
|
|
229
|
+
* @maximum Infinity
|
|
230
|
+
* @step 0.1
|
|
231
|
+
*/
|
|
232
|
+
radiusLow: number;
|
|
233
|
+
/**
|
|
234
|
+
* Radius of the cylinder
|
|
235
|
+
* @default 1
|
|
236
|
+
* @minimum 0
|
|
237
|
+
* @maximum Infinity
|
|
238
|
+
* @step 0.1
|
|
239
|
+
*/
|
|
240
|
+
radiusHigh: number;
|
|
241
|
+
/**
|
|
242
|
+
* Circular segments of the cylinder
|
|
243
|
+
* @default 32
|
|
244
|
+
* @minimum 0
|
|
245
|
+
* @maximum Infinity
|
|
246
|
+
* @step 1
|
|
247
|
+
*/
|
|
248
|
+
circularSegments: number;
|
|
249
|
+
/**
|
|
250
|
+
* Place cylinder on the center
|
|
251
|
+
* @default true
|
|
252
|
+
*/
|
|
253
|
+
center: boolean;
|
|
254
|
+
}
|
|
255
|
+
class CircleDto {
|
|
256
|
+
constructor(radius?: number, circularSegments?: number);
|
|
257
|
+
/**
|
|
258
|
+
* Radius of the cylinder
|
|
259
|
+
* @default 1
|
|
260
|
+
* @minimum 0
|
|
261
|
+
* @maximum Infinity
|
|
262
|
+
* @step 0.1
|
|
263
|
+
*/
|
|
264
|
+
radius: number;
|
|
265
|
+
/**
|
|
266
|
+
* Circular segments of the cylinder
|
|
267
|
+
* @default 32
|
|
268
|
+
* @minimum 0
|
|
269
|
+
* @maximum Infinity
|
|
270
|
+
* @step 1
|
|
271
|
+
*/
|
|
272
|
+
circularSegments: number;
|
|
273
|
+
}
|
|
274
|
+
class RectangleDto {
|
|
275
|
+
constructor(length?: number, height?: number, center?: boolean);
|
|
276
|
+
/**
|
|
277
|
+
* Length of the rectangle
|
|
278
|
+
* @default 1
|
|
279
|
+
* @minimum 0
|
|
280
|
+
* @maximum Infinity
|
|
281
|
+
* @step 0.1
|
|
282
|
+
*/
|
|
283
|
+
length: number;
|
|
284
|
+
/**
|
|
285
|
+
* Height of the rectangle
|
|
286
|
+
* @default 1
|
|
287
|
+
* @minimum 0
|
|
288
|
+
* @maximum Infinity
|
|
289
|
+
* @step 0.1
|
|
290
|
+
*/
|
|
291
|
+
height: number;
|
|
292
|
+
/**
|
|
293
|
+
* Place rectangle on the center
|
|
294
|
+
* @default false
|
|
295
|
+
*/
|
|
296
|
+
center: boolean;
|
|
297
|
+
}
|
|
298
|
+
class ManifoldDto<T> {
|
|
299
|
+
constructor(manifold?: T);
|
|
300
|
+
/**
|
|
301
|
+
* Manifold shape
|
|
302
|
+
*/
|
|
303
|
+
manifold: T;
|
|
304
|
+
}
|
|
305
|
+
class CalculateNormalsDto<T> {
|
|
306
|
+
constructor(manifold?: T, normalIdx?: number, minSharpAngle?: number);
|
|
307
|
+
/**
|
|
308
|
+
* Manifold shape
|
|
309
|
+
*/
|
|
310
|
+
manifold: T;
|
|
311
|
+
/**
|
|
312
|
+
* The property channel in which to store the X
|
|
313
|
+
* values of the normals. The X, Y, and Z channels will be sequential. The
|
|
314
|
+
* property set will be automatically expanded to include up through normalIdx
|
|
315
|
+
* + 2.
|
|
316
|
+
* @default 0
|
|
317
|
+
* @minimum 0
|
|
318
|
+
* @maximum Infinity
|
|
319
|
+
* @step 1
|
|
320
|
+
*/
|
|
321
|
+
normalIdx: number;
|
|
322
|
+
/**
|
|
323
|
+
* Any edges with angles greater than this value will
|
|
324
|
+
* remain sharp, getting different normal vector properties on each side of
|
|
325
|
+
* the edge. By default, no edges are sharp and all normals are shared. With a
|
|
326
|
+
* value of zero, the model is faceted and all normals match their triangle
|
|
327
|
+
* normals, but in this case it would be better not to calculate normals at
|
|
328
|
+
* all. The value is in degrees.
|
|
329
|
+
* @default 0
|
|
330
|
+
* @minimum 0
|
|
331
|
+
* @maximum Infinity
|
|
332
|
+
* @step 1
|
|
333
|
+
*/
|
|
334
|
+
minSharpAngle: number;
|
|
335
|
+
}
|
|
336
|
+
class CalculateCurvatureDto<T> {
|
|
337
|
+
constructor(manifold?: T);
|
|
338
|
+
/**
|
|
339
|
+
* Manifold shape
|
|
340
|
+
*/
|
|
341
|
+
manifold: T;
|
|
342
|
+
/**
|
|
343
|
+
* The property channel index in which to store the
|
|
344
|
+
* Gaussian curvature. An index < 0 will be ignored (stores nothing). The
|
|
345
|
+
* property set will be automatically expanded to include the channel
|
|
346
|
+
* index specified.
|
|
347
|
+
* @default 0
|
|
348
|
+
* @minimum 0
|
|
349
|
+
* @maximum Infinity
|
|
350
|
+
* @step 1
|
|
351
|
+
*/
|
|
352
|
+
gaussianIdx: number;
|
|
353
|
+
/**
|
|
354
|
+
* The property channel index in which to store the mean
|
|
355
|
+
* curvature. An index < 0 will be ignored (stores nothing). The property
|
|
356
|
+
* set will be automatically expanded to include the channel index
|
|
357
|
+
* specified. The mean curvature is a scalar value that describes the
|
|
358
|
+
* @default 1
|
|
359
|
+
* @minimum 0
|
|
360
|
+
* @maximum Infinity
|
|
361
|
+
* @step 1
|
|
362
|
+
*/
|
|
363
|
+
meanIdx: number;
|
|
364
|
+
}
|
|
365
|
+
class CountDto {
|
|
366
|
+
constructor(count?: number);
|
|
367
|
+
/**
|
|
368
|
+
* Nr to count
|
|
369
|
+
*/
|
|
370
|
+
count: number;
|
|
371
|
+
}
|
|
372
|
+
class ManifoldsMinGapDto<T> {
|
|
373
|
+
constructor(manifold1?: T, manifold2?: T, searchLength?: number);
|
|
374
|
+
/**
|
|
375
|
+
* Manifold shape
|
|
376
|
+
*/
|
|
377
|
+
manifold1: T;
|
|
378
|
+
/**
|
|
379
|
+
* Manifold shape
|
|
380
|
+
*/
|
|
381
|
+
manifold2: T;
|
|
382
|
+
/**
|
|
383
|
+
* Length of the search gap
|
|
384
|
+
* @default 100
|
|
385
|
+
* @minimum 0
|
|
386
|
+
* @maximum Infinity
|
|
387
|
+
* @step 10
|
|
388
|
+
*/
|
|
389
|
+
searchLength: number;
|
|
390
|
+
}
|
|
391
|
+
class ManifoldRefineToleranceDto<T> {
|
|
392
|
+
constructor(manifold?: T, tolerance?: number);
|
|
393
|
+
/**
|
|
394
|
+
* Manifold shape
|
|
395
|
+
*/
|
|
396
|
+
manifold: T;
|
|
397
|
+
/**
|
|
398
|
+
* The desired maximum distance between the faceted mesh
|
|
399
|
+
* produced and the exact smoothly curving surface. All vertices are exactly
|
|
400
|
+
* on the surface, within rounding error.
|
|
401
|
+
* @default 1e-6
|
|
402
|
+
* @minimum 0
|
|
403
|
+
* @maximum Infinity
|
|
404
|
+
* @step 1e-7
|
|
405
|
+
*/
|
|
406
|
+
tolerance: number;
|
|
407
|
+
}
|
|
408
|
+
class ManifoldRefineLengthDto<T> {
|
|
409
|
+
constructor(manifold?: T, length?: number);
|
|
410
|
+
/**
|
|
411
|
+
* Manifold shape
|
|
412
|
+
*/
|
|
413
|
+
manifold: T;
|
|
414
|
+
/**
|
|
415
|
+
* Length of the manifold
|
|
416
|
+
* @default 0.1
|
|
417
|
+
* @minimum 0
|
|
418
|
+
* @maximum Infinity
|
|
419
|
+
* @step 0.1
|
|
420
|
+
*/
|
|
421
|
+
length: number;
|
|
422
|
+
}
|
|
423
|
+
class ManifoldRefineDto<T> {
|
|
424
|
+
constructor(manifold?: T, number?: number);
|
|
425
|
+
/**
|
|
426
|
+
* Manifold shape
|
|
427
|
+
*/
|
|
428
|
+
manifold: T;
|
|
429
|
+
/**
|
|
430
|
+
* The number of pieces to split every edge into. Must be > 1.
|
|
431
|
+
* @default 1
|
|
432
|
+
* @minimum 0
|
|
433
|
+
* @maximum Infinity
|
|
434
|
+
* @step 1
|
|
435
|
+
*/
|
|
436
|
+
number: number;
|
|
437
|
+
}
|
|
438
|
+
class ManifoldSmoothByNormalsDto<T> {
|
|
439
|
+
constructor(manifold?: T, normalIdx?: number);
|
|
440
|
+
/**
|
|
441
|
+
* Manifold shape
|
|
442
|
+
*/
|
|
443
|
+
manifold: T;
|
|
444
|
+
/**
|
|
445
|
+
* The first property channel of the normals. NumProp must be
|
|
446
|
+
* at least normalIdx + 3. Any vertex where multiple normals exist and don't
|
|
447
|
+
* agree will result in a sharp edge.
|
|
448
|
+
* @default 0
|
|
449
|
+
* @minimum 0
|
|
450
|
+
* @maximum Infinity
|
|
451
|
+
* @step 1
|
|
452
|
+
*/
|
|
453
|
+
normalIdx: number;
|
|
454
|
+
}
|
|
455
|
+
class ManifoldSmoothOutDto<T> {
|
|
456
|
+
constructor(manifold?: T, minSharpAngle?: number, minSmoothness?: number);
|
|
457
|
+
/**
|
|
458
|
+
* Manifold shape
|
|
459
|
+
*/
|
|
460
|
+
manifold: T;
|
|
461
|
+
/**
|
|
462
|
+
* Any edges with angles greater
|
|
463
|
+
* than this value will remain sharp. The rest will be smoothed to G1
|
|
464
|
+
* continuity, with the caveat that flat faces of three or more triangles will
|
|
465
|
+
* always remain flat. With a value of zero, the model is faceted, but in this
|
|
466
|
+
* case there is no point in smoothing.
|
|
467
|
+
* @default 60
|
|
468
|
+
* @minimum -Infinity
|
|
469
|
+
* @maximum Infinity
|
|
470
|
+
* @step 1
|
|
471
|
+
*/
|
|
472
|
+
minSharpAngle: number;
|
|
473
|
+
/**
|
|
474
|
+
* The smoothness applied to
|
|
475
|
+
* sharp angles. The default gives a hard edge, while values > 0 will give a
|
|
476
|
+
* small fillet on these sharp edges. A value of 1 is equivalent to a
|
|
477
|
+
* minSharpAngle of 180 - all edges will be smooth.
|
|
478
|
+
* @default 0
|
|
479
|
+
* @minimum 0
|
|
480
|
+
* @maximum 1
|
|
481
|
+
* @step 0.1
|
|
482
|
+
*/
|
|
483
|
+
minSmoothness: number;
|
|
484
|
+
}
|
|
485
|
+
class HullPointsDto<T> {
|
|
486
|
+
constructor(points?: T);
|
|
487
|
+
/**
|
|
488
|
+
* Points to hull
|
|
489
|
+
*/
|
|
490
|
+
points: T;
|
|
491
|
+
}
|
|
492
|
+
class SliceDto<T> {
|
|
493
|
+
constructor(manifold?: T);
|
|
494
|
+
/**
|
|
495
|
+
* Manifold shape
|
|
496
|
+
*/
|
|
497
|
+
manifold: T;
|
|
498
|
+
/**
|
|
499
|
+
* Height of the slice
|
|
500
|
+
* @default 0.5
|
|
501
|
+
* @minimum 0
|
|
502
|
+
* @maximum Infinity
|
|
503
|
+
* @step 0.1
|
|
504
|
+
*/
|
|
505
|
+
height: number;
|
|
506
|
+
}
|
|
507
|
+
class MeshDto<T> {
|
|
508
|
+
constructor(mesh?: T);
|
|
509
|
+
/**
|
|
510
|
+
* Mesh
|
|
511
|
+
*/
|
|
512
|
+
mesh: T;
|
|
513
|
+
}
|
|
514
|
+
class MeshVertexIndexDto<T> {
|
|
515
|
+
constructor(mesh?: T, vertexIndex?: number);
|
|
516
|
+
/**
|
|
517
|
+
* Mesh
|
|
518
|
+
*/
|
|
519
|
+
mesh: T;
|
|
520
|
+
/**
|
|
521
|
+
* Vertex index
|
|
522
|
+
* @default 0
|
|
523
|
+
* @minimum 0
|
|
524
|
+
* @maximum Infinity
|
|
525
|
+
* @step 1
|
|
526
|
+
*/
|
|
527
|
+
vertexIndex: number;
|
|
528
|
+
}
|
|
529
|
+
class MeshTriangleRunIndexDto<T> {
|
|
530
|
+
constructor(mesh?: T, triangleRunIndex?: number);
|
|
531
|
+
/**
|
|
532
|
+
* Mesh
|
|
533
|
+
*/
|
|
534
|
+
mesh: T;
|
|
535
|
+
/**
|
|
536
|
+
* Triangle run index
|
|
537
|
+
* @default 0
|
|
538
|
+
* @minimum 0
|
|
539
|
+
* @maximum Infinity
|
|
540
|
+
* @step 1
|
|
541
|
+
*/
|
|
542
|
+
triangleRunIndex: number;
|
|
543
|
+
}
|
|
544
|
+
class MeshHalfEdgeIndexDto<T> {
|
|
545
|
+
constructor(mesh?: T, halfEdgeIndex?: number);
|
|
546
|
+
/**
|
|
547
|
+
* Mesh
|
|
548
|
+
*/
|
|
549
|
+
mesh: T;
|
|
550
|
+
/**
|
|
551
|
+
* Half edge index
|
|
552
|
+
* @default 0
|
|
553
|
+
* @minimum 0
|
|
554
|
+
* @maximum Infinity
|
|
555
|
+
* @step 1
|
|
556
|
+
*/
|
|
557
|
+
halfEdgeIndex: number;
|
|
558
|
+
}
|
|
559
|
+
class MeshTriangleIndexDto<T> {
|
|
560
|
+
constructor(mesh?: T, triangleIndex?: number);
|
|
561
|
+
/**
|
|
562
|
+
* Mesh
|
|
563
|
+
*/
|
|
564
|
+
mesh: T;
|
|
565
|
+
/**
|
|
566
|
+
* Triangle index
|
|
567
|
+
* @default 0
|
|
568
|
+
* @minimum 0
|
|
569
|
+
* @maximum Infinity
|
|
570
|
+
* @step 1
|
|
571
|
+
*/
|
|
572
|
+
triangleIndex: number;
|
|
573
|
+
}
|
|
574
|
+
class CrossSectionDto<T> {
|
|
575
|
+
constructor(crossSection?: T);
|
|
576
|
+
/**
|
|
577
|
+
* Cross section
|
|
578
|
+
*/
|
|
579
|
+
crossSection: T;
|
|
580
|
+
}
|
|
581
|
+
class CrossSectionsDto<T> {
|
|
582
|
+
constructor(crossSections?: T[]);
|
|
583
|
+
/**
|
|
584
|
+
* Cross sections
|
|
585
|
+
*/
|
|
586
|
+
crossSections: T[];
|
|
587
|
+
}
|
|
588
|
+
class ExtrudeDto<T> {
|
|
589
|
+
constructor(crossSection?: T);
|
|
590
|
+
/**
|
|
591
|
+
* Extrude cross section shape
|
|
592
|
+
*/
|
|
593
|
+
crossSection: T;
|
|
594
|
+
/**
|
|
595
|
+
* Height of the extrusion
|
|
596
|
+
* @default 1
|
|
597
|
+
* @minimum 0
|
|
598
|
+
* @maximum Infinity
|
|
599
|
+
* @step 0.1
|
|
600
|
+
*/
|
|
601
|
+
height: number;
|
|
602
|
+
/**
|
|
603
|
+
* Number of divisions
|
|
604
|
+
* @default 1
|
|
605
|
+
* @minimum 0
|
|
606
|
+
* @maximum Infinity
|
|
607
|
+
* @step 1
|
|
608
|
+
*/
|
|
609
|
+
nDivisions: number;
|
|
610
|
+
/**
|
|
611
|
+
* Twist degrees
|
|
612
|
+
* @default 0
|
|
613
|
+
* @minimum -Infinity
|
|
614
|
+
* @maximum Infinity
|
|
615
|
+
* @step 1
|
|
616
|
+
*/
|
|
617
|
+
twistDegrees: number;
|
|
618
|
+
/**
|
|
619
|
+
* Scale top
|
|
620
|
+
* @default 1
|
|
621
|
+
* @minimum 0
|
|
622
|
+
* @maximum Infinity
|
|
623
|
+
* @step 0.1
|
|
624
|
+
*/
|
|
625
|
+
scaleTopX: number;
|
|
626
|
+
/**
|
|
627
|
+
* Scale top
|
|
628
|
+
* @default 1
|
|
629
|
+
* @minimum 0
|
|
630
|
+
* @maximum Infinity
|
|
631
|
+
* @step 0.1
|
|
632
|
+
*/
|
|
633
|
+
scaleTopY: number;
|
|
634
|
+
/**
|
|
635
|
+
* Center the extrusion
|
|
636
|
+
* @default true
|
|
637
|
+
*/
|
|
638
|
+
center: boolean;
|
|
639
|
+
}
|
|
640
|
+
class RevolveDto<T> {
|
|
641
|
+
constructor(crossSection?: T, revolveDegrees?: number, matchProfile?: boolean, circularSegments?: number);
|
|
642
|
+
/**
|
|
643
|
+
* Revolve cross section shape
|
|
644
|
+
*/
|
|
645
|
+
crossSection: T;
|
|
646
|
+
/**
|
|
647
|
+
* Extrude cross section shape
|
|
648
|
+
* @default 360
|
|
649
|
+
* @minimum 0
|
|
650
|
+
* @maximum Infinity
|
|
651
|
+
* @step 1
|
|
652
|
+
*/
|
|
653
|
+
revolveDegrees: number;
|
|
654
|
+
/**
|
|
655
|
+
* Default manifold library will adjust profile when generating revolved shape. We prefer it to be matching the profile by default. Set to false to use default manifold library behavior.
|
|
656
|
+
* @default true
|
|
657
|
+
*/
|
|
658
|
+
matchProfile: boolean;
|
|
659
|
+
/**
|
|
660
|
+
* Circular segments
|
|
661
|
+
* @default 32
|
|
662
|
+
* @minimum 0
|
|
663
|
+
* @maximum Infinity
|
|
664
|
+
* @step 1
|
|
665
|
+
*/
|
|
666
|
+
circularSegments: number;
|
|
667
|
+
}
|
|
668
|
+
class OffsetDto<T> {
|
|
669
|
+
constructor(crossSection?: T, delta?: number, joinType?: manifoldJoinTypeEnum, miterLimit?: number, circularSegments?: number);
|
|
670
|
+
/**
|
|
671
|
+
* Revolve cross section shape
|
|
672
|
+
*/
|
|
673
|
+
crossSection: T;
|
|
674
|
+
/**
|
|
675
|
+
* Positive deltas will cause the expansion of outlining contours
|
|
676
|
+
* to expand, and retraction of inner (hole) contours. Negative deltas will
|
|
677
|
+
* have the opposite effect.
|
|
678
|
+
* @default 1
|
|
679
|
+
* @minimum -Infinity
|
|
680
|
+
* @maximum Infinity
|
|
681
|
+
* @step 0.1
|
|
682
|
+
*/
|
|
683
|
+
delta: number;
|
|
684
|
+
/**
|
|
685
|
+
* The join type specifying the treatment of contour joins
|
|
686
|
+
* (corners).
|
|
687
|
+
* @default round
|
|
688
|
+
*/
|
|
689
|
+
joinType: manifoldJoinTypeEnum;
|
|
690
|
+
/**
|
|
691
|
+
* The maximum distance in multiples of delta that vertices
|
|
692
|
+
* can be offset from their original positions with before squaring is
|
|
693
|
+
* applied, **when the join type is Miter** (default is 2, which is the
|
|
694
|
+
* minimum allowed). See the [Clipper2
|
|
695
|
+
* MiterLimit](http://www.angusj.com/clipper2/Docs/Units/Clipper.Offset/Classes/ClipperOffset/Properties/MiterLimit.htm)
|
|
696
|
+
* page for a visual example.
|
|
697
|
+
* @default 2
|
|
698
|
+
* @minimum 2
|
|
699
|
+
* @maximum Infinity
|
|
700
|
+
* @step 0.1
|
|
701
|
+
*/
|
|
702
|
+
miterLimit: number;
|
|
703
|
+
/**
|
|
704
|
+
* Number of segments per 360 degrees of
|
|
705
|
+
* <B>JoinType::Round</B> corners (roughly, the number of vertices that
|
|
706
|
+
* will be added to each contour). Default is calculated by the static Quality
|
|
707
|
+
* defaults according to the radius.
|
|
708
|
+
* @default 32
|
|
709
|
+
* @minimum 0
|
|
710
|
+
* @maximum Infinity
|
|
711
|
+
* @step 1
|
|
712
|
+
*/
|
|
713
|
+
circularSegments: number;
|
|
714
|
+
}
|
|
715
|
+
class SimplifyDto<T> {
|
|
716
|
+
constructor(crossSection?: T, epsilon?: number);
|
|
717
|
+
/**
|
|
718
|
+
* Revolve cross section shape
|
|
719
|
+
*/
|
|
720
|
+
crossSection: T;
|
|
721
|
+
/**
|
|
722
|
+
* Extrude cross section shape
|
|
723
|
+
* @default 1e-6
|
|
724
|
+
* @minimum 0
|
|
725
|
+
* @maximum Infinity
|
|
726
|
+
* @step 1e-7
|
|
727
|
+
*/
|
|
728
|
+
epsilon: number;
|
|
729
|
+
}
|
|
730
|
+
class ComposeDto<T> {
|
|
731
|
+
constructor(polygons?: T);
|
|
732
|
+
/**
|
|
733
|
+
* Polygons to compose
|
|
734
|
+
*/
|
|
735
|
+
polygons: T;
|
|
736
|
+
}
|
|
737
|
+
class MirrorCrossSectionDto<T> {
|
|
738
|
+
constructor(crossSection?: T, normal?: Base.Vector2);
|
|
739
|
+
/**
|
|
740
|
+
* Manifold shape
|
|
741
|
+
*/
|
|
742
|
+
crossSection: T;
|
|
743
|
+
/**
|
|
744
|
+
* The normal vector of the plane to be mirrored over
|
|
745
|
+
* @default [1,0]
|
|
746
|
+
*/
|
|
747
|
+
normal: Base.Vector2;
|
|
748
|
+
}
|
|
749
|
+
class Scale2DCrossSectionDto<T> {
|
|
750
|
+
constructor(crossSection?: T, vector?: Base.Vector2);
|
|
751
|
+
/**
|
|
752
|
+
* Manifold shape
|
|
753
|
+
*/
|
|
754
|
+
crossSection: T;
|
|
755
|
+
/**
|
|
756
|
+
* The normal vector of the plane to be mirrored over
|
|
757
|
+
* @default [2,2]
|
|
758
|
+
*/
|
|
759
|
+
vector: Base.Vector2;
|
|
760
|
+
}
|
|
761
|
+
class TranslateCrossSectionDto<T> {
|
|
762
|
+
constructor(crossSection?: T, vector?: Base.Vector2);
|
|
763
|
+
/**
|
|
764
|
+
* Manifold shape
|
|
765
|
+
*/
|
|
766
|
+
crossSection: T;
|
|
767
|
+
/**
|
|
768
|
+
* The translation vector
|
|
769
|
+
* @default undefined
|
|
770
|
+
*/
|
|
771
|
+
vector: Base.Vector2;
|
|
772
|
+
}
|
|
773
|
+
class RotateCrossSectionDto<T> {
|
|
774
|
+
constructor(crossSection?: T, degrees?: number);
|
|
775
|
+
/**
|
|
776
|
+
* Manifold shape
|
|
777
|
+
*/
|
|
778
|
+
crossSection: T;
|
|
779
|
+
/**
|
|
780
|
+
* The rotation vector in eulers
|
|
781
|
+
* @default 45
|
|
782
|
+
* @minimum -Infinity
|
|
783
|
+
* @maximum Infinity
|
|
784
|
+
* @step 1
|
|
785
|
+
*/
|
|
786
|
+
degrees: number;
|
|
787
|
+
}
|
|
788
|
+
class ScaleCrossSectionDto<T> {
|
|
789
|
+
constructor(crossSection?: T, factor?: number);
|
|
790
|
+
/**
|
|
791
|
+
* Manifold shape
|
|
792
|
+
*/
|
|
793
|
+
crossSection: T;
|
|
794
|
+
/**
|
|
795
|
+
* The normal vector of the plane to be mirrored over
|
|
796
|
+
* @default 2
|
|
797
|
+
*/
|
|
798
|
+
factor: number;
|
|
799
|
+
}
|
|
800
|
+
class TranslateXYCrossSectionDto<T> {
|
|
801
|
+
constructor(crossSection?: T, x?: number, y?: number);
|
|
802
|
+
/**
|
|
803
|
+
* Manifold shape
|
|
804
|
+
*/
|
|
805
|
+
crossSection: T;
|
|
806
|
+
/**
|
|
807
|
+
* The translation X axis
|
|
808
|
+
* @default 0
|
|
809
|
+
* @minimum -Infinity
|
|
810
|
+
* @maximum Infinity
|
|
811
|
+
* @step 1
|
|
812
|
+
*/
|
|
813
|
+
x: number;
|
|
814
|
+
/**
|
|
815
|
+
* The translation Y axis
|
|
816
|
+
* @default 0
|
|
817
|
+
* @minimum -Infinity
|
|
818
|
+
* @maximum Infinity
|
|
819
|
+
* @step 1
|
|
820
|
+
*/
|
|
821
|
+
y: number;
|
|
822
|
+
}
|
|
823
|
+
class TransformCrossSectionDto<T> {
|
|
824
|
+
constructor(crossSection?: T, transform?: Base.TransformMatrix3x3);
|
|
825
|
+
/**
|
|
826
|
+
* Cross section
|
|
827
|
+
*/
|
|
828
|
+
crossSection: T;
|
|
829
|
+
/**
|
|
830
|
+
* The transform matrix to apply
|
|
831
|
+
* @default undefined
|
|
832
|
+
*/
|
|
833
|
+
transform: Base.TransformMatrix3x3;
|
|
834
|
+
}
|
|
835
|
+
class MirrorDto<T> {
|
|
836
|
+
constructor(manifold?: T, normal?: Base.Vector3);
|
|
837
|
+
/**
|
|
838
|
+
* Manifold shape
|
|
839
|
+
*/
|
|
840
|
+
manifold: T;
|
|
841
|
+
/**
|
|
842
|
+
* The normal vector of the plane to be mirrored over
|
|
843
|
+
* @default [1,0,0]
|
|
844
|
+
*/
|
|
845
|
+
normal: Base.Vector3;
|
|
846
|
+
}
|
|
847
|
+
class Scale3DDto<T> {
|
|
848
|
+
constructor(manifold?: T, vector?: Base.Vector3);
|
|
849
|
+
/**
|
|
850
|
+
* Manifold shape
|
|
851
|
+
*/
|
|
852
|
+
manifold: T;
|
|
853
|
+
/**
|
|
854
|
+
* The normal vector of the plane to be mirrored over
|
|
855
|
+
* @default [2,2,2]
|
|
856
|
+
*/
|
|
857
|
+
vector: Base.Vector3;
|
|
858
|
+
}
|
|
859
|
+
class TranslateDto<T> {
|
|
860
|
+
constructor(manifold?: T, vector?: Base.Vector3);
|
|
861
|
+
/**
|
|
862
|
+
* Manifold shape
|
|
863
|
+
*/
|
|
864
|
+
manifold: T;
|
|
865
|
+
/**
|
|
866
|
+
* The translation vector
|
|
867
|
+
* @default undefined
|
|
868
|
+
*/
|
|
869
|
+
vector: Base.Vector3;
|
|
870
|
+
}
|
|
871
|
+
class TranslateByVectorsDto<T> {
|
|
872
|
+
constructor(manifold?: T, vectors?: Base.Vector3[]);
|
|
873
|
+
/**
|
|
874
|
+
* Manifold shape
|
|
875
|
+
*/
|
|
876
|
+
manifold: T;
|
|
877
|
+
/**
|
|
878
|
+
* The translation vector
|
|
879
|
+
* @default undefined
|
|
880
|
+
*/
|
|
881
|
+
vectors: Base.Vector3[];
|
|
882
|
+
}
|
|
883
|
+
class RotateDto<T> {
|
|
884
|
+
constructor(manifold?: T, vector?: Base.Vector3);
|
|
885
|
+
/**
|
|
886
|
+
* Manifold shape
|
|
887
|
+
*/
|
|
888
|
+
manifold: T;
|
|
889
|
+
/**
|
|
890
|
+
* The rotation vector in eulers
|
|
891
|
+
* @default undefined
|
|
892
|
+
*/
|
|
893
|
+
vector: Base.Vector3;
|
|
894
|
+
}
|
|
895
|
+
class RotateXYZDto<T> {
|
|
896
|
+
constructor(manifold?: T, x?: number, y?: number, z?: number);
|
|
897
|
+
/**
|
|
898
|
+
* Manifold shape
|
|
899
|
+
*/
|
|
900
|
+
manifold: T;
|
|
901
|
+
/**
|
|
902
|
+
* The rotation vector in eulers on X axis
|
|
903
|
+
* @default 0
|
|
904
|
+
* @minimum -Infinity
|
|
905
|
+
* @maximum Infinity
|
|
906
|
+
* @step 1
|
|
907
|
+
*/
|
|
908
|
+
x: number;
|
|
909
|
+
/**
|
|
910
|
+
* The rotation vector in eulers on Y axis
|
|
911
|
+
* @default 0
|
|
912
|
+
* @minimum -Infinity
|
|
913
|
+
* @maximum Infinity
|
|
914
|
+
* @step 1
|
|
915
|
+
*/
|
|
916
|
+
y: number;
|
|
917
|
+
/**
|
|
918
|
+
* The rotation vector in eulers on Z axis
|
|
919
|
+
* @default 0
|
|
920
|
+
* @minimum -Infinity
|
|
921
|
+
* @maximum Infinity
|
|
922
|
+
* @step 1
|
|
923
|
+
*/
|
|
924
|
+
z: number;
|
|
925
|
+
}
|
|
926
|
+
class ScaleDto<T> {
|
|
927
|
+
constructor(manifold?: T, factor?: number);
|
|
928
|
+
/**
|
|
929
|
+
* Manifold shape
|
|
930
|
+
*/
|
|
931
|
+
manifold: T;
|
|
932
|
+
/**
|
|
933
|
+
* The normal vector of the plane to be mirrored over
|
|
934
|
+
* @default 2
|
|
935
|
+
*/
|
|
936
|
+
factor: number;
|
|
937
|
+
}
|
|
938
|
+
class TranslateXYZDto<T> {
|
|
939
|
+
constructor(manifold?: T, x?: number, y?: number, z?: number);
|
|
940
|
+
/**
|
|
941
|
+
* Manifold shape
|
|
942
|
+
*/
|
|
943
|
+
manifold: T;
|
|
944
|
+
/**
|
|
945
|
+
* The translation X axis
|
|
946
|
+
* @default 0
|
|
947
|
+
* @minimum -Infinity
|
|
948
|
+
* @maximum Infinity
|
|
949
|
+
* @step 1
|
|
950
|
+
*/
|
|
951
|
+
x: number;
|
|
952
|
+
/**
|
|
953
|
+
* The translation Y axis
|
|
954
|
+
* @default 0
|
|
955
|
+
* @minimum -Infinity
|
|
956
|
+
* @maximum Infinity
|
|
957
|
+
* @step 1
|
|
958
|
+
*/
|
|
959
|
+
y: number;
|
|
960
|
+
/**
|
|
961
|
+
* The translation Z axis
|
|
962
|
+
* @default 0
|
|
963
|
+
* @minimum -Infinity
|
|
964
|
+
* @maximum Infinity
|
|
965
|
+
* @step 1
|
|
966
|
+
*/
|
|
967
|
+
z: number;
|
|
968
|
+
}
|
|
969
|
+
class TransformDto<T> {
|
|
970
|
+
constructor(manifold?: T, transform?: Base.TransformMatrix);
|
|
971
|
+
/**
|
|
972
|
+
* Manifold shape
|
|
973
|
+
*/
|
|
974
|
+
manifold: T;
|
|
975
|
+
/**
|
|
976
|
+
* The transform matrix to apply
|
|
977
|
+
* @default undefined
|
|
978
|
+
*/
|
|
979
|
+
transform: Base.TransformMatrix;
|
|
980
|
+
}
|
|
981
|
+
class TransformsDto<T> {
|
|
982
|
+
constructor(manifold?: T, transforms?: Base.TransformMatrixes);
|
|
983
|
+
/**
|
|
984
|
+
* Manifold shape
|
|
985
|
+
*/
|
|
986
|
+
manifold: T;
|
|
987
|
+
/**
|
|
988
|
+
* The transform matrixes to apply
|
|
989
|
+
* @default undefined
|
|
990
|
+
*/
|
|
991
|
+
transforms: Base.TransformMatrixes;
|
|
992
|
+
}
|
|
993
|
+
class TwoCrossSectionsDto<T> {
|
|
994
|
+
constructor(crossSection1?: T, crossSection2?: T);
|
|
995
|
+
/**
|
|
996
|
+
* Manifold shape
|
|
997
|
+
*/
|
|
998
|
+
crossSection1: T;
|
|
999
|
+
/**
|
|
1000
|
+
* Manifold shape
|
|
1001
|
+
*/
|
|
1002
|
+
crossSection2: T;
|
|
1003
|
+
}
|
|
1004
|
+
class TwoManifoldsDto<T> {
|
|
1005
|
+
constructor(manifold1?: T, manifold2?: T);
|
|
1006
|
+
/**
|
|
1007
|
+
* Manifold shape
|
|
1008
|
+
*/
|
|
1009
|
+
manifold1: T;
|
|
1010
|
+
/**
|
|
1011
|
+
* Manifold shape
|
|
1012
|
+
*/
|
|
1013
|
+
manifold2: T;
|
|
1014
|
+
}
|
|
1015
|
+
class SplitManifoldsDto<T> {
|
|
1016
|
+
constructor(manifoldToSplit?: T, manifoldCutter?: T);
|
|
1017
|
+
/**
|
|
1018
|
+
* Manifold that will be split
|
|
1019
|
+
*/
|
|
1020
|
+
manifoldToSplit: T;
|
|
1021
|
+
/**
|
|
1022
|
+
* Manifold cutter
|
|
1023
|
+
*/
|
|
1024
|
+
manifoldCutter: T;
|
|
1025
|
+
}
|
|
1026
|
+
class TrimByPlaneDto<T> {
|
|
1027
|
+
constructor(manifold?: T, normal?: Base.Vector3, originOffset?: number);
|
|
1028
|
+
/**
|
|
1029
|
+
* Manifold that will be trimmed
|
|
1030
|
+
*/
|
|
1031
|
+
manifold: T;
|
|
1032
|
+
/**
|
|
1033
|
+
* The normal vector of the plane to be mirrored over
|
|
1034
|
+
* @default [1,0,0]
|
|
1035
|
+
*/
|
|
1036
|
+
normal: Base.Vector3;
|
|
1037
|
+
/**
|
|
1038
|
+
* The offset from the origin
|
|
1039
|
+
* @default 0
|
|
1040
|
+
* @minimum -Infinity
|
|
1041
|
+
* @maximum Infinity
|
|
1042
|
+
* @step 0.1
|
|
1043
|
+
*/
|
|
1044
|
+
originOffset: number;
|
|
1045
|
+
}
|
|
1046
|
+
class SplitByPlaneDto<T> {
|
|
1047
|
+
constructor(manifold?: T, normal?: Base.Vector3, originOffset?: number);
|
|
1048
|
+
/**
|
|
1049
|
+
* Manifold that will be split
|
|
1050
|
+
*/
|
|
1051
|
+
manifold: T;
|
|
1052
|
+
/**
|
|
1053
|
+
* The normal vector of the plane to be mirrored over
|
|
1054
|
+
* @default [1,0,0]
|
|
1055
|
+
*/
|
|
1056
|
+
normal: Base.Vector3;
|
|
1057
|
+
/**
|
|
1058
|
+
* The offset from the origin
|
|
1059
|
+
* @default 0
|
|
1060
|
+
* @minimum -Infinity
|
|
1061
|
+
* @maximum Infinity
|
|
1062
|
+
* @step 0.1
|
|
1063
|
+
*/
|
|
1064
|
+
originOffset: number;
|
|
1065
|
+
}
|
|
1066
|
+
class ManifoldsDto<T> {
|
|
1067
|
+
constructor(manifolds?: T[]);
|
|
1068
|
+
/**
|
|
1069
|
+
* Manifolds
|
|
1070
|
+
*/
|
|
1071
|
+
manifolds: T[];
|
|
1072
|
+
}
|
|
1073
|
+
class ManifoldToMeshDto<T> {
|
|
1074
|
+
constructor(manifold?: T, normalIdx?: number);
|
|
1075
|
+
/**
|
|
1076
|
+
* Manifold shape
|
|
1077
|
+
*/
|
|
1078
|
+
manifold: T;
|
|
1079
|
+
/**
|
|
1080
|
+
* Optional normal index
|
|
1081
|
+
*/
|
|
1082
|
+
normalIdx?: number;
|
|
1083
|
+
}
|
|
1084
|
+
class ManifoldsToMeshesDto<T> {
|
|
1085
|
+
constructor(manifolds?: T[], normalIdx?: number[]);
|
|
1086
|
+
/**
|
|
1087
|
+
* Manifold shape
|
|
1088
|
+
*/
|
|
1089
|
+
manifolds: T[];
|
|
1090
|
+
/**
|
|
1091
|
+
* Optional normal indexes
|
|
1092
|
+
*/
|
|
1093
|
+
normalIdx?: number[];
|
|
1094
|
+
}
|
|
1095
|
+
class DecomposeManifoldOrCrossSectionDto<T> {
|
|
1096
|
+
constructor(manifoldOrCrossSection?: T, normalIdx?: number);
|
|
1097
|
+
/**
|
|
1098
|
+
* Manifold shape
|
|
1099
|
+
*/
|
|
1100
|
+
manifoldOrCrossSection: T;
|
|
1101
|
+
/**
|
|
1102
|
+
* Optional normal index
|
|
1103
|
+
*/
|
|
1104
|
+
normalIdx?: number;
|
|
1105
|
+
}
|
|
1106
|
+
class ManifoldOrCrossSectionDto<T> {
|
|
1107
|
+
constructor(manifoldOrCrossSection?: T);
|
|
1108
|
+
/**
|
|
1109
|
+
* Manifold or cross section
|
|
1110
|
+
*/
|
|
1111
|
+
manifoldOrCrossSection: T;
|
|
1112
|
+
}
|
|
1113
|
+
class ManifoldsOrCrossSectionsDto<T> {
|
|
1114
|
+
constructor(manifoldsOrCrossSections?: T[]);
|
|
1115
|
+
/**
|
|
1116
|
+
* Manifolds or cross sections
|
|
1117
|
+
*/
|
|
1118
|
+
manifoldsOrCrossSections: T[];
|
|
1119
|
+
}
|
|
1120
|
+
class DecomposeManifoldsOrCrossSectionsDto<T> {
|
|
1121
|
+
constructor(manifoldsOrCrossSections?: T[], normalIdx?: number[]);
|
|
1122
|
+
/**
|
|
1123
|
+
* Manifold shape
|
|
1124
|
+
*/
|
|
1125
|
+
manifoldsOrCrossSections: T[];
|
|
1126
|
+
/**
|
|
1127
|
+
* Optional normal indexes
|
|
1128
|
+
*/
|
|
1129
|
+
normalIdx?: number[];
|
|
1130
|
+
}
|
|
1131
|
+
}
|