@bitbybit-dev/manifold 1.1.1 → 1.2.0-rc.1

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.
Files changed (41) hide show
  1. package/README.md +14 -4
  2. package/index.js +0 -3
  3. package/lib/api/inputs/base-inputs.js +0 -1
  4. package/lib/api/inputs/manifold-inputs.d.ts +63 -23
  5. package/lib/api/inputs/manifold-inputs.js +114 -1
  6. package/lib/api/manifold-service.d.ts +30 -2
  7. package/lib/api/manifold-service.js +43 -22
  8. package/lib/api/services/cross-section/cross-section-booleans.d.ts +78 -2
  9. package/lib/api/services/cross-section/cross-section-booleans.js +86 -10
  10. package/lib/api/services/cross-section/cross-section-evaluate.d.ts +45 -2
  11. package/lib/api/services/cross-section/cross-section-evaluate.js +45 -2
  12. package/lib/api/services/cross-section/cross-section-operations.d.ts +71 -0
  13. package/lib/api/services/cross-section/cross-section-operations.js +71 -2
  14. package/lib/api/services/cross-section/cross-section-shapes.d.ts +39 -0
  15. package/lib/api/services/cross-section/cross-section-shapes.js +39 -0
  16. package/lib/api/services/cross-section/cross-section-transforms.d.ts +72 -2
  17. package/lib/api/services/cross-section/cross-section-transforms.js +72 -2
  18. package/lib/api/services/cross-section/cross-section.d.ts +53 -1
  19. package/lib/api/services/cross-section/cross-section.js +53 -5
  20. package/lib/api/services/index.js +1 -0
  21. package/lib/api/services/manifold/manifold-booleans.d.ts +116 -6
  22. package/lib/api/services/manifold/manifold-booleans.js +159 -48
  23. package/lib/api/services/manifold/manifold-evaluate.d.ts +133 -3
  24. package/lib/api/services/manifold/manifold-evaluate.js +135 -5
  25. package/lib/api/services/manifold/manifold-operations.d.ts +202 -1
  26. package/lib/api/services/manifold/manifold-operations.js +204 -3
  27. package/lib/api/services/manifold/manifold-shapes.d.ts +59 -0
  28. package/lib/api/services/manifold/manifold-shapes.js +78 -20
  29. package/lib/api/services/manifold/manifold-transforms.d.ts +97 -3
  30. package/lib/api/services/manifold/manifold-transforms.js +102 -6
  31. package/lib/api/services/manifold/manifold.d.ts +20 -0
  32. package/lib/api/services/manifold/manifold.js +20 -1
  33. package/lib/api/services/mesh/mesh-evaluate.d.ts +81 -3
  34. package/lib/api/services/mesh/mesh-evaluate.js +84 -6
  35. package/lib/api/services/mesh/mesh-operations.d.ts +24 -2
  36. package/lib/api/services/mesh/mesh-operations.js +24 -2
  37. package/lib/api/services/mesh/mesh.d.ts +4 -0
  38. package/lib/api/services/mesh/mesh.js +4 -1
  39. package/package.json +6 -45
  40. package/babel.config.cjs +0 -17
  41. package/babel.config.d.cts +0 -6
@@ -1,14 +1,84 @@
1
1
  import * as Inputs from "../../inputs/manifold-inputs";
2
2
  import * as Manifold3D from "manifold-3d";
3
+ /**
4
+ * Contains various functions for transforming cross section from Manifold library
5
+ * https://github.com/elalish/manifold Thanks Manifold community for developing this kernel
6
+ */
3
7
  export declare class CrossSectionTransforms {
4
- private manifold;
5
- constructor(wasm: Manifold3D.ManifoldToplevel);
8
+ constructor(_wasm: Manifold3D.ManifoldToplevel);
9
+ /**
10
+ * Scales a cross section shape with 2D vector
11
+ * @param inputs cross section and scale vector
12
+ * @returns Scaled cross section shape
13
+ * @group transforms
14
+ * @shortname scale 2d
15
+ * @drawable true
16
+ */
6
17
  scale2D(inputs: Inputs.Manifold.Scale2DCrossSectionDto<Manifold3D.CrossSection>): Manifold3D.CrossSection;
18
+ /**
19
+ * Scales a cross section shape with single factor
20
+ * @param inputs cross section and scale factor
21
+ * @returns Scaled cross section shape
22
+ * @group transforms
23
+ * @shortname scale uniform
24
+ * @drawable true
25
+ */
7
26
  scale(inputs: Inputs.Manifold.ScaleCrossSectionDto<Manifold3D.CrossSection>): Manifold3D.CrossSection;
27
+ /**
28
+ * Mirrors a cross section shape over a plane defined by a normal vector
29
+ * @param inputs cross section and normal vector
30
+ * @returns Mirrored cross section shape
31
+ * @group transforms
32
+ * @shortname mirror
33
+ * @drawable true
34
+ */
8
35
  mirror(inputs: Inputs.Manifold.MirrorCrossSectionDto<Manifold3D.CrossSection>): Manifold3D.CrossSection;
36
+ /**
37
+ * Translates a cross section shape along the vector
38
+ * @param inputs cross section and trnaslation vector
39
+ * @returns Translated cross section shape
40
+ * @group transforms
41
+ * @shortname translate
42
+ * @drawable true
43
+ */
9
44
  translate(inputs: Inputs.Manifold.TranslateCrossSectionDto<Manifold3D.CrossSection>): Manifold3D.CrossSection;
45
+ /**
46
+ * Translates a cross section shape along x, y
47
+ * @param inputs cross section and trnaslation coordinates
48
+ * @returns Translated cross section shape
49
+ * @group transforms
50
+ * @shortname translate xy
51
+ * @drawable true
52
+ */
10
53
  translateXY(inputs: Inputs.Manifold.TranslateXYCrossSectionDto<Manifold3D.CrossSection>): Manifold3D.CrossSection;
54
+ /**
55
+ * Rotates a cross section shape along the containing degrees
56
+ * @param inputs cross section and rotation degrees
57
+ * @returns Rotated cross section shape
58
+ * @group transforms
59
+ * @shortname rotate
60
+ * @drawable true
61
+ */
11
62
  rotate(inputs: Inputs.Manifold.RotateCrossSectionDto<Manifold3D.CrossSection>): Manifold3D.CrossSection;
63
+ /**
64
+ * Transforms a cross section shape by using the 3x3 transformation matrix
65
+ * @param inputs cross section and transformation matrix
66
+ * @returns Transformed cross section shape
67
+ * @group matrix
68
+ * @shortname transform
69
+ * @drawable true
70
+ */
12
71
  transform(inputs: Inputs.Manifold.TransformCrossSectionDto<Manifold3D.CrossSection>): Manifold3D.CrossSection;
72
+ /**
73
+ * Move the vertices of this CrossSection (creating a new one) according to
74
+ * any arbitrary input function, followed by a union operation (with a
75
+ * Positive fill rule) that ensures any introduced intersections are not
76
+ * included in the result.
77
+ * @param inputs cross section and warp function
78
+ * @returns Warped cross section shape
79
+ * @group transforms
80
+ * @shortname warp
81
+ * @drawable true
82
+ */
13
83
  warp(inputs: Inputs.Manifold.CrossSectionWarpDto<Manifold3D.CrossSection>): Manifold3D.CrossSection;
14
84
  }
@@ -1,28 +1,98 @@
1
+ /**
2
+ * Contains various functions for transforming cross section from Manifold library
3
+ * https://github.com/elalish/manifold Thanks Manifold community for developing this kernel
4
+ */
1
5
  export class CrossSectionTransforms {
2
- constructor(wasm) {
3
- this.manifold = wasm;
6
+ constructor(_wasm) {
4
7
  }
8
+ /**
9
+ * Scales a cross section shape with 2D vector
10
+ * @param inputs cross section and scale vector
11
+ * @returns Scaled cross section shape
12
+ * @group transforms
13
+ * @shortname scale 2d
14
+ * @drawable true
15
+ */
5
16
  scale2D(inputs) {
6
17
  return inputs.crossSection.scale(inputs.vector);
7
18
  }
19
+ /**
20
+ * Scales a cross section shape with single factor
21
+ * @param inputs cross section and scale factor
22
+ * @returns Scaled cross section shape
23
+ * @group transforms
24
+ * @shortname scale uniform
25
+ * @drawable true
26
+ */
8
27
  scale(inputs) {
9
28
  return inputs.crossSection.scale(inputs.factor);
10
29
  }
30
+ /**
31
+ * Mirrors a cross section shape over a plane defined by a normal vector
32
+ * @param inputs cross section and normal vector
33
+ * @returns Mirrored cross section shape
34
+ * @group transforms
35
+ * @shortname mirror
36
+ * @drawable true
37
+ */
11
38
  mirror(inputs) {
12
39
  return inputs.crossSection.mirror(inputs.normal);
13
40
  }
41
+ /**
42
+ * Translates a cross section shape along the vector
43
+ * @param inputs cross section and trnaslation vector
44
+ * @returns Translated cross section shape
45
+ * @group transforms
46
+ * @shortname translate
47
+ * @drawable true
48
+ */
14
49
  translate(inputs) {
15
50
  return inputs.crossSection.translate(inputs.vector);
16
51
  }
52
+ /**
53
+ * Translates a cross section shape along x, y
54
+ * @param inputs cross section and trnaslation coordinates
55
+ * @returns Translated cross section shape
56
+ * @group transforms
57
+ * @shortname translate xy
58
+ * @drawable true
59
+ */
17
60
  translateXY(inputs) {
18
61
  return inputs.crossSection.translate([inputs.x, inputs.y]);
19
62
  }
63
+ /**
64
+ * Rotates a cross section shape along the containing degrees
65
+ * @param inputs cross section and rotation degrees
66
+ * @returns Rotated cross section shape
67
+ * @group transforms
68
+ * @shortname rotate
69
+ * @drawable true
70
+ */
20
71
  rotate(inputs) {
21
72
  return inputs.crossSection.rotate(inputs.degrees);
22
73
  }
74
+ /**
75
+ * Transforms a cross section shape by using the 3x3 transformation matrix
76
+ * @param inputs cross section and transformation matrix
77
+ * @returns Transformed cross section shape
78
+ * @group matrix
79
+ * @shortname transform
80
+ * @drawable true
81
+ */
23
82
  transform(inputs) {
24
83
  return inputs.crossSection.transform(inputs.transform);
25
84
  }
85
+ /**
86
+ * Move the vertices of this CrossSection (creating a new one) according to
87
+ * any arbitrary input function, followed by a union operation (with a
88
+ * Positive fill rule) that ensures any introduced intersections are not
89
+ * included in the result.
90
+ * @param inputs cross section and warp function
91
+ * @returns Warped cross section shape
92
+ * @group transforms
93
+ * @shortname warp
94
+ * @drawable true
95
+ */
26
96
  warp(inputs) {
27
97
  return inputs.crossSection.warp(inputs.warpFunc);
28
98
  }
@@ -6,20 +6,72 @@ import { CrossSectionTransforms } from "./cross-section-transforms";
6
6
  import { CrossSectionBooleans } from "./cross-section-booleans";
7
7
  import { CrossSectionEvaluate } from "./cross-section-evaluate";
8
8
  import { BaseBitByBit } from "../../../base";
9
+ /**
10
+ * Contains various functions for Solid meshes from Manifold library https://github.com/elalish/manifold
11
+ * Thanks Manifold community for developing this kernel
12
+ */
9
13
  export declare class CrossSection {
10
14
  shapes: CrossSectionShapes;
11
15
  operations: CrossSectionOperations;
12
- transforms: CrossSectionTransforms;
13
16
  booleans: CrossSectionBooleans;
17
+ transforms: CrossSectionTransforms;
14
18
  evaluate: CrossSectionEvaluate;
15
19
  private manifold;
16
20
  private base;
17
21
  constructor(wasm: Manifold3D.ManifoldToplevel, base: BaseBitByBit);
22
+ /**
23
+ * Creates a cross section from a single polygon points
24
+ * @param inputs polygon points
25
+ * @returns cross section
26
+ * @group create
27
+ * @shortname cross section from points
28
+ * @drawable true
29
+ */
18
30
  crossSectionFromPoints(inputs: Inputs.Manifold.CrossSectionFromPolygonPointsDto): Manifold3D.CrossSection;
31
+ /**
32
+ * Creates a cross section from multiple polygons points
33
+ * @param inputs polygons points
34
+ * @returns cross section
35
+ * @group create
36
+ * @shortname cross section from polygons
37
+ * @drawable true
38
+ */
19
39
  crossSectionFromPolygons(inputs: Inputs.Manifold.CrossSectionFromPolygonsPointsDto): Manifold3D.CrossSection;
40
+ /**
41
+ * Turns cross section into polygons
42
+ * @param inputs cross section
43
+ * @returns polygons
44
+ * @group decompose
45
+ * @shortname cross section to polygons
46
+ * @drawable false
47
+ */
20
48
  crossSectionToPolygons(inputs: Inputs.Manifold.CrossSectionDto<Manifold3D.CrossSection>): Manifold3D.SimplePolygon[];
49
+ /**
50
+ * Extracts points from a cross section
51
+ * @param inputs cross section
52
+ * @returns points
53
+ * @group decompose
54
+ * @shortname cross section to points
55
+ * @drawable false
56
+ */
21
57
  crossSectionToPoints(inputs: Inputs.Manifold.CrossSectionDto<Manifold3D.CrossSection>): Inputs.Base.Point3[][];
58
+ /**
59
+ * Turns cross sections into polygons
60
+ * @param inputs cross sections
61
+ * @returns polygons
62
+ * @group decompose
63
+ * @shortname cross sections to polygons
64
+ * @drawable false
65
+ */
22
66
  crossSectionsToPolygons(inputs: Inputs.Manifold.CrossSectionsDto<Manifold3D.CrossSection>): Manifold3D.SimplePolygon[][];
67
+ /**
68
+ * Extracts points from cross sections
69
+ * @param inputs cross sections
70
+ * @returns points
71
+ * @group decompose
72
+ * @shortname cross sections to points
73
+ * @drawable false
74
+ */
23
75
  crossSectionsToPoints(inputs: Inputs.Manifold.CrossSectionsDto<Manifold3D.CrossSection>): number[][][][];
24
76
  deleteCrossSection(inputs: Inputs.Manifold.CrossSectionDto<Manifold3D.CrossSection>): void;
25
77
  deleteCrossSections(inputs: Inputs.Manifold.CrossSectionsDto<Manifold3D.CrossSection>): void;
@@ -3,19 +3,30 @@ import { CrossSectionOperations } from "./cross-section-operations";
3
3
  import { CrossSectionTransforms } from "./cross-section-transforms";
4
4
  import { CrossSectionBooleans } from "./cross-section-booleans";
5
5
  import { CrossSectionEvaluate } from "./cross-section-evaluate";
6
+ /**
7
+ * Contains various functions for Solid meshes from Manifold library https://github.com/elalish/manifold
8
+ * Thanks Manifold community for developing this kernel
9
+ */
6
10
  export class CrossSection {
7
11
  constructor(wasm, base) {
8
12
  this.manifold = wasm;
9
13
  this.base = base;
10
14
  this.shapes = new CrossSectionShapes(wasm);
11
15
  this.operations = new CrossSectionOperations(wasm);
12
- this.transforms = new CrossSectionTransforms(wasm);
13
16
  this.booleans = new CrossSectionBooleans(wasm);
17
+ this.transforms = new CrossSectionTransforms(wasm);
14
18
  this.evaluate = new CrossSectionEvaluate(wasm);
15
19
  }
20
+ /**
21
+ * Creates a cross section from a single polygon points
22
+ * @param inputs polygon points
23
+ * @returns cross section
24
+ * @group create
25
+ * @shortname cross section from points
26
+ * @drawable true
27
+ */
16
28
  crossSectionFromPoints(inputs) {
17
29
  let points = inputs.points;
18
- // Remove consecutive duplicates if requested
19
30
  if (inputs.removeDuplicates) {
20
31
  points = this.base.point.removeConsecutiveDuplicates({
21
32
  points,
@@ -23,13 +34,19 @@ export class CrossSection {
23
34
  tolerance: inputs.tolerance || 1e-7
24
35
  });
25
36
  }
26
- // Convert Base.Point3[] to SimplePolygon (array of 2D points [x, y])
27
37
  const polygon = points.map(p => [p[0], p[1]]);
28
38
  return this.manifold.CrossSection.ofPolygons([polygon], inputs.fillRule);
29
39
  }
40
+ /**
41
+ * Creates a cross section from multiple polygons points
42
+ * @param inputs polygons points
43
+ * @returns cross section
44
+ * @group create
45
+ * @shortname cross section from polygons
46
+ * @drawable true
47
+ */
30
48
  crossSectionFromPolygons(inputs) {
31
49
  let polygonPoints = inputs.polygonPoints;
32
- // Remove consecutive duplicates from each polygon if requested
33
50
  if (inputs.removeDuplicates) {
34
51
  polygonPoints = polygonPoints.map(polygon => this.base.point.removeConsecutiveDuplicates({
35
52
  points: polygon,
@@ -37,17 +54,40 @@ export class CrossSection {
37
54
  tolerance: inputs.tolerance || 1e-7
38
55
  }));
39
56
  }
40
- // Convert Base.Point3[][] to SimplePolygon[] (array of 2D points [x, y])
41
57
  const polygons = polygonPoints.map(polygon => polygon.map(p => [p[0], p[1]]));
42
58
  return this.manifold.CrossSection.ofPolygons(polygons, inputs.fillRule);
43
59
  }
60
+ /**
61
+ * Turns cross section into polygons
62
+ * @param inputs cross section
63
+ * @returns polygons
64
+ * @group decompose
65
+ * @shortname cross section to polygons
66
+ * @drawable false
67
+ */
44
68
  crossSectionToPolygons(inputs) {
45
69
  return inputs.crossSection.toPolygons();
46
70
  }
71
+ /**
72
+ * Extracts points from a cross section
73
+ * @param inputs cross section
74
+ * @returns points
75
+ * @group decompose
76
+ * @shortname cross section to points
77
+ * @drawable false
78
+ */
47
79
  crossSectionToPoints(inputs) {
48
80
  const polygons = inputs.crossSection.toPolygons();
49
81
  return polygons.map(polygon => polygon.map(point => [point[0], point[1], 0]));
50
82
  }
83
+ /**
84
+ * Turns cross sections into polygons
85
+ * @param inputs cross sections
86
+ * @returns polygons
87
+ * @group decompose
88
+ * @shortname cross sections to polygons
89
+ * @drawable false
90
+ */
51
91
  crossSectionsToPolygons(inputs) {
52
92
  return inputs.crossSections.map((crossSection) => {
53
93
  return this.crossSectionToPolygons({
@@ -55,6 +95,14 @@ export class CrossSection {
55
95
  });
56
96
  });
57
97
  }
98
+ /**
99
+ * Extracts points from cross sections
100
+ * @param inputs cross sections
101
+ * @returns points
102
+ * @group decompose
103
+ * @shortname cross sections to points
104
+ * @drawable false
105
+ */
58
106
  crossSectionsToPoints(inputs) {
59
107
  return inputs.crossSections.map((crossSection) => {
60
108
  return this.crossSectionToPoints({
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,19 +1,129 @@
1
1
  import * as Inputs from "../../inputs/manifold-inputs";
2
2
  import * as Manifold3D from "manifold-3d";
3
+ /**
4
+ * Contains various functions for Solid meshes from Manifold library https://github.com/elalish/manifold
5
+ * Thanks Manifold community for developing this kernel
6
+ */
3
7
  export declare class ManifoldBooleans {
4
8
  private manifold;
5
9
  constructor(wasm: Manifold3D.ManifoldToplevel);
6
- split(inputs: Inputs.Manifold.SplitManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold[];
7
- splitByPlane(inputs: Inputs.Manifold.SplitByPlaneDto<Manifold3D.Manifold>): Manifold3D.Manifold[];
8
- splitByPlaneOnOffsets(inputs: Inputs.Manifold.SplitByPlaneOnOffsetsDto<Manifold3D.Manifold>): Manifold3D.Manifold[];
9
- trimByPlane(inputs: Inputs.Manifold.TrimByPlaneDto<Manifold3D.Manifold>): Manifold3D.Manifold;
10
+ /**
11
+ * Subtract two manifold shapes
12
+ * @param inputs two shapes
13
+ * @returns subtracted manifold shape
14
+ * @group a to b
15
+ * @shortname subtract
16
+ * @drawable true
17
+ */
10
18
  subtract(inputs: Inputs.Manifold.TwoManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
19
+ /**
20
+ * Add two manifold shapes
21
+ * @param inputs two shapes
22
+ * @returns unioned manifold shape
23
+ * @group a to b
24
+ * @shortname add
25
+ * @drawable true
26
+ */
11
27
  add(inputs: Inputs.Manifold.TwoManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
28
+ /**
29
+ * Intersect two manifold shapes
30
+ * @param inputs two shapes
31
+ * @returns intersected manifold shape
32
+ * @group a to b
33
+ * @shortname intersect
34
+ * @drawable true
35
+ */
12
36
  intersect(inputs: Inputs.Manifold.TwoManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
37
+ /**
38
+ * Difference of two manifold shapes
39
+ * @param inputs two shapes
40
+ * @returns difference of two manifold shapes
41
+ * @group 2 manifolds
42
+ * @shortname difference 2 manifolds
43
+ * @drawable true
44
+ */
13
45
  differenceTwo(inputs: Inputs.Manifold.TwoManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
14
- difference(inputs: Inputs.Manifold.ManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
46
+ /**
47
+ * Union of two manifold shapes
48
+ * @param inputs two shapes
49
+ * @returns union of two manifold shapes
50
+ * @group 2 manifolds
51
+ * @shortname union 2 manifolds
52
+ * @drawable true
53
+ */
15
54
  unionTwo(inputs: Inputs.Manifold.TwoManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
16
- union(inputs: Inputs.Manifold.ManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
55
+ /**
56
+ * Intersection of two manifold shapes
57
+ * @param inputs two shapes
58
+ * @returns intersection of two manifold shapes
59
+ * @group 2 manifolds
60
+ * @shortname intersection 2 manifolds
61
+ * @drawable true
62
+ */
17
63
  intersectionTwo(inputs: Inputs.Manifold.TwoManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
64
+ /**
65
+ * Difference of multiple manifold shapes
66
+ * @param inputs multiple shapes
67
+ * @returns difference of two manifold shapes
68
+ * @group multiple
69
+ * @shortname difference manifolds
70
+ * @drawable true
71
+ */
72
+ difference(inputs: Inputs.Manifold.ManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
73
+ /**
74
+ * Union of multiple manifold shapes
75
+ * @param inputs multiple shapes
76
+ * @returns union of two manifold shapes
77
+ * @group multiple
78
+ * @shortname union manifolds
79
+ * @drawable true
80
+ */
81
+ union(inputs: Inputs.Manifold.ManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
82
+ /**
83
+ * Intersection of multiple manifold shapes
84
+ * @param inputs two shapes
85
+ * @returns intersection of multiple manifold shapes
86
+ * @group multiple
87
+ * @shortname intersection manifolds
88
+ * @drawable true
89
+ */
18
90
  intersection(inputs: Inputs.Manifold.ManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold;
91
+ /**
92
+ * Split manifold by another manifold
93
+ * @param inputs manifold to split and manifold cutter
94
+ * @returns split manifold
95
+ * @group split
96
+ * @shortname split
97
+ * @drawable true
98
+ */
99
+ split(inputs: Inputs.Manifold.SplitManifoldsDto<Manifold3D.Manifold>): Manifold3D.Manifold[];
100
+ /**
101
+ * Split manifold by plane
102
+ * @param inputs manifold and plane
103
+ * @returns split manifold
104
+ * @group split
105
+ * @shortname split by plane
106
+ * @drawable true
107
+ */
108
+ splitByPlane(inputs: Inputs.Manifold.SplitByPlaneDto<Manifold3D.Manifold>): Manifold3D.Manifold[];
109
+ /**
110
+ * Split manifold by plane on various offsets. Each cut takes the part below the plane as a
111
+ * finished piece and carries the part above it to the next, larger offset, so a run of n offsets
112
+ * yields n + 1 pieces and accounts for the whole of the solid.
113
+ * @param inputs manifold, plane and the list of offsets
114
+ * @returns splitted manifolds, one more than the offsets given
115
+ * @group split
116
+ * @shortname split by plane on offsets
117
+ * @drawable true
118
+ */
119
+ splitByPlaneOnOffsets(inputs: Inputs.Manifold.SplitByPlaneOnOffsetsDto<Manifold3D.Manifold>): Manifold3D.Manifold[];
120
+ /**
121
+ * Trim manifold by plane
122
+ * @param inputs manifold and plane
123
+ * @returns trimmed manifold
124
+ * @group trim
125
+ * @shortname trim by plane
126
+ * @drawable true
127
+ */
128
+ trimByPlane(inputs: Inputs.Manifold.TrimByPlaneDto<Manifold3D.Manifold>): Manifold3D.Manifold;
19
129
  }