Skip to main content

Class: MeshShape

Defined in: meshShapes.ts:61

Extends

Implements

Constructors

Constructor

new MeshShape(manifoldShape): MeshShape;

Defined in: meshShapes.ts:65

Parameters

manifoldShape

Manifold

Returns

MeshShape

Overrides

WrappingObj.constructor

Other

boundingBox

Get Signature

get boundingBox(): BoundingBox;

Defined in: meshShapes.ts:216

Returns

BoundingBox

Implementation of

Shape3DLike.boundingBox


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

WrappingObj.wrapped


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

Shape3DLike.cut


delete()

delete(): void;

Defined in: register.ts:58

Returns

void

Inherited from

WrappingObj.delete


fuse()

fuse(other, _options?): MeshShape;

Defined in: meshShapes.ts:80

Parameters

other

MeshShape

_options?

any

Returns

MeshShape

Implementation of

Shape3DLike.fuse


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

Shape3DLike.intersect


mesh()

mesh(): MeshShapeMesh;

Defined in: meshShapes.ts:179

Returns

MeshShapeMesh

Implementation of

Shape3DLike.mesh


mirror()

mirror(inputPlane?, origin?): MeshShape;

Defined in: meshShapes.ts:147

Parameters

inputPlane?

| Point | Plane | PlaneName

origin?

Point

Returns

MeshShape

Implementation of

Shape3DLike.mirror


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?

Point

direction?

Direction

Returns

MeshShape

Implementation of

Shape3DLike.rotate

Call Signature

rotate(vector): MeshShape;

Defined in: meshShapes.ts:123

Parameters
vector

Point

Returns

MeshShape

Implementation of
Shape3DLike.rotate

scale()

scale(scale, center?): MeshShape;

Defined in: meshShapes.ts:140

Parameters

scale

number

center?

Point

Returns

MeshShape

Implementation of

Shape3DLike.scale


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

Shape3DLike.translate

Call Signature

translate(vector): MeshShape;

Defined in: meshShapes.ts:96

Parameters
vector

Point

Returns

MeshShape

Implementation of

Shape3DLike.translate


translateX()

translateX(distance): MeshShape;

Defined in: meshShapes.ts:106

Parameters

distance

number

Returns

MeshShape

Implementation of

Shape3DLike.translateX


translateY()

translateY(distance): MeshShape;

Defined in: meshShapes.ts:110

Parameters

distance

number

Returns

MeshShape

Implementation of

Shape3DLike.translateY


translateZ()

translateZ(distance): MeshShape;

Defined in: meshShapes.ts:114

Parameters

distance

number

Returns

MeshShape

Implementation of

Shape3DLike.translateZ


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