ddg.datastructures.indexedfaceset.utils module

ddg.datastructures.indexedfaceset.utils.diags_from_faces(faces)[source]

Calculates diagonals of the faces of a quadrilateral mesh.

Parameters:
facesnp.ndarray

Array of faces In case only one face exists, it should be passed as a 2D array

Returns:
tuple

a tuple of 2d array of two sets of diagonals of the quads

ddg.datastructures.indexedfaceset.utils.is_manifold(ifs)[source]

Returns whether every edge of the non oriented indexed face set is contained in at most two faces.

ddg.datastructures.indexedfaceset.utils.orient(src_ifs, face_map={})[source]

Try to orient a given indexed face set. Raises Value Error if the given set is not orientable.

ddg.datastructures.indexedfaceset.utils.indexed_face_set_to_surface(ifs, vertex_index_attribute='ifs_index', face_index_attribute='ifs_face_index')[source]

Convert an indexed face set to a half edge data structure. If the indexed face set can not be converted an empty half edge data structure is returned.

ddg.datastructures.indexedfaceset.utils.face_boundary(face)[source]
exception ddg.datastructures.indexedfaceset.utils.BoundaryException[source]

Bases: Exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception ddg.datastructures.indexedfaceset.utils.NonManifoldException[source]

Bases: Exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception ddg.datastructures.indexedfaceset.utils.NonOrientableException[source]

Bases: Exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.