Boundary Extraction
extract_border_cycle(mesh, starting_point=None)
Extracts a list of vertices that are on the border of the mesh.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mesh
|
Mesh
|
The mesh |
required |
starting_point
|
int
|
Origin point. Should be on border |
None
|
Returns:
| Type | Description |
|---|---|
list
|
list of vertices on border in order |
list
|
list of edges on border in order |
Raises:
| Type | Description |
|---|---|
Exception
|
Fails if 'starting_point' not on the border |
extract_border_cycle_all(mesh)
Extracts all the border cycles of a mesh and returns a list of list of vertices
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mesh
|
Mesh
|
The mesh |
required |
Returns:
| Type | Description |
|---|---|
list
|
list of list of vertices |
extract_boundary_of_surface(mesh)
Returns the boundary of a surface mesh as a polyline
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mesh
|
SurfaceMesh
|
input mesh |
required |
Returns:
| Name | Type | Description |
|---|---|---|
PolyLine |
PolyLine
|
boundary curves of the mesh |
dict |
PolyLine
|
maps a vertex id in the boundary to its corresponding id in the original mesh. |
extract_boundary_of_volume(mesh)
Returns the boundary of a volume mesh as a surface mesh
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mesh
|
VolumeMesh
|
input mesh |
required |
Returns:
| Name | Type | Description |
|---|---|---|
SurfaceMesh |
SurfaceMesh
|
the boundary as a SurfaceMesh |
dict |
SurfaceMesh
|
maps a vertex id in the boundary to its corresponding id in the original mesh. |
dict |
SurfaceMesh
|
maps a vertex id from the original mesh to its corresponding id in the boundary mesh. |