Skip to main content

Class: MeshShape

Defined in: meshShapes.ts:60

Extends

Implements

Constructors

Constructor

new MeshShape(manifoldShape): MeshShape;

Defined in: meshShapes.ts:64

Parameters

manifoldShape

Manifold

Returns

MeshShape

Overrides

WrappingObj.constructor

Other

boundingBox

Get Signature

get boundingBox(): BoundingBox;

Defined in: meshShapes.ts:211

Returns

BoundingBox

Implementation of

Shape3DLike.boundingBox


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

WrappingObj.wrapped


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

Shape3DLike.cut


delete()

delete(): void;

Defined in: register.ts:54

Returns

void

Inherited from

WrappingObj.delete


fuse()

fuse(other, _options?): MeshShape;

Defined in: meshShapes.ts:79

Parameters

other

MeshShape

_options?

any

Returns

MeshShape

Implementation of

Shape3DLike.fuse


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

Shape3DLike.intersect


mesh()

mesh(): MeshShapeMesh;

Defined in: meshShapes.ts:174

Returns

MeshShapeMesh

Implementation of

Shape3DLike.mesh


mirror()

mirror(inputPlane?, origin?): MeshShape;

Defined in: meshShapes.ts:142

Parameters

inputPlane?

Point | Plane | PlaneName

origin?

Point

Returns

MeshShape

Implementation of

Shape3DLike.mirror


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?

Point

direction?

Point

Returns

MeshShape

Implementation of

Shape3DLike.rotate

Call Signature

rotate(vector): MeshShape;

Defined in: meshShapes.ts:118

Parameters
vector

Point

Returns

MeshShape

Implementation of
Shape3DLike.rotate

scale()

scale(scale, center?): MeshShape;

Defined in: meshShapes.ts:135

Parameters

scale

number

center?

Point

Returns

MeshShape

Implementation of

Shape3DLike.scale


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

Shape3DLike.translate

Call Signature

translate(vector): MeshShape;

Defined in: meshShapes.ts:95

Parameters
vector

Point

Returns

MeshShape

Implementation of

Shape3DLike.translate


translateX()

translateX(distance): MeshShape;

Defined in: meshShapes.ts:105

Parameters

distance

number

Returns

MeshShape

Implementation of

Shape3DLike.translateX


translateY()

translateY(distance): MeshShape;

Defined in: meshShapes.ts:109

Parameters

distance

number

Returns

MeshShape

Implementation of

Shape3DLike.translateY


translateZ()

translateZ(distance): MeshShape;

Defined in: meshShapes.ts:113

Parameters

distance

number

Returns

MeshShape

Implementation of

Shape3DLike.translateZ


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