TriSurf¶
-
class
subsurface.structs.unstructured_elements.
TriSurf
(mesh: subsurface.structs.base_structures.unstructured_data.UnstructuredData, texture: Optional[subsurface.structs.base_structures.structured_data.StructuredData] = None, **kwargs)[source]¶ Bases:
object
PointSet with triangle cells.
This dataset defines cell/element connectivity between points to create triangulated surface.
Uses UnstructuredData.cells for the face connectivity.
- Parameters
mesh (UnstructuredData) – Base object for unstructured data. data.cells represent the point indices for each triangle in the mesh. Each column corresponds to a triangle edge.
texture (StructuredData) – 2D StructuredData with data to be mapped on the mesh
- Keyword Arguments
texture_origin – tuple(float) Length 3 iterable of floats defining the XYZ coordinates of the BOTTOM LEFT CORNER of the plane
texture_point_u – tuple(float) Length 3 iterable of floats defining the XYZ coordinates of the BOTTOM RIGHT CORNER of the plane
texture_point_v – tuple(float) Length 3 iterable of floats defining the XYZ coordinates of the TOP LEFT CORNER of the plane
Attributes Summary
Attributes Documentation
-
n_triangles
¶
-
triangles
¶