Skip to content

Triangulated Surface🍋

Surface (GeoRefObject) 🍋

Object representing a 3D triangulated surface.

Parameters:

Name Type Description Default
name str

object name.

required
xyz ~Data

geometry data, respectively X, Y and Z.

required
triangles ~Data

topological data, one triangle per element, matching geometry index.

required

Exceptions:

Type Description
ValueError

if a point is not part of a triangle.

faces: ndarray property readonly 🍋

The faces of the mesh.

Returns:

Type Description
ndarray

Triangles which refer to vertices.

mesh: Trimesh property readonly 🍋

Trimesh Mesh allowing complex computations.

Parameters:

Name Type Description Default
recompute

Boolean to specify is mesh is recomputed or not.

required

Returns:

Type Description
Trimesh

Trimesh object.

vertices: ndarray property readonly 🍋

The vertices of the mesh.

Returns:

Type Description
ndarray

Point coordinates referenced by faces.

compute_mesh(self) 🍋

Trimesh Mesh allowing complex computations.

Parameters:

Name Type Description Default
recompute

Boolean to specify is mesh is recomputed or not.

required

Returns:

Type Description
Trimesh

Trimesh object.

element_count(self) 🍋

Return the number of triangles in the surface.

Returns:

Type Description
int

Number of triangles.

sample_count(self) 🍋

Return the number of vertex in the surface.

Returns:

Type Description
int

Number of points.

Back to top