Face
Hierarchy
Shape
<TopoDS_Face
>↳
Face
Constructors
constructor
• new Face(ocShape
)
Parameters
Name | Type |
---|---|
ocShape | TopoDS_Face |
Inherited from
Defined in
Accessors
UVBounds
• get
UVBounds(): Object
Returns
Object
Name | Type |
---|---|
uMax | number |
uMin | number |
vMax | number |
vMin | number |
Defined in
boundingBox
• get
boundingBox(): BoundingBox
Returns
Inherited from
Shape.boundingBox
Defined in
center
• get
center(): Vector
Returns
Defined in
edges
• get
edges(): Edge
[]
Returns
Edge
[]
Inherited from
Shape.edges
Defined in
faces
• get
faces(): Face
[]
Returns
Face
[]
Inherited from
Shape.faces
Defined in
geomType
• get
geomType(): SurfaceType
Returns
Defined in
hashCode
• get
hashCode(): number
Returns
number
Inherited from
Shape.hashCode
Defined in
isNull
• get
isNull(): boolean
Returns
boolean
Inherited from
Shape.isNull
Defined in
orientation
• get
orientation(): "forward"
| "backward"
Returns
"forward"
| "backward"
Defined in
surface
• get
surface(): Surface
Returns
Defined in
wires
• get
wires(): Wire
[]
Returns
Wire
[]
Inherited from
Shape.wires
Defined in
wrapped
• get
wrapped(): Type
Returns
Type
Inherited from
Shape.wrapped
Defined in
• set
wrapped(newWrapped
): void
Parameters
Name | Type |
---|---|
newWrapped | Type |
Returns
void
Inherited from
Shape.wrapped
Defined in
Other Methods
clone
▸ clone(): Face
Returns
Inherited from
Defined in
delete
▸ delete(): void
Returns
void
Inherited from
Defined in
innerWires
▸ innerWires(): Wire
[]
Returns
Wire
[]
Defined in
isEqual
▸ isEqual(other
): boolean
Parameters
Name | Type |
---|---|
other | AnyShape |
Returns
boolean
Inherited from
Defined in
isSame
▸ isSame(other
): boolean
Parameters
Name | Type |
---|---|
other | AnyShape |
Returns
boolean
Inherited from
Defined in
normalAt
▸ normalAt(locationVector?
): Vector
Parameters
Name | Type |
---|---|
locationVector? | Point |
Returns
Defined in
outerWire
▸ outerWire(): Wire
Returns
Defined in
pointOnSurface
▸ pointOnSurface(u
, v
): Vector
Parameters
Name | Type |
---|---|
u | number |
v | number |
Returns
Defined in
simplify
▸ simplify(): Face
Simplifies the shape by removing unnecessary edges and faces
Returns
Inherited from
Defined in
triangulation
▸ triangulation(index0?
): null
| FaceTriangulation
Parameters
Name | Type | Default value |
---|---|---|
index0 | number | 0 |
Returns
null
| FaceTriangulation
Defined in
Shape Export Methods
blobSTEP
▸ blobSTEP(): Blob
Exports the current shape as a STEP file as a Blob
Returns
Blob
Inherited from
Defined in
blobSTL
▸ blobSTL(«destructured»?
): Blob
Exports the current shape as a STL file as a Blob
In order to create a STL file, the shape needs to be meshed. The tolerances correspond to the values used to mesh the shape.
Parameters
Name | Type |
---|---|
«destructured» | Object |
› angularTolerance | undefined | number |
› tolerance | undefined | number |
Returns
Blob
Inherited from
Defined in
mesh
▸ mesh(«destructured»?
): ShapeMesh
Exports the current shape as a set of triangle. These can be used by threejs for instance to represent the the shape
Parameters
Name | Type |
---|---|
«destructured» | Object |
› angularTolerance | undefined | number |
› tolerance | undefined | number |
Returns
Inherited from
Defined in
meshEdges
▸ meshEdges(«destructured»?
): Object
Exports the current shape as a set of lines. These can be used by threejs for instance to represent the edges of the shape
Parameters
Name | Type |
---|---|
«destructured» | Object |
› angularTolerance | undefined | number |
› tolerance | undefined | number |
Returns
Object
Name | Type |
---|---|
edgeGroups | { count : number ; edgeId : number ; start : number }[] |
lines | number [] |
Inherited from
Defined in
Shape Transformations Methods
mirror
▸ mirror(inputPlane
, origin
): Face
Mirrors the shape through a plane
Parameters
Name | Type |
---|---|
inputPlane | Point | Plane | PlaneName |
origin | Point |
Returns
Inherited from
Defined in
rotate
▸ rotate(angle
, position?
, direction?
): Face
Rotates the shape
Parameters
Name | Type |
---|---|
angle | number |
position | Point |
direction | Point |
Returns
Inherited from
Defined in
scale
▸ scale(scale
, center?
): Face
Returns a scaled version of the shape
Parameters
Name | Type |
---|---|
scale | number |
center | Point |
Returns
Inherited from
Defined in
translate
▸ translate(xDist
, yDist
, zDist
): Face
Translates the shape of an arbitrary vector
Parameters
Name | Type |
---|---|
xDist | number |
yDist | number |
zDist | number |
Returns
Inherited from
Defined in
▸ translate(vector
): Face
Parameters
Name | Type |
---|---|
vector | Point |
Returns
Inherited from
Defined in
translateX
▸ translateX(distance
): Face
Translates the shape on the X axis
Parameters
Name | Type |
---|---|
distance | number |
Returns
Inherited from
Defined in
translateY
▸ translateY(distance
): Face
Translates the shape on the Y axis
Parameters
Name | Type |
---|---|
distance | number |
Returns
Inherited from
Defined in
translateZ
▸ translateZ(distance
): Face
Translates the shape on the Z axis
Parameters
Name | Type |
---|---|
distance | number |