KTopoFace
kds-plugin-document / Exports / KTopoFace
Interface: KTopoFace
The KTopoFace class represents a BRep face. You may think a face is a patch of a surface with boundary edges.
Hierarchy
↳
KTopoFace
↳↳
KFace
Table of contents
Methods
- area
- getEdges
- getHalfEdges
- getInnerLoops
- getKey
- getOuterLoop
- getShell
- getSurface
- getType
- getVertices
- isReversed
Methods
area
▸ area(): number
Retrieve the area of a face.
Returns
number
The area of a face in square millimeters.
Defined in
api.d.ts:155
getEdges
▸ getEdges(): KTopoEdge
[]
Retrieve all the involved edges of this face.
Returns
The array of edges.
Defined in
api.d.ts:124
getHalfEdges
▸ getHalfEdges(): KTopoHalfEdge
[]
Retrieve all the involved half edges of this face.
Returns
The array of half edges.
Defined in
api.d.ts:134
getInnerLoops
▸ getInnerLoops(): KTopoLoop
[]
Retrieve face's inner loops.
Returns
The inner loops.
Defined in
api.d.ts:144
getKey
▸ getKey(): string
Get a unique key assigned to a face.
Returns
string
The unique key.
Defined in
api.d.ts:114
getOuterLoop
▸ getOuterLoop(): KTopoLoop
Retrieve face's outer loop.
Returns
The outer loop if successful, otherwise null.
Defined in
api.d.ts:139
getShell
▸ getShell(): KTopoShell
Get the shell that the face belongs to.
Returns
The shell if successful, otherwise null.
Defined in
api.d.ts:119
getSurface
▸ getSurface(): KSurface
Retrieve the surface that the face is on. NOTE: Now it is always the plane.
Returns
The surface if successful, otherwise null.
Defined in
api.d.ts:150
getType
▸ getType(): KTopoType
Get the entity's type.
Returns
The entity's type.
Inherited from
Defined in
api.d.ts:102
getVertices
▸ getVertices(): KTopoVertex
[]
Retrieve all the involved vertices of this face.
Returns
The array of vertices.
Defined in
api.d.ts:129
isReversed
▸ isReversed(): boolean
Check whether the face is reversed to its underlying surface.
Returns
boolean
true if reversed, false if the orientations are same.
Defined in
api.d.ts:160