Face#

class ansys.speos.core.face.Face(speos_client, name, description='', metadata=None, parent_body=None)#

Feature : Face.

Parameters:
speos_clientansys.speos.core.kernel.client.SpeosClient

The Speos instance client.

namestr

Name of the feature.

descriptionstr

Description of the feature. By default, "".

metadataOptional[Mapping[str, str]]

Metadata of the feature. By default, {}.

parent_bodyansys.speos.core.body.Body, optional

Feature containing this face. By default, None.

Attributes:
face_linkansys.speos.core.kernel.face.FaceLink

Link object for the face in database.

Parameters:

Overview#

commit

Save feature: send the local data to the speos server database.

reset

Reset feature: override local data by the one from the speos server database.

delete

Delete feature: delete data from the speos server database.

geo_path

Geometry path to be used within other speos objects.

vertices

Get face vertices.

facets

Get face facets.

normals

Get face normals.

face_link

Link object for the face in database.

__str__

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 …].

Attribute detail#

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.Face

Face feature.

Face.reset()#

Reset feature: override local data by the one from the speos server database.

Returns:
ansys.speos.core.face.Face

Face feature.

Face.delete()#

Delete feature: delete data from the speos server database.

The local data are still available

Returns:
ansys.speos.core.face.Face

Face feature.