Class: MeshShape
Defined in: meshShapes.ts:61
Extends
Implements
Shape3DLike<MeshShape,MeshShapeMesh,MeshShape,number>
Constructors
Constructor
new MeshShape(manifoldShape): MeshShape;
Defined in: meshShapes.ts:65
Parameters
manifoldShape
Manifold
Returns
MeshShape
Overrides
Other
boundingBox
Get Signature
get boundingBox(): BoundingBox;
Defined in: meshShapes.ts:216
Returns
Implementation of
isEmpty
Get Signature
get isEmpty(): boolean;
Defined in: meshShapes.ts:244
Returns
boolean
wrapped
Get Signature
get wrapped(): Type;
Defined in: register.ts:41
Returns
Type
Set Signature
set wrapped(newWrapped): void;
Defined in: register.ts:46
Parameters
newWrapped
Type
Returns
void
Inherited from
asOriginal()
asOriginal(): MeshShape;
Defined in: meshShapes.ts:175
Returns
MeshShape
clone()
clone(): MeshShape;
Defined in: meshShapes.ts:73
Returns
MeshShape
cut()
cut(other, _options?): MeshShape;
Defined in: meshShapes.ts:85
Parameters
other
MeshShape
_options?
any
Returns
MeshShape
Implementation of
delete()
delete(): void;
Defined in: register.ts:58
Returns
void
Inherited from
fuse()
fuse(other, _options?): MeshShape;
Defined in: meshShapes.ts:80
Parameters
other
MeshShape
_options?
any
Returns
MeshShape
Implementation of
hull()
hull(): MeshShape;
Defined in: meshShapes.ts:171
Returns
MeshShape
intersect()
intersect(other): MeshShape;
Defined in: meshShapes.ts:90
Parameters
other
MeshShape
Returns
MeshShape
Implementation of
mesh()
mesh(): MeshShapeMesh;
Defined in: meshShapes.ts:179
Returns
Implementation of
mirror()
mirror(inputPlane?, origin?): MeshShape;
Defined in: meshShapes.ts:147
Parameters
inputPlane?
origin?
Returns
MeshShape
Implementation of
numEdge()
numEdge(): number;
Defined in: meshShapes.ts:240
Returns
number
numTri()
numTri(): number;
Defined in: meshShapes.ts:232
Returns
number
numVert()
numVert(): number;
Defined in: meshShapes.ts:236
Returns
number
refine()
refine(n): MeshShape;
Defined in: meshShapes.ts:159
Parameters
n
number
Returns
MeshShape
refineToLength()
refineToLength(length): MeshShape;
Defined in: meshShapes.ts:163
Parameters
length
number
Returns
MeshShape
refineToTolerance()
refineToTolerance(tolerance): MeshShape;
Defined in: meshShapes.ts:167
Parameters
tolerance
number
Returns
MeshShape
rotate()
Call Signature
rotate(
angle,
position?,
direction?): MeshShape;
Defined in: meshShapes.ts:118
Parameters
angle
number
position?
direction?
Returns
MeshShape
Implementation of
Call Signature
rotate(vector): MeshShape;
Defined in: meshShapes.ts:123
Parameters
vector
Returns
MeshShape
Implementation of
Shape3DLike.rotate
scale()
scale(scale, center?): MeshShape;
Defined in: meshShapes.ts:140
Parameters
scale
number
center?
Returns
MeshShape
Implementation of
simplify()
simplify(tolerance?): MeshShape;
Defined in: meshShapes.ts:154
Parameters
tolerance?
number
Returns
MeshShape
surfaceArea()
surfaceArea(): number;
Defined in: meshShapes.ts:228
Returns
number
translate()
Call Signature
translate(
xDist,
yDist,
zDist): MeshShape;
Defined in: meshShapes.ts:95
Parameters
xDist
number
yDist
number
zDist
number
Returns
MeshShape
Implementation of
Call Signature
translate(vector): MeshShape;
Defined in: meshShapes.ts:96
Parameters
vector
Returns
MeshShape
Implementation of
translateX()
translateX(distance): MeshShape;
Defined in: meshShapes.ts:106
Parameters
distance
number
Returns
MeshShape
Implementation of
translateY()
translateY(distance): MeshShape;
Defined in: meshShapes.ts:110
Parameters
distance
number
Returns
MeshShape
Implementation of
translateZ()
translateZ(distance): MeshShape;
Defined in: meshShapes.ts:114
Parameters
distance
number
Returns
MeshShape
Implementation of
volume()
volume(): number;
Defined in: meshShapes.ts:224
Returns
number
Shape Export
blobSTL()
blobSTL(__namedParameters?): Blob;
Defined in: meshShapes.ts:257
Exports the mesh shape as an STL file Blob.
Since MeshShape is already a triangle mesh, no tessellation parameters are needed (tolerance/angularTolerance are accepted but ignored for API compatibility).
Parameters
__namedParameters?
binary?
boolean = false
Returns
Blob