Class: MeshShape
Defined in: meshShapes.ts:60
Extends
Implements
Shape3DLike<MeshShape,MeshShapeMesh,MeshShape,number>
Constructors
Constructor
new MeshShape(manifoldShape): MeshShape;
Defined in: meshShapes.ts:64
Parameters
manifoldShape
Manifold
Returns
MeshShape
Overrides
Other
boundingBox
Get Signature
get boundingBox(): BoundingBox;
Defined in: meshShapes.ts:211
Returns
Implementation of
isEmpty
Get Signature
get isEmpty(): boolean;
Defined in: meshShapes.ts:239
Returns
boolean
wrapped
Get Signature
get wrapped(): Type;
Defined in: register.ts:39
Returns
Type
Set Signature
set wrapped(newWrapped): void;
Defined in: register.ts:44
Parameters
newWrapped
Type
Returns
void
Inherited from
asOriginal()
asOriginal(): MeshShape;
Defined in: meshShapes.ts:170
Returns
MeshShape
clone()
clone(): MeshShape;
Defined in: meshShapes.ts:72
Returns
MeshShape
cut()
cut(other, _options?): MeshShape;
Defined in: meshShapes.ts:84
Parameters
other
MeshShape
_options?
any
Returns
MeshShape
Implementation of
delete()
delete(): void;
Defined in: register.ts:54
Returns
void
Inherited from
fuse()
fuse(other, _options?): MeshShape;
Defined in: meshShapes.ts:79
Parameters
other
MeshShape
_options?
any
Returns
MeshShape
Implementation of
hull()
hull(): MeshShape;
Defined in: meshShapes.ts:166
Returns
MeshShape
intersect()
intersect(other): MeshShape;
Defined in: meshShapes.ts:89
Parameters
other
MeshShape
Returns
MeshShape
Implementation of
mesh()
mesh(): MeshShapeMesh;
Defined in: meshShapes.ts:174
Returns
Implementation of
mirror()
mirror(inputPlane?, origin?): MeshShape;
Defined in: meshShapes.ts:142
Parameters
inputPlane?
origin?
Returns
MeshShape
Implementation of
numEdge()
numEdge(): number;
Defined in: meshShapes.ts:235
Returns
number
numTri()
numTri(): number;
Defined in: meshShapes.ts:227
Returns
number
numVert()
numVert(): number;
Defined in: meshShapes.ts:231
Returns
number
refine()
refine(n): MeshShape;
Defined in: meshShapes.ts:154
Parameters
n
number
Returns
MeshShape
refineToLength()
refineToLength(length): MeshShape;
Defined in: meshShapes.ts:158
Parameters
length
number
Returns
MeshShape
refineToTolerance()
refineToTolerance(tolerance): MeshShape;
Defined in: meshShapes.ts:162
Parameters
tolerance
number
Returns
MeshShape
rotate()
Call Signature
rotate(
angle,
position?,
direction?): MeshShape;
Defined in: meshShapes.ts:117
Parameters
angle
number
position?
direction?
Returns
MeshShape
Implementation of
Call Signature
rotate(vector): MeshShape;
Defined in: meshShapes.ts:118
Parameters
vector
Returns
MeshShape
Implementation of
Shape3DLike.rotate
scale()
scale(scale, center?): MeshShape;
Defined in: meshShapes.ts:135
Parameters
scale
number
center?
Returns
MeshShape
Implementation of
simplify()
simplify(tolerance?): MeshShape;
Defined in: meshShapes.ts:149
Parameters
tolerance?
number
Returns
MeshShape
surfaceArea()
surfaceArea(): number;
Defined in: meshShapes.ts:223
Returns
number
translate()
Call Signature
translate(
xDist,
yDist,
zDist): MeshShape;
Defined in: meshShapes.ts:94
Parameters
xDist
number
yDist
number
zDist
number
Returns
MeshShape
Implementation of
Call Signature
translate(vector): MeshShape;
Defined in: meshShapes.ts:95
Parameters
vector
Returns
MeshShape
Implementation of
translateX()
translateX(distance): MeshShape;
Defined in: meshShapes.ts:105
Parameters
distance
number
Returns
MeshShape
Implementation of
translateY()
translateY(distance): MeshShape;
Defined in: meshShapes.ts:109
Parameters
distance
number
Returns
MeshShape
Implementation of
translateZ()
translateZ(distance): MeshShape;
Defined in: meshShapes.ts:113
Parameters
distance
number
Returns
MeshShape
Implementation of
volume()
volume(): number;
Defined in: meshShapes.ts:219
Returns
number
Shape Export
blobSTL()
blobSTL(__namedParameters): Blob;
Defined in: meshShapes.ts:252
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