Skip to main content

Class: Wire

Hierarchy​

Constructors​

constructor​

β€’ new Wire(ocShape)

Parameters​

NameType
ocShapeTopoDS_Wire

Inherited from​

_1DShape.constructor

Defined in​

shapes.ts:151

Accessors​

boundingBox​

β€’ get boundingBox(): BoundingBox

Returns​

BoundingBox

Inherited from​

_1DShape.boundingBox

Defined in​

shapes.ts:303


curve​

β€’ get curve(): Curve

Returns​

Curve

Inherited from​

_1DShape.curve

Defined in​

shapes.ts:553


edges​

β€’ get edges(): Edge[]

Returns​

Edge[]

Inherited from​

_1DShape.edges

Defined in​

shapes.ts:291


endPoint​

β€’ get endPoint(): Vector

Returns​

Vector

Inherited from​

_1DShape.endPoint

Defined in​

shapes.ts:564


faces​

β€’ get faces(): Face[]

Returns​

Face[]

Inherited from​

_1DShape.faces

Defined in​

shapes.ts:295


geomType​

β€’ get geomType(): CurveType

Returns​

CurveType

Inherited from​

_1DShape.geomType

Defined in​

shapes.ts:600


hashCode​

β€’ get hashCode(): number

Returns​

number

Inherited from​

_1DShape.hashCode

Defined in​

shapes.ts:159


isClosed​

β€’ get isClosed(): boolean

Returns​

boolean

Inherited from​

_1DShape.isClosed

Defined in​

shapes.ts:578


isNull​

β€’ get isNull(): boolean

Returns​

boolean

Inherited from​

_1DShape.isNull

Defined in​

shapes.ts:163


isPeriodic​

β€’ get isPeriodic(): boolean

Returns​

boolean

Inherited from​

_1DShape.isPeriodic

Defined in​

shapes.ts:586


period​

β€’ get period(): number

Returns​

number

Inherited from​

_1DShape.period

Defined in​

shapes.ts:593


repr​

β€’ get repr(): string

Returns​

string

Inherited from​

_1DShape.repr

Defined in​

shapes.ts:545


startPoint​

β€’ get startPoint(): Vector

Returns​

Vector

Inherited from​

_1DShape.startPoint

Defined in​

shapes.ts:557


wires​

β€’ get wires(): Wire[]

Returns​

Wire[]

Inherited from​

_1DShape.wires

Defined in​

shapes.ts:299


wrapped​

β€’ get wrapped(): Type

Returns​

Type

Inherited from​

_1DShape.wrapped

Defined in​

register.ts:39

β€’ set wrapped(newWrapped): void

Parameters​

NameType
newWrappedType

Returns​

void

Inherited from​

_1DShape.wrapped

Defined in​

register.ts:44

Other Methods​

clone​

β–Έ clone(): Wire

Returns​

Wire

Inherited from​

_1DShape.clone

Defined in​

shapes.ts:155


delete​

β–Έ delete(): void

Returns​

void

Inherited from​

_1DShape.delete

Defined in​

register.ts:54


isEqual​

β–Έ isEqual(other): boolean

Parameters​

NameType
otherAnyShape

Returns​

boolean

Inherited from​

_1DShape.isEqual

Defined in​

shapes.ts:171


isSame​

β–Έ isSame(other): boolean

Parameters​

NameType
otherAnyShape

Returns​

boolean

Inherited from​

_1DShape.isSame

Defined in​

shapes.ts:167


offset2D​

β–Έ offset2D(offset, kind?): Wire

Parameters​

NameTypeDefault value
offsetnumberundefined
kind"arc" | "intersection" | "tangent""arc"

Returns​

Wire

Defined in​

shapes.ts:686


simplify​

β–Έ simplify(): Wire

Returns​

Wire

Inherited from​

_1DShape.simplify

Defined in​

shapes.ts:178


tangentAt​

β–Έ tangentAt(position?): Vector

Parameters​

NameTypeDefault value
positionnumber0

Returns​

Vector

Inherited from​

_1DShape.tangentAt

Defined in​

shapes.ts:571


Shape Export Methods​

blobSTEP​

β–Έ blobSTEP(): Blob

Returns​

Blob

Inherited from​

_1DShape.blobSTEP

Defined in​

shapes.ts:479


blobSTL​

β–Έ blobSTL(__namedParameters?): Blob

Parameters​

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

Returns​

Blob

Inherited from​

_1DShape.blobSTL

Defined in​

shapes.ts:518


mesh​

β–Έ mesh(__namedParameters?): ShapeMesh

Parameters​

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

Returns​

ShapeMesh

Inherited from​

_1DShape.mesh

Defined in​

shapes.ts:325


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​

_1DShape.meshEdges

Defined in​

shapes.ts:362


Shape Transformations Methods​

mirror​

β–Έ mirror(inputPlane, origin): Wire

Parameters​

NameType
inputPlanePlane | PlaneName | Point
originPoint

Returns​

Wire

Inherited from​

_1DShape.mirror

Defined in​

shapes.ts:258


rotate​

β–Έ rotate(angle, position?, direction?): Wire

Parameters​

NameType
anglenumber
positionPoint
directionPoint

Returns​

Wire

Inherited from​

_1DShape.rotate

Defined in​

shapes.ts:241


scale​

β–Έ scale(scale, center?): Wire

Parameters​

NameType
scalenumber
centerPoint

Returns​

Wire

Inherited from​

_1DShape.scale

Defined in​

shapes.ts:272


translate​

β–Έ translate(vector): Wire

Parameters​

NameType
vectorPoint

Returns​

Wire

Inherited from​

_1DShape.translate

Defined in​

shapes.ts:200


translateX​

β–Έ translateX(distance): Wire

Parameters​

NameType
distancenumber

Returns​

Wire

Inherited from​

_1DShape.translateX

Defined in​

shapes.ts:214


translateY​

β–Έ translateY(distance): Wire

Parameters​

NameType
distancenumber

Returns​

Wire

Inherited from​

_1DShape.translateY

Defined in​

shapes.ts:223


translateZ​

β–Έ translateZ(distance): Wire

Parameters​

NameType
distancenumber

Returns​

Wire

Inherited from​

_1DShape.translateZ

Defined in​

shapes.ts:232