skshapes.triangle_mesh.edge_topology.EdgeTopology

class skshapes.triangle_mesh.edge_topology.EdgeTopology(triangles)

Bases: object

Topology of the edges of a triangle mesh.

This class is initialized from the triangles connectivity of a triangle mesh. It computes : - the edges of the mesh - the degrees of the edges (number of adjacent triangles)

For manifold edges (degree 2), it also computes : - the adjacent triangles - the adjacent points

For boundary edges (degree 1), it also computes : - the adjacent triangle - the adjacent point

Manifold edges and boundary edges can be accessed separately using the attributes manifold_edges and boundary_edges.

The indices of manifold edges and boundary edges can be accessed using the attributes is_manifold and is_boundary.

Parameters:

triangles (Int64[Tensor, '_ 3']) – Triangles of the mesh

__init__(triangles)

Methods

__init__(triangles)

Attributes

boundary_edges

Boundary edges of the mesh.

manifold_edges

Manifold edges of the mesh.

property boundary_edges

Boundary edges of the mesh.

property manifold_edges

Manifold edges of the mesh.