@bitbybit-dev/manifold 1.3.2 → 1.4.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/README.md +1 -1
- package/lib/api/dto-registry.d.ts +8 -0
- package/lib/api/dto-registry.js +202 -0
- package/lib/api/inputs/manifold-inputs.d.ts +93 -92
- package/lib/api/inputs/manifold-inputs.js +4 -3
- package/lib/api/resolved-inputs/index.d.ts +82 -0
- package/lib/api/resolved-inputs/index.js +1 -0
- package/lib/api/services/cross-section/cross-section-booleans.js +6 -12
- package/lib/api/services/cross-section/cross-section-operations.js +12 -7
- package/lib/api/services/cross-section/cross-section-shapes.js +10 -7
- package/lib/api/services/cross-section/cross-section-transforms.js +12 -5
- package/lib/api/services/cross-section/cross-section.js +12 -8
- package/lib/api/services/manifold/manifold-booleans.js +16 -17
- package/lib/api/services/manifold/manifold-evaluate.js +6 -2
- package/lib/api/services/manifold/manifold-operations.js +25 -16
- package/lib/api/services/manifold/manifold-shapes.js +8 -8
- package/lib/api/services/manifold/manifold-transforms.js +12 -5
- package/lib/api/services/mesh/mesh-evaluate.js +16 -7
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/package.json +2 -2
|
@@ -139,7 +139,7 @@ export declare namespace Manifold {
|
|
|
139
139
|
* @maximum 1
|
|
140
140
|
* @step 0.1
|
|
141
141
|
*/
|
|
142
|
-
faceOpacity
|
|
142
|
+
faceOpacity?: number | undefined;
|
|
143
143
|
/**
|
|
144
144
|
* A material for the faces from the rendering engine; when given it replaces the face color.
|
|
145
145
|
* @default undefined
|
|
@@ -150,17 +150,17 @@ export declare namespace Manifold {
|
|
|
150
150
|
* The color of the faces as a hex string such as `#ff0000`.
|
|
151
151
|
* @default #ff0000
|
|
152
152
|
*/
|
|
153
|
-
faceColour
|
|
153
|
+
faceColour?: Base.Color | undefined;
|
|
154
154
|
/**
|
|
155
155
|
* The color of a cross-section's lines as a hex string.
|
|
156
156
|
* @default #ff00ff
|
|
157
157
|
*/
|
|
158
|
-
crossSectionColour
|
|
158
|
+
crossSectionColour?: Base.Color | undefined;
|
|
159
159
|
/**
|
|
160
160
|
* How thick a cross-section's lines are drawn.
|
|
161
161
|
* @default 2
|
|
162
162
|
*/
|
|
163
|
-
crossSectionWidth
|
|
163
|
+
crossSectionWidth?: number | undefined;
|
|
164
164
|
/**
|
|
165
165
|
* How opaque a cross-section's lines are, from 0 to 1.
|
|
166
166
|
* @default 1
|
|
@@ -168,23 +168,23 @@ export declare namespace Manifold {
|
|
|
168
168
|
* @maximum 1
|
|
169
169
|
* @step 0.1
|
|
170
170
|
*/
|
|
171
|
-
crossSectionOpacity
|
|
171
|
+
crossSectionOpacity?: number | undefined;
|
|
172
172
|
/**
|
|
173
173
|
* When true, normals are computed for the mesh so it shades smoothly.
|
|
174
174
|
* @default false
|
|
175
175
|
*/
|
|
176
|
-
computeNormals
|
|
176
|
+
computeNormals?: boolean | undefined;
|
|
177
177
|
/**
|
|
178
178
|
* When true, the back of each face is drawn in its own color, which shows which way faces
|
|
179
179
|
* point.
|
|
180
180
|
* @default true
|
|
181
181
|
*/
|
|
182
|
-
drawTwoSided
|
|
182
|
+
drawTwoSided?: boolean | undefined;
|
|
183
183
|
/**
|
|
184
184
|
* The color of the back of the faces as a hex string; used only with `drawTwoSided`.
|
|
185
185
|
* @default #0000ff
|
|
186
186
|
*/
|
|
187
|
-
backFaceColour
|
|
187
|
+
backFaceColour?: Base.Color | undefined;
|
|
188
188
|
/**
|
|
189
189
|
* How opaque the back of the faces is, from 0 to 1; used only with `drawTwoSided`.
|
|
190
190
|
* @default 1
|
|
@@ -192,7 +192,7 @@ export declare namespace Manifold {
|
|
|
192
192
|
* @maximum 1
|
|
193
193
|
* @step 0.1
|
|
194
194
|
*/
|
|
195
|
-
backFaceOpacity
|
|
195
|
+
backFaceOpacity?: number | undefined;
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
198
198
|
* Solids or cross-sections and how to draw them, for the renderer packages: the same options as
|
|
@@ -219,7 +219,7 @@ export declare namespace Manifold {
|
|
|
219
219
|
* The color of the faces as a hex string such as `#ff0000`.
|
|
220
220
|
* @default #ff0000
|
|
221
221
|
*/
|
|
222
|
-
faceColour
|
|
222
|
+
faceColour?: Base.Color | undefined;
|
|
223
223
|
/**
|
|
224
224
|
* How opaque the faces are, from 0 for invisible to 1 for solid.
|
|
225
225
|
* @default 1
|
|
@@ -227,17 +227,17 @@ export declare namespace Manifold {
|
|
|
227
227
|
* @maximum 1
|
|
228
228
|
* @step 0.1
|
|
229
229
|
*/
|
|
230
|
-
faceOpacity
|
|
230
|
+
faceOpacity?: number | undefined;
|
|
231
231
|
/**
|
|
232
232
|
* The color of a cross-section's lines as a hex string.
|
|
233
233
|
* @default #ff00ff
|
|
234
234
|
*/
|
|
235
|
-
crossSectionColour
|
|
235
|
+
crossSectionColour?: Base.Color | undefined;
|
|
236
236
|
/**
|
|
237
237
|
* How thick a cross-section's lines are drawn.
|
|
238
238
|
* @default 2
|
|
239
239
|
*/
|
|
240
|
-
crossSectionWidth
|
|
240
|
+
crossSectionWidth?: number | undefined;
|
|
241
241
|
/**
|
|
242
242
|
* How opaque a cross-section's lines are, from 0 to 1.
|
|
243
243
|
* @default 1
|
|
@@ -245,23 +245,23 @@ export declare namespace Manifold {
|
|
|
245
245
|
* @maximum 1
|
|
246
246
|
* @step 0.1
|
|
247
247
|
*/
|
|
248
|
-
crossSectionOpacity
|
|
248
|
+
crossSectionOpacity?: number | undefined;
|
|
249
249
|
/**
|
|
250
250
|
* When true, normals are computed for the meshes so they shade smoothly.
|
|
251
251
|
* @default false
|
|
252
252
|
*/
|
|
253
|
-
computeNormals
|
|
253
|
+
computeNormals?: boolean | undefined;
|
|
254
254
|
/**
|
|
255
255
|
* When true, the back of each face is drawn in its own color, which shows which way faces
|
|
256
256
|
* point.
|
|
257
257
|
* @default true
|
|
258
258
|
*/
|
|
259
|
-
drawTwoSided
|
|
259
|
+
drawTwoSided?: boolean | undefined;
|
|
260
260
|
/**
|
|
261
261
|
* The color of the back of the faces as a hex string; used only with `drawTwoSided`.
|
|
262
262
|
* @default #0000ff
|
|
263
263
|
*/
|
|
264
|
-
backFaceColour
|
|
264
|
+
backFaceColour?: Base.Color | undefined;
|
|
265
265
|
/**
|
|
266
266
|
* How opaque the back of the faces is, from 0 to 1; used only with `drawTwoSided`.
|
|
267
267
|
* @default 1
|
|
@@ -269,7 +269,7 @@ export declare namespace Manifold {
|
|
|
269
269
|
* @maximum 1
|
|
270
270
|
* @step 0.1
|
|
271
271
|
*/
|
|
272
|
-
backFaceOpacity
|
|
272
|
+
backFaceOpacity?: number | undefined;
|
|
273
273
|
}
|
|
274
274
|
/**
|
|
275
275
|
* Mesh data for `manifold.shapes.manifoldFromMesh`, which builds a solid from it.
|
|
@@ -357,7 +357,7 @@ export declare namespace Manifold {
|
|
|
357
357
|
* along the positive axes.
|
|
358
358
|
* @default true
|
|
359
359
|
*/
|
|
360
|
-
center
|
|
360
|
+
center?: boolean | undefined;
|
|
361
361
|
/**
|
|
362
362
|
* The side length of the cube, in model units.
|
|
363
363
|
* @default 1
|
|
@@ -365,7 +365,7 @@ export declare namespace Manifold {
|
|
|
365
365
|
* @maximum Infinity
|
|
366
366
|
* @step 0.1
|
|
367
367
|
*/
|
|
368
|
-
size
|
|
368
|
+
size?: number | undefined;
|
|
369
369
|
}
|
|
370
370
|
/**
|
|
371
371
|
* Polygons as 2D points and a fill rule for `crossSection.shapes.create`.
|
|
@@ -382,7 +382,7 @@ export declare namespace Manifold {
|
|
|
382
382
|
* negative winding.
|
|
383
383
|
* @default EvenOdd
|
|
384
384
|
*/
|
|
385
|
-
fillRule
|
|
385
|
+
fillRule?: fillRuleEnum | undefined;
|
|
386
386
|
}
|
|
387
387
|
/**
|
|
388
388
|
* A side length and a placement for `crossSection.shapes.square`.
|
|
@@ -393,7 +393,7 @@ export declare namespace Manifold {
|
|
|
393
393
|
* When true, the square is centered on the origin; when false its corner sits there.
|
|
394
394
|
* @default false
|
|
395
395
|
*/
|
|
396
|
-
center
|
|
396
|
+
center?: boolean | undefined;
|
|
397
397
|
/**
|
|
398
398
|
* The side length, one number for a square or two for a rectangle along X and Y, in model
|
|
399
399
|
* units.
|
|
@@ -402,7 +402,7 @@ export declare namespace Manifold {
|
|
|
402
402
|
* @maximum Infinity
|
|
403
403
|
* @step 0.1
|
|
404
404
|
*/
|
|
405
|
-
size
|
|
405
|
+
size?: number | undefined;
|
|
406
406
|
}
|
|
407
407
|
/**
|
|
408
408
|
* A radius and a segment count for `manifold.shapes.sphere`.
|
|
@@ -416,7 +416,7 @@ export declare namespace Manifold {
|
|
|
416
416
|
* @maximum Infinity
|
|
417
417
|
* @step 0.1
|
|
418
418
|
*/
|
|
419
|
-
radius
|
|
419
|
+
radius?: number | undefined;
|
|
420
420
|
/**
|
|
421
421
|
* How many segments go around the sphere; rounded up to a multiple of four.
|
|
422
422
|
* @default 32
|
|
@@ -424,7 +424,7 @@ export declare namespace Manifold {
|
|
|
424
424
|
* @maximum Infinity
|
|
425
425
|
* @step 1
|
|
426
426
|
*/
|
|
427
|
-
circularSegments
|
|
427
|
+
circularSegments?: number | undefined;
|
|
428
428
|
}
|
|
429
429
|
/**
|
|
430
430
|
* The size and placement of a cylinder or cone for `manifold.shapes.cylinder`, which stands it
|
|
@@ -439,7 +439,7 @@ export declare namespace Manifold {
|
|
|
439
439
|
* @maximum Infinity
|
|
440
440
|
* @step 0.1
|
|
441
441
|
*/
|
|
442
|
-
height
|
|
442
|
+
height?: number | undefined;
|
|
443
443
|
/**
|
|
444
444
|
* The radius of the bottom circle, in model units; must be above 0.
|
|
445
445
|
* @default 1
|
|
@@ -447,7 +447,7 @@ export declare namespace Manifold {
|
|
|
447
447
|
* @maximum Infinity
|
|
448
448
|
* @step 0.1
|
|
449
449
|
*/
|
|
450
|
-
radiusLow
|
|
450
|
+
radiusLow?: number | undefined;
|
|
451
451
|
/**
|
|
452
452
|
* The radius of the top circle, in model units: equal to `radiusLow` for a cylinder, smaller
|
|
453
453
|
* for a truncated cone, 0 for a pointed cone.
|
|
@@ -456,7 +456,7 @@ export declare namespace Manifold {
|
|
|
456
456
|
* @maximum Infinity
|
|
457
457
|
* @step 0.1
|
|
458
458
|
*/
|
|
459
|
-
radiusHigh
|
|
459
|
+
radiusHigh?: number | undefined;
|
|
460
460
|
/**
|
|
461
461
|
* How many flat sides go around the cylinder; more is rounder.
|
|
462
462
|
* @default 32
|
|
@@ -464,12 +464,12 @@ export declare namespace Manifold {
|
|
|
464
464
|
* @maximum Infinity
|
|
465
465
|
* @step 1
|
|
466
466
|
*/
|
|
467
|
-
circularSegments
|
|
467
|
+
circularSegments?: number | undefined;
|
|
468
468
|
/**
|
|
469
469
|
* When true, the cylinder is centered on the origin; when false it stands on the XY plane.
|
|
470
470
|
* @default true
|
|
471
471
|
*/
|
|
472
|
-
center
|
|
472
|
+
center?: boolean | undefined;
|
|
473
473
|
}
|
|
474
474
|
/**
|
|
475
475
|
* A radius and a segment count for `crossSection.shapes.circle`.
|
|
@@ -483,7 +483,7 @@ export declare namespace Manifold {
|
|
|
483
483
|
* @maximum Infinity
|
|
484
484
|
* @step 0.1
|
|
485
485
|
*/
|
|
486
|
-
radius
|
|
486
|
+
radius?: number | undefined;
|
|
487
487
|
/**
|
|
488
488
|
* How many straight sides the circle is drawn with; more is rounder.
|
|
489
489
|
* @default 32
|
|
@@ -491,7 +491,7 @@ export declare namespace Manifold {
|
|
|
491
491
|
* @maximum Infinity
|
|
492
492
|
* @step 1
|
|
493
493
|
*/
|
|
494
|
-
circularSegments
|
|
494
|
+
circularSegments?: number | undefined;
|
|
495
495
|
}
|
|
496
496
|
/**
|
|
497
497
|
* Two sides and a placement for `crossSection.shapes.rectangle`.
|
|
@@ -505,7 +505,7 @@ export declare namespace Manifold {
|
|
|
505
505
|
* @maximum Infinity
|
|
506
506
|
* @step 0.1
|
|
507
507
|
*/
|
|
508
|
-
length
|
|
508
|
+
length?: number | undefined;
|
|
509
509
|
/**
|
|
510
510
|
* The side along Y, in model units.
|
|
511
511
|
* @default 1
|
|
@@ -513,12 +513,12 @@ export declare namespace Manifold {
|
|
|
513
513
|
* @maximum Infinity
|
|
514
514
|
* @step 0.1
|
|
515
515
|
*/
|
|
516
|
-
height
|
|
516
|
+
height?: number | undefined;
|
|
517
517
|
/**
|
|
518
518
|
* When true, the rectangle is centered on the origin; when false its corner sits there.
|
|
519
519
|
* @default false
|
|
520
520
|
*/
|
|
521
|
-
center
|
|
521
|
+
center?: boolean | undefined;
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
524
|
* One solid for the methods that take nothing else, such as `manifold.evaluate.volume` or
|
|
@@ -548,7 +548,7 @@ export declare namespace Manifold {
|
|
|
548
548
|
* @maximum Infinity
|
|
549
549
|
* @step 1
|
|
550
550
|
*/
|
|
551
|
-
normalIdx
|
|
551
|
+
normalIdx?: number | undefined;
|
|
552
552
|
/**
|
|
553
553
|
* Edges bent more than this, in degrees, get separate normals on each side and stay crisp; at 0
|
|
554
554
|
* every triangle keeps its own normal.
|
|
@@ -557,7 +557,7 @@ export declare namespace Manifold {
|
|
|
557
557
|
* @maximum Infinity
|
|
558
558
|
* @step 1
|
|
559
559
|
*/
|
|
560
|
-
minSharpAngle
|
|
560
|
+
minSharpAngle?: number | undefined;
|
|
561
561
|
}
|
|
562
562
|
/**
|
|
563
563
|
* A solid and two channels for `manifold.operations.calculateCurvature`.
|
|
@@ -576,7 +576,7 @@ export declare namespace Manifold {
|
|
|
576
576
|
* @maximum Infinity
|
|
577
577
|
* @step 1
|
|
578
578
|
*/
|
|
579
|
-
gaussianIdx
|
|
579
|
+
gaussianIdx?: number | undefined;
|
|
580
580
|
/**
|
|
581
581
|
* The property channel that receives the mean curvature, the sum of the two principal
|
|
582
582
|
* curvatures; below 0 skips it.
|
|
@@ -585,7 +585,7 @@ export declare namespace Manifold {
|
|
|
585
585
|
* @maximum Infinity
|
|
586
586
|
* @step 1
|
|
587
587
|
*/
|
|
588
|
-
meanIdx
|
|
588
|
+
meanIdx?: number | undefined;
|
|
589
589
|
}
|
|
590
590
|
/**
|
|
591
591
|
* A count for `manifold.operations.reserveIds`, which reserves that many mesh ids.
|
|
@@ -617,7 +617,7 @@ export declare namespace Manifold {
|
|
|
617
617
|
* @maximum Infinity
|
|
618
618
|
* @step 10
|
|
619
619
|
*/
|
|
620
|
-
searchLength
|
|
620
|
+
searchLength?: number | undefined;
|
|
621
621
|
}
|
|
622
622
|
/**
|
|
623
623
|
* A solid and a ray segment for `manifold.evaluate.rayCast`.
|
|
@@ -632,12 +632,12 @@ export declare namespace Manifold {
|
|
|
632
632
|
* Where the ray segment starts.
|
|
633
633
|
* @default [0,0,0]
|
|
634
634
|
*/
|
|
635
|
-
origin
|
|
635
|
+
origin?: Base.Point3 | undefined;
|
|
636
636
|
/**
|
|
637
637
|
* Where the ray segment ends; nothing beyond it is hit.
|
|
638
638
|
* @default [0,0,10]
|
|
639
639
|
*/
|
|
640
|
-
endpoint
|
|
640
|
+
endpoint?: Base.Point3 | undefined;
|
|
641
641
|
}
|
|
642
642
|
/**
|
|
643
643
|
* One place a ray segment crosses the surface of a solid, as `manifold.evaluate.rayCast` reports
|
|
@@ -668,7 +668,7 @@ export declare namespace Manifold {
|
|
|
668
668
|
* @maximum Infinity
|
|
669
669
|
* @step 1e-7
|
|
670
670
|
*/
|
|
671
|
-
tolerance
|
|
671
|
+
tolerance?: number | undefined;
|
|
672
672
|
}
|
|
673
673
|
/**
|
|
674
674
|
* A solid and an edge length for `manifold.operations.refineToLength`.
|
|
@@ -686,7 +686,7 @@ export declare namespace Manifold {
|
|
|
686
686
|
* @maximum Infinity
|
|
687
687
|
* @step 0.1
|
|
688
688
|
*/
|
|
689
|
-
length
|
|
689
|
+
length?: number | undefined;
|
|
690
690
|
}
|
|
691
691
|
/**
|
|
692
692
|
* A solid and a count for `manifold.operations.refine`.
|
|
@@ -704,7 +704,7 @@ export declare namespace Manifold {
|
|
|
704
704
|
* @maximum Infinity
|
|
705
705
|
* @step 1
|
|
706
706
|
*/
|
|
707
|
-
number
|
|
707
|
+
number?: number | undefined;
|
|
708
708
|
}
|
|
709
709
|
/**
|
|
710
710
|
* A solid and a normal channel for `manifold.operations.smoothByNormals`.
|
|
@@ -723,7 +723,7 @@ export declare namespace Manifold {
|
|
|
723
723
|
* @maximum Infinity
|
|
724
724
|
* @step 1
|
|
725
725
|
*/
|
|
726
|
-
normalIdx
|
|
726
|
+
normalIdx?: number | undefined;
|
|
727
727
|
}
|
|
728
728
|
/**
|
|
729
729
|
* A solid and a tolerance for `manifold.operations.simplify`.
|
|
@@ -757,11 +757,11 @@ export declare namespace Manifold {
|
|
|
757
757
|
/**
|
|
758
758
|
* How many properties each vertex has afterwards.
|
|
759
759
|
* @default 3
|
|
760
|
-
* @minimum
|
|
760
|
+
* @minimum 0
|
|
761
761
|
* @maximum Infinity
|
|
762
762
|
* @step 1
|
|
763
763
|
*/
|
|
764
|
-
numProp
|
|
764
|
+
numProp?: number | undefined;
|
|
765
765
|
/**
|
|
766
766
|
* A function that receives the new property array, the vertex position and the old properties,
|
|
767
767
|
* and fills the new array in place.
|
|
@@ -782,11 +782,11 @@ export declare namespace Manifold {
|
|
|
782
782
|
* Edges bent more than this, in degrees, stay sharp; the rest are smoothed. At 0 nothing is
|
|
783
783
|
* smoothed.
|
|
784
784
|
* @default 60
|
|
785
|
-
* @minimum
|
|
786
|
-
* @maximum
|
|
785
|
+
* @minimum 0
|
|
786
|
+
* @maximum 180
|
|
787
787
|
* @step 1
|
|
788
788
|
*/
|
|
789
|
-
minSharpAngle
|
|
789
|
+
minSharpAngle?: number | undefined;
|
|
790
790
|
/**
|
|
791
791
|
* How much the sharp edges are rounded, from 0 for a hard edge to 1 for fully smooth.
|
|
792
792
|
* @default 0
|
|
@@ -794,7 +794,7 @@ export declare namespace Manifold {
|
|
|
794
794
|
* @maximum 1
|
|
795
795
|
* @step 0.1
|
|
796
796
|
*/
|
|
797
|
-
minSmoothness
|
|
797
|
+
minSmoothness?: number | undefined;
|
|
798
798
|
}
|
|
799
799
|
/**
|
|
800
800
|
* Points and solids for `manifold.operations.hullPoints`, which wraps them all in one convex hull.
|
|
@@ -822,7 +822,7 @@ export declare namespace Manifold {
|
|
|
822
822
|
* @maximum Infinity
|
|
823
823
|
* @step 0.1
|
|
824
824
|
*/
|
|
825
|
-
height
|
|
825
|
+
height?: number | undefined;
|
|
826
826
|
}
|
|
827
827
|
/**
|
|
828
828
|
* Mesh data for the methods that read it whole, such as `mesh.evaluate.numTri` and
|
|
@@ -851,7 +851,7 @@ export declare namespace Manifold {
|
|
|
851
851
|
* @maximum Infinity
|
|
852
852
|
* @step 1
|
|
853
853
|
*/
|
|
854
|
-
vertexIndex
|
|
854
|
+
vertexIndex?: number | undefined;
|
|
855
855
|
}
|
|
856
856
|
/**
|
|
857
857
|
* Mesh data and a run index for `mesh.evaluate.transform`.
|
|
@@ -869,7 +869,7 @@ export declare namespace Manifold {
|
|
|
869
869
|
* @maximum Infinity
|
|
870
870
|
* @step 1
|
|
871
871
|
*/
|
|
872
|
-
triangleRunIndex
|
|
872
|
+
triangleRunIndex?: number | undefined;
|
|
873
873
|
}
|
|
874
874
|
/**
|
|
875
875
|
* Mesh data and a half-edge index for `mesh.evaluate.tangent`.
|
|
@@ -887,7 +887,7 @@ export declare namespace Manifold {
|
|
|
887
887
|
* @maximum Infinity
|
|
888
888
|
* @step 1
|
|
889
889
|
*/
|
|
890
|
-
halfEdgeIndex
|
|
890
|
+
halfEdgeIndex?: number | undefined;
|
|
891
891
|
}
|
|
892
892
|
/**
|
|
893
893
|
* Mesh data and a triangle index for `mesh.evaluate.verts`.
|
|
@@ -905,7 +905,7 @@ export declare namespace Manifold {
|
|
|
905
905
|
* @maximum Infinity
|
|
906
906
|
* @step 1
|
|
907
907
|
*/
|
|
908
|
-
triangleIndex
|
|
908
|
+
triangleIndex?: number | undefined;
|
|
909
909
|
}
|
|
910
910
|
/**
|
|
911
911
|
* One cross-section for the methods that take nothing else, such as `crossSection.evaluate.area` or
|
|
@@ -945,7 +945,7 @@ export declare namespace Manifold {
|
|
|
945
945
|
* @maximum Infinity
|
|
946
946
|
* @step 0.1
|
|
947
947
|
*/
|
|
948
|
-
height
|
|
948
|
+
height?: number | undefined;
|
|
949
949
|
/**
|
|
950
950
|
* How many extra copies of the outline are inserted along the way; more keeps a twist or taper
|
|
951
951
|
* smooth.
|
|
@@ -954,7 +954,7 @@ export declare namespace Manifold {
|
|
|
954
954
|
* @maximum Infinity
|
|
955
955
|
* @step 1
|
|
956
956
|
*/
|
|
957
|
-
nDivisions
|
|
957
|
+
nDivisions?: number | undefined;
|
|
958
958
|
/**
|
|
959
959
|
* How far the top is turned against the bottom, in degrees.
|
|
960
960
|
* @default 0
|
|
@@ -962,7 +962,7 @@ export declare namespace Manifold {
|
|
|
962
962
|
* @maximum Infinity
|
|
963
963
|
* @step 1
|
|
964
964
|
*/
|
|
965
|
-
twistDegrees
|
|
965
|
+
twistDegrees?: number | undefined;
|
|
966
966
|
/**
|
|
967
967
|
* How much the top is scaled along X; 1 keeps it, 0 with `scaleTopY` at 0 makes a cone.
|
|
968
968
|
* @default 1
|
|
@@ -970,7 +970,7 @@ export declare namespace Manifold {
|
|
|
970
970
|
* @maximum Infinity
|
|
971
971
|
* @step 0.1
|
|
972
972
|
*/
|
|
973
|
-
scaleTopX
|
|
973
|
+
scaleTopX?: number | undefined;
|
|
974
974
|
/**
|
|
975
975
|
* How much the top is scaled along Y; 1 keeps it, 0 with `scaleTopX` at 0 makes a cone.
|
|
976
976
|
* @default 1
|
|
@@ -978,12 +978,12 @@ export declare namespace Manifold {
|
|
|
978
978
|
* @maximum Infinity
|
|
979
979
|
* @step 0.1
|
|
980
980
|
*/
|
|
981
|
-
scaleTopY
|
|
981
|
+
scaleTopY?: number | undefined;
|
|
982
982
|
/**
|
|
983
983
|
* When true, the solid is centered on the XY plane; when false it stands on it.
|
|
984
984
|
* @default true
|
|
985
985
|
*/
|
|
986
|
-
center
|
|
986
|
+
center?: boolean | undefined;
|
|
987
987
|
}
|
|
988
988
|
/**
|
|
989
989
|
* A cross-section and the turn settings for `crossSection.operations.revolve`, which spins it into
|
|
@@ -999,16 +999,17 @@ export declare namespace Manifold {
|
|
|
999
999
|
* How far to spin, in degrees; 360 gives a full turn.
|
|
1000
1000
|
* @default 360
|
|
1001
1001
|
* @minimum 0
|
|
1002
|
+
* @exclusiveMinimum true
|
|
1002
1003
|
* @maximum Infinity
|
|
1003
1004
|
* @step 1
|
|
1004
1005
|
*/
|
|
1005
|
-
revolveDegrees
|
|
1006
|
+
revolveDegrees?: number | undefined;
|
|
1006
1007
|
/**
|
|
1007
1008
|
* When true, the result is turned back to keep the profile's orientation; when false it stands
|
|
1008
1009
|
* along Z as the kernel makes it.
|
|
1009
1010
|
* @default true
|
|
1010
1011
|
*/
|
|
1011
|
-
matchProfile
|
|
1012
|
+
matchProfile?: boolean | undefined;
|
|
1012
1013
|
/**
|
|
1013
1014
|
* How many segments go around the turn; more is rounder.
|
|
1014
1015
|
* @default 32
|
|
@@ -1016,7 +1017,7 @@ export declare namespace Manifold {
|
|
|
1016
1017
|
* @maximum Infinity
|
|
1017
1018
|
* @step 1
|
|
1018
1019
|
*/
|
|
1019
|
-
circularSegments
|
|
1020
|
+
circularSegments?: number | undefined;
|
|
1020
1021
|
}
|
|
1021
1022
|
/**
|
|
1022
1023
|
* A cross-section and the offset settings for `crossSection.operations.offset`.
|
|
@@ -1035,12 +1036,12 @@ export declare namespace Manifold {
|
|
|
1035
1036
|
* @maximum Infinity
|
|
1036
1037
|
* @step 0.1
|
|
1037
1038
|
*/
|
|
1038
|
-
delta
|
|
1039
|
+
delta?: number | undefined;
|
|
1039
1040
|
/**
|
|
1040
1041
|
* How corners are treated: `round`, `square`, `miter` or `bevel`.
|
|
1041
1042
|
* @default round
|
|
1042
1043
|
*/
|
|
1043
|
-
joinType
|
|
1044
|
+
joinType?: manifoldJoinTypeEnum | undefined;
|
|
1044
1045
|
/**
|
|
1045
1046
|
* For `miter` joins, how far a corner may reach as a multiple of `delta` before it is squared
|
|
1046
1047
|
* off; 2 is the smallest allowed.
|
|
@@ -1049,7 +1050,7 @@ export declare namespace Manifold {
|
|
|
1049
1050
|
* @maximum Infinity
|
|
1050
1051
|
* @step 0.1
|
|
1051
1052
|
*/
|
|
1052
|
-
miterLimit
|
|
1053
|
+
miterLimit?: number | undefined;
|
|
1053
1054
|
/**
|
|
1054
1055
|
* For `round` joins, how many segments a full circle of rounding gets.
|
|
1055
1056
|
* @default 32
|
|
@@ -1057,7 +1058,7 @@ export declare namespace Manifold {
|
|
|
1057
1058
|
* @maximum Infinity
|
|
1058
1059
|
* @step 1
|
|
1059
1060
|
*/
|
|
1060
|
-
circularSegments
|
|
1061
|
+
circularSegments?: number | undefined;
|
|
1061
1062
|
}
|
|
1062
1063
|
/**
|
|
1063
1064
|
* A cross-section and a distance for `crossSection.operations.simplify`.
|
|
@@ -1075,7 +1076,7 @@ export declare namespace Manifold {
|
|
|
1075
1076
|
* @maximum Infinity
|
|
1076
1077
|
* @step 1e-7
|
|
1077
1078
|
*/
|
|
1078
|
-
epsilon
|
|
1079
|
+
epsilon?: number | undefined;
|
|
1079
1080
|
}
|
|
1080
1081
|
/**
|
|
1081
1082
|
* Cross-sections or polygons for `crossSection.operations.compose`, which packs them into one
|
|
@@ -1101,7 +1102,7 @@ export declare namespace Manifold {
|
|
|
1101
1102
|
* The normal of the mirror line through the origin; `[1, 0]` mirrors left to right.
|
|
1102
1103
|
* @default [1,0]
|
|
1103
1104
|
*/
|
|
1104
|
-
normal
|
|
1105
|
+
normal?: Base.Vector2 | undefined;
|
|
1105
1106
|
}
|
|
1106
1107
|
/**
|
|
1107
1108
|
* A cross-section and two factors for `crossSection.transforms.scale2D`.
|
|
@@ -1116,7 +1117,7 @@ export declare namespace Manifold {
|
|
|
1116
1117
|
* The factors along X and Y, about the origin; 1 keeps an axis as it is.
|
|
1117
1118
|
* @default [2,2]
|
|
1118
1119
|
*/
|
|
1119
|
-
vector
|
|
1120
|
+
vector?: Base.Vector2 | undefined;
|
|
1120
1121
|
}
|
|
1121
1122
|
/**
|
|
1122
1123
|
* A cross-section and a vector for `crossSection.transforms.translate`.
|
|
@@ -1149,7 +1150,7 @@ export declare namespace Manifold {
|
|
|
1149
1150
|
* @maximum Infinity
|
|
1150
1151
|
* @step 1
|
|
1151
1152
|
*/
|
|
1152
|
-
degrees
|
|
1153
|
+
degrees?: number | undefined;
|
|
1153
1154
|
}
|
|
1154
1155
|
/**
|
|
1155
1156
|
* A cross-section and a factor for `crossSection.transforms.scale`.
|
|
@@ -1164,7 +1165,7 @@ export declare namespace Manifold {
|
|
|
1164
1165
|
* The uniform scale about the origin; 2 doubles every size.
|
|
1165
1166
|
* @default 2
|
|
1166
1167
|
*/
|
|
1167
|
-
factor
|
|
1168
|
+
factor?: number | undefined;
|
|
1168
1169
|
}
|
|
1169
1170
|
/**
|
|
1170
1171
|
* A cross-section and two distances for `crossSection.transforms.translateXY`.
|
|
@@ -1182,7 +1183,7 @@ export declare namespace Manifold {
|
|
|
1182
1183
|
* @maximum Infinity
|
|
1183
1184
|
* @step 1
|
|
1184
1185
|
*/
|
|
1185
|
-
x
|
|
1186
|
+
x?: number | undefined;
|
|
1186
1187
|
/**
|
|
1187
1188
|
* How far to move along Y, in model units.
|
|
1188
1189
|
* @default 0
|
|
@@ -1190,7 +1191,7 @@ export declare namespace Manifold {
|
|
|
1190
1191
|
* @maximum Infinity
|
|
1191
1192
|
* @step 1
|
|
1192
1193
|
*/
|
|
1193
|
-
y
|
|
1194
|
+
y?: number | undefined;
|
|
1194
1195
|
}
|
|
1195
1196
|
/**
|
|
1196
1197
|
* A cross-section and a 3x3 matrix for `crossSection.transforms.transform`.
|
|
@@ -1235,7 +1236,7 @@ export declare namespace Manifold {
|
|
|
1235
1236
|
* The normal of the mirror plane through the origin; a zero vector gives an empty solid.
|
|
1236
1237
|
* @default [1,0,0]
|
|
1237
1238
|
*/
|
|
1238
|
-
normal
|
|
1239
|
+
normal?: Base.Vector3 | undefined;
|
|
1239
1240
|
}
|
|
1240
1241
|
/**
|
|
1241
1242
|
* A solid and three factors for `manifold.transforms.scale3D` and `manifold.transforms.scale`.
|
|
@@ -1250,7 +1251,7 @@ export declare namespace Manifold {
|
|
|
1250
1251
|
* The factors along X, Y and Z, about the origin; 1 keeps an axis as it is, 2 doubles it.
|
|
1251
1252
|
* @default [2,2,2]
|
|
1252
1253
|
*/
|
|
1253
|
-
vector
|
|
1254
|
+
vector?: Base.Vector3 | undefined;
|
|
1254
1255
|
}
|
|
1255
1256
|
/**
|
|
1256
1257
|
* A solid and a vector for `manifold.transforms.translate`.
|
|
@@ -1314,7 +1315,7 @@ export declare namespace Manifold {
|
|
|
1314
1315
|
* @maximum Infinity
|
|
1315
1316
|
* @step 1
|
|
1316
1317
|
*/
|
|
1317
|
-
x
|
|
1318
|
+
x?: number | undefined;
|
|
1318
1319
|
/**
|
|
1319
1320
|
* The rotation about the Y axis in degrees, applied second.
|
|
1320
1321
|
* @default 0
|
|
@@ -1322,7 +1323,7 @@ export declare namespace Manifold {
|
|
|
1322
1323
|
* @maximum Infinity
|
|
1323
1324
|
* @step 1
|
|
1324
1325
|
*/
|
|
1325
|
-
y
|
|
1326
|
+
y?: number | undefined;
|
|
1326
1327
|
/**
|
|
1327
1328
|
* The rotation about the Z axis in degrees, applied last.
|
|
1328
1329
|
* @default 0
|
|
@@ -1330,7 +1331,7 @@ export declare namespace Manifold {
|
|
|
1330
1331
|
* @maximum Infinity
|
|
1331
1332
|
* @step 1
|
|
1332
1333
|
*/
|
|
1333
|
-
z
|
|
1334
|
+
z?: number | undefined;
|
|
1334
1335
|
}
|
|
1335
1336
|
/**
|
|
1336
1337
|
* A solid and a factor for uniform scaling; currently unused by the library, which scales through
|
|
@@ -1346,7 +1347,7 @@ export declare namespace Manifold {
|
|
|
1346
1347
|
* The uniform scale about the origin; 2 doubles every size.
|
|
1347
1348
|
* @default 2
|
|
1348
1349
|
*/
|
|
1349
|
-
factor
|
|
1350
|
+
factor?: number | undefined;
|
|
1350
1351
|
}
|
|
1351
1352
|
/**
|
|
1352
1353
|
* A solid and three distances for `manifold.transforms.translateXYZ`.
|
|
@@ -1364,7 +1365,7 @@ export declare namespace Manifold {
|
|
|
1364
1365
|
* @maximum Infinity
|
|
1365
1366
|
* @step 1
|
|
1366
1367
|
*/
|
|
1367
|
-
x
|
|
1368
|
+
x?: number | undefined;
|
|
1368
1369
|
/**
|
|
1369
1370
|
* How far to move along Y, in model units.
|
|
1370
1371
|
* @default 0
|
|
@@ -1372,7 +1373,7 @@ export declare namespace Manifold {
|
|
|
1372
1373
|
* @maximum Infinity
|
|
1373
1374
|
* @step 1
|
|
1374
1375
|
*/
|
|
1375
|
-
y
|
|
1376
|
+
y?: number | undefined;
|
|
1376
1377
|
/**
|
|
1377
1378
|
* How far to move along Z, in model units.
|
|
1378
1379
|
* @default 0
|
|
@@ -1380,7 +1381,7 @@ export declare namespace Manifold {
|
|
|
1380
1381
|
* @maximum Infinity
|
|
1381
1382
|
* @step 1
|
|
1382
1383
|
*/
|
|
1383
|
-
z
|
|
1384
|
+
z?: number | undefined;
|
|
1384
1385
|
}
|
|
1385
1386
|
/**
|
|
1386
1387
|
* A solid and a 4x4 matrix for `manifold.transforms.transform`.
|
|
@@ -1484,7 +1485,7 @@ export declare namespace Manifold {
|
|
|
1484
1485
|
* does not matter.
|
|
1485
1486
|
* @default [1,0,0]
|
|
1486
1487
|
*/
|
|
1487
|
-
normal
|
|
1488
|
+
normal?: Base.Vector3 | undefined;
|
|
1488
1489
|
/**
|
|
1489
1490
|
* How far the plane sits from the origin along the normal, in model units.
|
|
1490
1491
|
* @default 0
|
|
@@ -1492,7 +1493,7 @@ export declare namespace Manifold {
|
|
|
1492
1493
|
* @maximum Infinity
|
|
1493
1494
|
* @step 0.1
|
|
1494
1495
|
*/
|
|
1495
|
-
originOffset
|
|
1496
|
+
originOffset?: number | undefined;
|
|
1496
1497
|
}
|
|
1497
1498
|
/**
|
|
1498
1499
|
* A solid and a plane for `manifold.booleans.splitByPlane`, which keeps both pieces.
|
|
@@ -1508,7 +1509,7 @@ export declare namespace Manifold {
|
|
|
1508
1509
|
* length does not matter.
|
|
1509
1510
|
* @default [1,0,0]
|
|
1510
1511
|
*/
|
|
1511
|
-
normal
|
|
1512
|
+
normal?: Base.Vector3 | undefined;
|
|
1512
1513
|
/**
|
|
1513
1514
|
* How far the plane sits from the origin along the normal, in model units.
|
|
1514
1515
|
* @default 0
|
|
@@ -1516,7 +1517,7 @@ export declare namespace Manifold {
|
|
|
1516
1517
|
* @maximum Infinity
|
|
1517
1518
|
* @step 0.1
|
|
1518
1519
|
*/
|
|
1519
|
-
originOffset
|
|
1520
|
+
originOffset?: number | undefined;
|
|
1520
1521
|
}
|
|
1521
1522
|
/**
|
|
1522
1523
|
* A solid, a plane normal and several distances for `manifold.booleans.splitByPlaneOnOffsets`,
|
|
@@ -1532,13 +1533,13 @@ export declare namespace Manifold {
|
|
|
1532
1533
|
* The normal shared by every cutting plane; its length does not matter.
|
|
1533
1534
|
* @default [1,0,0]
|
|
1534
1535
|
*/
|
|
1535
|
-
normal
|
|
1536
|
+
normal?: Base.Vector3 | undefined;
|
|
1536
1537
|
/**
|
|
1537
1538
|
* How far each plane sits from the origin along the normal, in model units, in increasing
|
|
1538
1539
|
* order.
|
|
1539
1540
|
* @default [0]
|
|
1540
1541
|
*/
|
|
1541
|
-
originOffsets
|
|
1542
|
+
originOffsets?: number[] | undefined;
|
|
1542
1543
|
}
|
|
1543
1544
|
/**
|
|
1544
1545
|
* Several solids for the methods that take a list, such as `manifold.booleans.union` or
|