Skip to main content

Class: Shape<Type>

Type parameters

NameType
Typeextends TopoDS_Shape

Hierarchy

Constructors

constructor

new Shape<Type>(ocShape)

Type parameters

NameType
Typeextends TopoDS_Shape<Type>

Parameters

NameType
ocShapeType

Overrides

WrappingObj.constructor

Defined in

shapes.ts:151

Accessors

boundingBox

get boundingBox(): BoundingBox

Returns

BoundingBox

Defined in

shapes.ts:309


edges

get edges(): Edge[]

Returns

Edge[]

Defined in

shapes.ts:297


faces

get faces(): Face[]

Returns

Face[]

Defined in

shapes.ts:301


hashCode

get hashCode(): number

Returns

number

Defined in

shapes.ts:159


isNull

get isNull(): boolean

Returns

boolean

Defined in

shapes.ts:163


wires

get wires(): Wire[]

Returns

Wire[]

Defined in

shapes.ts:305


wrapped

get wrapped(): Type

Returns

Type

Inherited from

WrappingObj.wrapped

Defined in

register.ts:39

set wrapped(newWrapped): void

Parameters

NameType
newWrappedType

Returns

void

Inherited from

WrappingObj.wrapped

Defined in

register.ts:44

Other Methods

clone

clone(): Shape<Type>

Returns

Shape<Type>

Defined in

shapes.ts:155


delete

delete(): void

Returns

void

Inherited from

WrappingObj.delete

Defined in

register.ts:54


isEqual

isEqual(other): boolean

Parameters

NameType
otherAnyShape

Returns

boolean

Defined in

shapes.ts:171


isSame

isSame(other): boolean

Parameters

NameType
otherAnyShape

Returns

boolean

Defined in

shapes.ts:167


simplify

simplify(): Shape<Type>

Returns

Shape<Type>

Defined in

shapes.ts:178


Shape Export Methods

blobSTEP

blobSTEP(): Blob

Returns

Blob

Defined in

shapes.ts:485


blobSTL

blobSTL(__namedParameters?): Blob

Parameters

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

Returns

Blob

Defined in

shapes.ts:524


mesh

mesh(__namedParameters?): ShapeMesh

Parameters

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

Returns

ShapeMesh

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[]

Defined in

shapes.ts:368


Shape Transformations Methods

mirror

mirror(inputPlane, origin): Shape<Type>

Parameters

NameType
inputPlanePlane | PlaneName | Point
originPoint

Returns

Shape<Type>

Defined in

shapes.ts:264


rotate

rotate(angle, position?, direction?): Shape<Type>

Parameters

NameType
anglenumber
positionPoint
directionPoint

Returns

Shape<Type>

Defined in

shapes.ts:247


scale

scale(scale, center?): Shape<Type>

Parameters

NameType
scalenumber
centerPoint

Returns

Shape<Type>

Defined in

shapes.ts:278


translate

translate(xDist, yDist, zDist): Shape<Type>

Parameters

NameType
xDistnumber
yDistnumber
zDistnumber

Returns

Shape<Type>

Defined in

shapes.ts:200

translate(vector): Shape<Type>

Parameters

NameType
vectorPoint

Returns

Shape<Type>

Defined in

shapes.ts:201


translateX

translateX(distance): Shape<Type>

Parameters

NameType
distancenumber

Returns

Shape<Type>

Defined in

shapes.ts:220


translateY

translateY(distance): Shape<Type>

Parameters

NameType
distancenumber

Returns

Shape<Type>

Defined in

shapes.ts:229


translateZ

translateZ(distance): Shape<Type>

Parameters

NameType
distancenumber

Returns

Shape<Type>

Defined in

shapes.ts:238