Skip to main content

Class: Face

Hierarchy​

  • Shape<TopoDS_Face>

    ↳ Face

Constructors​

constructor​

β€’ new Face(ocShape)

Parameters​

NameType
ocShapeTopoDS_Face

Inherited from​

Shape.constructor

Defined in​

shapes.ts:151

Accessors​

UVBounds​

β€’ get UVBounds(): Object

Returns​

Object

NameType
uMaxnumber
uMinnumber
vMaxnumber
vMinnumber

Defined in​

shapes.ts:776


boundingBox​

β€’ get boundingBox(): BoundingBox

Returns​

BoundingBox

Inherited from​

Shape.boundingBox

Defined in​

shapes.ts:309


center​

β€’ get center(): Vector

Returns​

Vector

Defined in​

shapes.ts:849


edges​

β€’ get edges(): Edge[]

Returns​

Edge[]

Inherited from​

Shape.edges

Defined in​

shapes.ts:297


faces​

β€’ get faces(): Face[]

Returns​

Face[]

Inherited from​

Shape.faces

Defined in​

shapes.ts:301


geomType​

β€’ get geomType(): SurfaceType

Returns​

SurfaceType

Defined in​

shapes.ts:769


hashCode​

β€’ get hashCode(): number

Returns​

number

Inherited from​

Shape.hashCode

Defined in​

shapes.ts:159


isNull​

β€’ get isNull(): boolean

Returns​

boolean

Inherited from​

Shape.isNull

Defined in​

shapes.ts:163


orientation​

β€’ get orientation(): "forward" | "backward"

Returns​

"forward" | "backward"

Defined in​

shapes.ts:763


surface​

β€’ get surface(): Surface

Returns​

Surface

Defined in​

shapes.ts:759


wires​

β€’ get wires(): Wire[]

Returns​

Wire[]

Inherited from​

Shape.wires

Defined in​

shapes.ts:305


wrapped​

β€’ get wrapped(): Type

Returns​

Type

Inherited from​

Shape.wrapped

Defined in​

register.ts:39

β€’ set wrapped(newWrapped): void

Parameters​

NameType
newWrappedType

Returns​

void

Inherited from​

Shape.wrapped

Defined in​

register.ts:44

Other Methods​

clone​

β–Έ clone(): Face

Returns​

Face

Inherited from​

Shape.clone

Defined in​

shapes.ts:155


delete​

β–Έ delete(): void

Returns​

void

Inherited from​

Shape.delete

Defined in​

register.ts:54


innerWires​

β–Έ innerWires(): Wire[]

Returns​

Wire[]

Defined in​

shapes.ts:864


isEqual​

β–Έ isEqual(other): boolean

Parameters​

NameType
otherAnyShape

Returns​

boolean

Inherited from​

Shape.isEqual

Defined in​

shapes.ts:171


isSame​

β–Έ isSame(other): boolean

Parameters​

NameType
otherAnyShape

Returns​

boolean

Inherited from​

Shape.isSame

Defined in​

shapes.ts:167


normalAt​

β–Έ normalAt(locationVector?): Vector

Parameters​

NameType
locationVector?Point

Returns​

Vector

Defined in​

shapes.ts:809


outerWire​

β–Έ outerWire(): Wire

Returns​

Wire

Defined in​

shapes.ts:858


pointOnSurface​

β–Έ pointOnSurface(u, v): Vector

Parameters​

NameType
unumber
vnumber

Returns​

Vector

Defined in​

shapes.ts:793


simplify​

β–Έ simplify(): Face

Returns​

Face

Inherited from​

Shape.simplify

Defined in​

shapes.ts:178


triangulation​

β–Έ triangulation(index0?): null | FaceTriangulation

Parameters​

NameTypeDefault value
index0number0

Returns​

null | FaceTriangulation

Defined in​

shapes.ts:875


Shape Export Methods​

blobSTEP​

β–Έ blobSTEP(): Blob

Returns​

Blob

Inherited from​

Shape.blobSTEP

Defined in​

shapes.ts:485


blobSTL​

β–Έ blobSTL(__namedParameters?): Blob

Parameters​

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

Returns​

Blob

Inherited from​

Shape.blobSTL

Defined in​

shapes.ts:524


mesh​

β–Έ mesh(__namedParameters?): ShapeMesh

Parameters​

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

Returns​

ShapeMesh

Inherited from​

Shape.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​

Shape.meshEdges

Defined in​

shapes.ts:368


Shape Transformations Methods​

mirror​

β–Έ mirror(inputPlane, origin): Face

Parameters​

NameType
inputPlanePlane | PlaneName | Point
originPoint

Returns​

Face

Inherited from​

Shape.mirror

Defined in​

shapes.ts:264


rotate​

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

Parameters​

NameType
anglenumber
positionPoint
directionPoint

Returns​

Face

Inherited from​

Shape.rotate

Defined in​

shapes.ts:247


scale​

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

Parameters​

NameType
scalenumber
centerPoint

Returns​

Face

Inherited from​

Shape.scale

Defined in​

shapes.ts:278


translate​

β–Έ translate(xDist, yDist, zDist): Face

Parameters​

NameType
xDistnumber
yDistnumber
zDistnumber

Returns​

Face

Inherited from​

Shape.translate

Defined in​

shapes.ts:200

β–Έ translate(vector): Face

Parameters​

NameType
vectorPoint

Returns​

Face

Inherited from​

Shape.translate

Defined in​

shapes.ts:201


translateX​

β–Έ translateX(distance): Face

Parameters​

NameType
distancenumber

Returns​

Face

Inherited from​

Shape.translateX

Defined in​

shapes.ts:220


translateY​

β–Έ translateY(distance): Face

Parameters​

NameType
distancenumber

Returns​

Face

Inherited from​

Shape.translateY

Defined in​

shapes.ts:229


translateZ​

β–Έ translateZ(distance): Face

Parameters​

NameType
distancenumber

Returns​

Face

Inherited from​

Shape.translateZ

Defined in​

shapes.ts:238