Class: Compound
Defined in: shapes.ts:1430
Extends
_3DShape<TopoDS_Compound>
Constructors
Constructor
new Compound(ocShape): Compound;
Defined in: shapes.ts:215
Parameters
ocShape
TopoDS_Compound
Returns
Compound
Inherited from
Other
boundingBox
Get Signature
get boundingBox(): BoundingBox;
Defined in: shapes.ts:388
Returns
Inherited from
edges
Get Signature
get edges(): Edge[];
Defined in: shapes.ts:376
Returns
Edge[]
Inherited from
faces
Get Signature
get faces(): Face[];
Defined in: shapes.ts:380
Returns
Face[]
Inherited from
hashCode
Get Signature
get hashCode(): number;
Defined in: shapes.ts:228
Returns
number
Inherited from
isNull
Get Signature
get isNull(): boolean;
Defined in: shapes.ts:232
Returns
boolean
Inherited from
wires
Get Signature
get wires(): Wire[];
Defined in: shapes.ts:384
Returns
Wire[]
Inherited from
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
clone()
clone(): this;
Defined in: shapes.ts:219
Returns
this
Inherited from
delete()
delete(): void;
Defined in: register.ts:54
Returns
void
Inherited from
isEqual()
isEqual(other): boolean;
Defined in: shapes.ts:240
Parameters
other
Returns
boolean
Inherited from
isSame()
isSame(other): boolean;
Defined in: shapes.ts:236
Parameters
other
Returns
boolean
Inherited from
meshShape()
meshShape(options?): MeshShape;
Defined in: shapes.ts:1139
Parameters
options?
angularTolerance?
number
tolerance?
number
Returns
Inherited from
serialize()
serialize(): string;
Defined in: shapes.ts:223
Returns
string
Inherited from
simplify()
simplify(): this;
Defined in: shapes.ts:247
Simplifies the shape by removing unnecessary edges and faces
Returns
this
Inherited from
Shape Export
blobSTEP()
blobSTEP(): Blob;
Defined in: shapes.ts:564
Exports the current shape as a STEP file as a Blob
Returns
Blob
Inherited from
blobSTL()
blobSTL(__namedParameters): Blob;
Defined in: shapes.ts:606
Exports the current shape as a STL file as a Blob
In order to create a STL file, the shape needs to be meshed. The tolerances correspond to the values used to mesh the shape.
Parameters
__namedParameters
angularTolerance?
number = 0.1
binary?
boolean = false
tolerance?
number = 1e-3
Returns
Blob
Inherited from
mesh()
mesh(__namedParameters): ShapeMesh;
Defined in: shapes.ts:410
Exports the current shape as a set of triangle. These can be used by threejs for instance to represent the the shape
Parameters
__namedParameters
angularTolerance?
number = 0.1
tolerance?
number = 1e-3
Returns
Inherited from
meshEdges()
meshEdges(__namedParameters): object;
Defined in: shapes.ts:447
Exports the current shape as a set of lines. These can be used by threejs for instance to represent the edges of the shape
Parameters
__namedParameters
angularTolerance?
number = 0.1
tolerance?
number = 1e-3
Returns
object
edgeGroups
edgeGroups: object[];
lines
lines: number[];
Inherited from
Shape Modifications
chamfer()
chamfer(radiusConfig, filter?): Shape3D;
Defined in: shapes.ts:1371
Creates a new shapes with some edges chamfered, as specified in the radius config.
If the radius is a filter finder object (with an EdgeFinder as filter,
and a radius to specifiy the chamfer radius), the fillet will only be
applied to the edges as selected by the finder. The finder will be
deleted unless it is explicitly specified to keep it.
If the radius is a number all the edges will be chamfered.
If the radius is a function edges will be chamfered according to the value returned by the function (0 or null will not add any chamfer).
Parameters
radiusConfig
filter?
(e) => EdgeFinder
Returns
Inherited from
cut()
cut(tool, __namedParameters): Shape3D;
Defined in: shapes.ts:1094
Builds a new shape by removing the tool tape from this shape
Parameters
tool
__namedParameters
optimisation?
"none" | "commonFace" | "sameFace" = "none"
Returns
Inherited from
fillet()
fillet(radiusConfig, filter?): Shape3D;
Defined in: shapes.ts:1318
Creates a new shapes with some edges filletted, as specified in the radius config.
If the radius is a filter finder object (with an EdgeFinder as filter,
and a radius to specifiy the fillet radius), the fillet will only be
applied to the edges as selected by the finder. The finder will be
deleted unless it is explicitly specified to keep it.
If the radius is a number all the edges will be filletted.
If the radius is a function edges will be filletted according to the value returned by the function (0 or null will not add any fillet).
Parameters
radiusConfig
filter?
(e) => EdgeFinder
Returns
Inherited from
fuse()
fuse(other, __namedParameters): Shape3D;
Defined in: shapes.ts:1063
Builds a new shape out of the two, fused, shapes
Parameters
other
__namedParameters
optimisation?
"none" | "commonFace" | "sameFace" = "none"
Returns
Inherited from
intersect()
intersect(tool): Shape3D;
Defined in: shapes.ts:1124
Builds a new shape by intersecting this shape and another
Parameters
tool
Returns
Inherited from
shell()
Call Signature
shell(config, tolerance?): Shape3D;
Defined in: shapes.ts:1191
Hollows out the current shape, removing the faces found by the filter and
keeping a border of thickness
Parameters
config
filter
thickness
number
tolerance?
number
Returns
Inherited from
Call Signature
shell(
thickness,
finderFcn,
tolerance?): Shape3D;
Defined in: shapes.ts:1195
Hollows out the current shape, removing the faces found by the filter and
keeping a border of thickness
Parameters
thickness
number
finderFcn
(f) => FaceFinder
tolerance?
number
Returns
Inherited from
Shape Transformations
mirror()
mirror(inputPlane?, origin?): this;
Defined in: shapes.ts:339
Mirrors the shape through a plane
Parameters
inputPlane?
origin?
Returns
this
Inherited from
rotate()
rotate(
angle,
position,
direction): this;
Defined in: shapes.ts:320
Rotates the shape
Parameters
angle
number
position
Point = ...
direction
Point = ...
Returns
this
Inherited from
scale()
scale(scale, center): this;
Defined in: shapes.ts:355
Returns a scaled version of the shape
Parameters
scale
number
center
Point = ...
Returns
this
Inherited from
translate()
Call Signature
translate(
xDist,
yDist,
zDist): this;
Defined in: shapes.ts:271
Translates the shape of an arbitrary vector
Parameters
xDist
number
yDist
number
zDist
number
Returns
this
Inherited from
Call Signature
translate(vector): this;
Defined in: shapes.ts:272
Translates the shape of an arbitrary vector
Parameters
vector
Returns
this
Inherited from
translateX()
translateX(distance): this;
Defined in: shapes.ts:293
Translates the shape on the X axis
Parameters
distance
number
Returns
this
Inherited from
translateY()
translateY(distance): this;
Defined in: shapes.ts:302
Translates the shape on the Y axis
Parameters
distance
number
Returns
this
Inherited from
translateZ()
translateZ(distance): this;
Defined in: shapes.ts:311
Translates the shape on the Z axis
Parameters
distance
number
Returns
this