cellcomplex.property_topomesh.interface.topomesh module
This module provide a topological mesh interface
-
class
cellcomplex.property_topomesh.interface.topomesh.IMutableMesh[source]
Bases: object
interface for editing methods on mesh
-
add_wisp(degree, wid=None)[source]
add a new wisp connected to nothing
if wid is None, create a free id
return used wid
-
link(degree, wid, border_id)[source]
link a wisp of degree degree with id wid
with another wisp of degree degree-1 with id border_id
-
remove_wisp(degree, wid)[source]
remove wisp from the mesh
remove all attached links
-
unlink(degree, wid, border_id)[source]
remove links between a region and its border
-
class
cellcomplex.property_topomesh.interface.topomesh.INeighborhoodMesh[source]
Bases: object
implicit neighborhood between wisps at the same scale
-
border_neighbors(degree, wid)[source]
iterator on all wisps at the same degree
that share a border with this wisp
-
nb_border_neighbors(degree, wid)[source]
number of border_neighbors of this wisp
-
nb_region_neighbors(degree, wid)[source]
number of region_neighbors of this wisp
-
region_neighbors(degree, wid)[source]
iterator on all wisps at the same degree
that share a region with this wisp
-
class
cellcomplex.property_topomesh.interface.topomesh.ITopomesh[source]
Bases: object
interface definition of a topological mesh
a mesh is formed of elements called wisps
separated by elements of degree-1
-
borders(degree, wid, degree_offset=1)[source]
iterator on all border of this wisp
-
degree()[source]
maximum degree (or scale) of elements of the mesh
-
has_wisp(degree, wid)[source]
return true if the wisp
specified by its id is in mesh
-
is_valid()[source]
test wether the mesh fulfill all mesh properties
-
nb_borders(degree, wid, degree_offset=1)[source]
number of border of this wisp
-
nb_regions(degree, wid)[source]
number of regions this wisp separate
-
regions(degree, wid)[source]
iterator on all regions this wisp separate
-
class
cellcomplex.property_topomesh.interface.topomesh.IWispListMesh[source]
Bases: object
mesh view as a collection of wisps
-
nb_wisps(degree)[source]
number of wisps of the given degree
-
wisps(degree)[source]
iterator on all wisps of a given degree
-
exception
cellcomplex.property_topomesh.interface.topomesh.InvalidDegree[source]
Bases: cellcomplex.property_topomesh.interface.topomesh.TopomeshError, ValueError
exception raised when a the degree is outside of bounds
-
exception
cellcomplex.property_topomesh.interface.topomesh.InvalidWisp[source]
Bases: cellcomplex.property_topomesh.interface.topomesh.TopomeshError, KeyError
exception raised when a wrong wisp id is provided
-
exception
cellcomplex.property_topomesh.interface.topomesh.TopomeshError[source]
Bases: Exception
base class for all exception in a topomesh