Skip to main content

Class: CompSolid

Hierarchy

Constructors

constructor

new CompSolid(ocShape)

Parameters

NameType
ocShapeTopoDS_CompSolid

Inherited from

_3DShape.constructor

Defined in

shapes.ts:151

Accessors

boundingBox

get boundingBox(): BoundingBox

Returns

BoundingBox

Inherited from

_3DShape.boundingBox

Defined in

shapes.ts:309


edges

get edges(): Edge[]

Returns

Edge[]

Inherited from

_3DShape.edges

Defined in

shapes.ts:297


faces

get faces(): Face[]

Returns

Face[]

Inherited from

_3DShape.faces

Defined in

shapes.ts:301


hashCode

get hashCode(): number

Returns

number

Inherited from

_3DShape.hashCode

Defined in

shapes.ts:159


isNull

get isNull(): boolean

Returns

boolean

Inherited from

_3DShape.isNull

Defined in

shapes.ts:163


wires

get wires(): Wire[]

Returns

Wire[]

Inherited from

_3DShape.wires

Defined in

shapes.ts:305


wrapped

get wrapped(): Type

Returns

Type

Inherited from

_3DShape.wrapped

Defined in

register.ts:39

set wrapped(newWrapped): void

Parameters

NameType
newWrappedType

Returns

void

Inherited from

_3DShape.wrapped

Defined in

register.ts:44

Other Methods

clone

clone(): CompSolid

Returns

CompSolid

Inherited from

_3DShape.clone

Defined in

shapes.ts:155


delete

delete(): void

Returns

void

Inherited from

_3DShape.delete

Defined in

register.ts:54


isEqual

isEqual(other): boolean

Parameters

NameType
otherAnyShape

Returns

boolean

Inherited from

_3DShape.isEqual

Defined in

shapes.ts:171


isSame

isSame(other): boolean

Parameters

NameType
otherAnyShape

Returns

boolean

Inherited from

_3DShape.isSame

Defined in

shapes.ts:167


simplify

simplify(): CompSolid

Returns

CompSolid

Inherited from

_3DShape.simplify

Defined in

shapes.ts:178


Shape Export Methods

blobSTEP

blobSTEP(): Blob

Returns

Blob

Inherited from

_3DShape.blobSTEP

Defined in

shapes.ts:485


blobSTL

blobSTL(__namedParameters?): Blob

Parameters

NameType
__namedParametersObject
__namedParameters.angularToleranceundefined | number
__namedParameters.toleranceundefined | number

Returns

Blob

Inherited from

_3DShape.blobSTL

Defined in

shapes.ts:524


mesh

mesh(__namedParameters?): ShapeMesh

Parameters

NameType
__namedParametersObject
__namedParameters.angularToleranceundefined | number
__namedParameters.toleranceundefined | number

Returns

ShapeMesh

Inherited from

_3DShape.mesh

Defined in

shapes.ts:331


meshEdges

meshEdges(__namedParameters?): Object

Parameters

NameType
__namedParametersObject
__namedParameters.angularToleranceundefined | number
__namedParameters.toleranceundefined | number

Returns

Object

NameType
edgeGroups{ count: number ; edgeId: number ; start: number }[]
linesnumber[]

Inherited from

_3DShape.meshEdges

Defined in

shapes.ts:368


Shape Modifications Methods

chamfer

chamfer(radiusConfig, filter?): Shape3D

Parameters

NameType
radiusConfigRadiusConfig
filter?(e: EdgeFinder) => EdgeFinder

Returns

Shape3D

Inherited from

_3DShape.chamfer

Defined in

shapes.ts:1210


cut

cut(tool, __namedParameters?): Shape3D

Parameters

NameType
toolShape3D
__namedParametersObject
__namedParameters.optimisation?"none" | "commonFace" | "sameFace"

Returns

Shape3D

Inherited from

_3DShape.cut

Defined in

shapes.ts:986


fillet

fillet(radiusConfig, filter?): Shape3D

Parameters

NameType
radiusConfigRadiusConfig
filter?(e: EdgeFinder) => EdgeFinder

Returns

Shape3D

Inherited from

_3DShape.fillet

Defined in

shapes.ts:1163


fuse

fuse(other, __namedParameters?): Shape3D

Parameters

NameType
otherShape3D
__namedParametersObject
__namedParameters.optimisation?"none" | "commonFace" | "sameFace"

Returns

Shape3D

Inherited from

_3DShape.fuse

Defined in

shapes.ts:955


intersect

intersect(tool): AnyShape

Parameters

NameType
toolAnyShape

Returns

AnyShape

Inherited from

_3DShape.intersect

Defined in

shapes.ts:1016


shell

shell(config, tolerance?): Shape3D

Parameters

NameType
configObject
config.filterFaceFinder
config.thicknessnumber
tolerance?number

Returns

Shape3D

Inherited from

_3DShape.shell

Defined in

shapes.ts:1037

shell(thickness, finderFcn, tolerance?): Shape3D

Parameters

NameType
thicknessnumber
finderFcn(f: FaceFinder) => FaceFinder
tolerance?number

Returns

Shape3D

Inherited from

_3DShape.shell

Defined in

shapes.ts:1041


Shape Transformations Methods

mirror

mirror(inputPlane, origin): CompSolid

Parameters

NameType
inputPlanePlane | PlaneName | Point
originPoint

Returns

CompSolid

Inherited from

_3DShape.mirror

Defined in

shapes.ts:264


rotate

rotate(angle, position?, direction?): CompSolid

Parameters

NameType
anglenumber
positionPoint
directionPoint

Returns

CompSolid

Inherited from

_3DShape.rotate

Defined in

shapes.ts:247


scale

scale(scale, center?): CompSolid

Parameters

NameType
scalenumber
centerPoint

Returns

CompSolid

Inherited from

_3DShape.scale

Defined in

shapes.ts:278


translate

translate(xDist, yDist, zDist): CompSolid

Parameters

NameType
xDistnumber
yDistnumber
zDistnumber

Returns

CompSolid

Inherited from

_3DShape.translate

Defined in

shapes.ts:200

translate(vector): CompSolid

Parameters

NameType
vectorPoint

Returns

CompSolid

Inherited from

_3DShape.translate

Defined in

shapes.ts:201


translateX

translateX(distance): CompSolid

Parameters

NameType
distancenumber

Returns

CompSolid

Inherited from

_3DShape.translateX

Defined in

shapes.ts:220


translateY

translateY(distance): CompSolid

Parameters

NameType
distancenumber

Returns

CompSolid

Inherited from

_3DShape.translateY

Defined in

shapes.ts:229


translateZ

translateZ(distance): CompSolid

Parameters

NameType
distancenumber

Returns

CompSolid

Inherited from

_3DShape.translateZ

Defined in

shapes.ts:238