Face#
- class ansys.speos.core.face.Face(speos_client, name, description='', metadata=None, parent_body=None)#
Feature : Face.
- Parameters:
- speos_client
ansys.speos.core.kernel.client.SpeosClient The Speos instance client.
- name
str Name of the feature.
- description
str Description of the feature. By default,
"".- metadata
Optional[Mapping[str,str]] Metadata of the feature. By default,
{}.- parent_body
ansys.speos.core.body.Body,optional Feature containing this face. By default,
None.
- speos_client
- Attributes:
- face_link
ansys.speos.core.kernel.face.FaceLink Link object for the face in database.
- face_link
- Parameters:
speos_client (ansys.speos.core.kernel.client.SpeosClient)
name (str)
description (str)
parent_body (Optional[ansys.speos.core.body.Body])
Overview#
Geometry path to be used within other speos objects. |
|
Get face vertices. |
|
Get face facets. |
|
Get face normals. |
|
List of data applied to vertices (like texture coordinates uv). |
Link object for the face in database. |
Return the string representation of the face. |
Import detail#
from ansys.speos.core.face import Face
Property detail#
- property Face.geo_path: ansys.speos.core.geo_ref.GeoRef#
Geometry path to be used within other speos objects.
- property Face.vertices: List[float]#
Get face vertices.
- Returns:
List[float]Coordinates of all points [p1x p1y p1z p2x p2y p2z …].
- property Face.facets: List[int]#
Get face facets.
- Returns:
List[int]Indexes of points for all triangles (t1_1 t1_2 t1_3 t2_1 t2_2 t2_3 …).
- property Face.normals: List[float]#
Get face normals.
- Returns:
List[float]Normal vectors for all points [n1x n1y n1z n2x n2y n2z …].
- property Face.vertices_data: list[ansys.speos.core.generic.parameters.MeshData]#
List of data applied to vertices (like texture coordinates uv).
Each MeshData will be stored in a specific channel. This data can be used for example to apply a texture on the face by associating the uv coordinates to the vertices and then applying a texture with UV mapping on the face.
- Returns:
list[ansys.speos.core.generic.parameters.MeshData]List of MeshData
Attribute detail#
- Face.face_link = None#
Link object for the face in database.
Method detail#
- Face.__str__()#
Return the string representation of the face.
- Face.commit()#
Save feature: send the local data to the speos server database.
- Returns:
ansys.speos.core.face.FaceFace feature.
- Face.reset()#
Reset feature: override local data by the one from the speos server database.
- Returns:
ansys.speos.core.face.FaceFace feature.
- Face.delete()#
Delete feature: delete data from the speos server database.
The local data are still available
- Returns:
ansys.speos.core.face.FaceFace feature.