GEL
2
GEL is a library for Geometry and Linear Algebra
|
Public Member Functions | |
VertexID | add_vertex () |
add vertex to kernel | |
FaceID | add_face () |
add face to kernel | |
HalfEdgeID | add_halfedge () |
add halfedge to kernel | |
void | remove_vertex (VertexID id) |
remove vertex from kernel, given by ID | |
void | remove_face (FaceID id) |
remove face from kernel, given by ID | |
void | remove_halfedge (HalfEdgeID id) |
remove halfedge from kernel, given by ID | |
void | resize_vertices (size_t size) |
resize kernel vertices container to size | |
void | resize_faces (size_t size) |
resize kernel faces container to size | |
void | resize_halfedges (size_t size) |
resize kernel halfedges container to size | |
HalfEdgeID | next (HalfEdgeID current) const |
get the ID of next halfedge, given by current halfedge ID | |
HalfEdgeID | prev (HalfEdgeID current) const |
get the ID of previous halfedge, given by current halfedge ID | |
HalfEdgeID | opp (HalfEdgeID current) const |
get the ID of opposite halfedge, given by current halfedge ID | |
HalfEdgeID | out (VertexID current) const |
get the ID of outgoing halfedge, given by current vertex ID | |
HalfEdgeID | last (FaceID current) const |
get the ID of last halfedge of current face ID | |
VertexID | vert (HalfEdgeID id) const |
get the ID of vertex pointed to by current halfedge ID | |
FaceID | face (HalfEdgeID id) const |
get the ID of face owning current halfedge ID | |
void | set_next (HalfEdgeID current, HalfEdgeID next) |
set the ID of next halfedge of current halfedge to next | |
void | set_prev (HalfEdgeID current, HalfEdgeID prev) |
set the ID of previous halfedge of current halfedge to prev | |
void | set_opp (HalfEdgeID current, HalfEdgeID opp) |
set the ID of opposite halfedge of current halfedge to opp | |
void | set_out (VertexID current, HalfEdgeID out) |
set the ID of outgoing halfedge of current vertex to out | |
void | set_last (FaceID current, HalfEdgeID last) |
set the ID of last halfedge of current face to last | |
void | set_vert (HalfEdgeID current, VertexID vert) |
set the ID of vertex pointed to by current halfedge to vert | |
void | set_face (HalfEdgeID current, FaceID face) |
set the ID of face owning current halfedge to face | |
size_t | active_vertices () const |
number of active vertices in kernel | |
size_t | active_faces () const |
number of active faces in kernel | |
size_t | active_halfedges () const |
number of active halfedges in kernel | |
size_t | total_vertices () const |
number of total vertices in kernel | |
size_t | total_faces () const |
number of total faces in kernel | |
size_t | total_halfedges () const |
number of total halfedges in kernel | |
bool | in_use (VertexID id) const |
check if ID of vertex is in use | |
bool | in_use (FaceID id) const |
check if ID of face is in use | |
bool | in_use (HalfEdgeID id) const |
check if ID of halfedge is in use | |
VertexID | vertices_next (VertexID id, bool skip=true) const |
get the ID of next vertex in container (default: skip unused IDs) | |
HalfEdgeID | halfedges_next (HalfEdgeID id, bool skip=true) const |
get the ID of next face in container (default: skip unused IDs) | |
FaceID | faces_next (FaceID id, bool skip=true) const |
get the ID of next halfedge in container (default: skip unused IDs) | |
VertexID | vertices_prev (VertexID id, bool skip=true) const |
get the ID of previous vertex in container (default: skip unused IDs) | |
HalfEdgeID | halfedges_prev (HalfEdgeID id, bool skip=true) const |
get the ID of previous face in container (default: skip unused IDs) | |
FaceID | faces_prev (FaceID id, bool skip=true) const |
get the ID of previous halfedge in container (default: skip unused IDs) | |
VertexID | vertices_begin (bool skip=true) const |
get the ID of first vertex in container (default: skip unused IDs) | |
HalfEdgeID | halfedges_begin (bool skip=true) const |
get the ID of first vertex in container (default: skip unused IDs) | |
FaceID | faces_begin (bool skip=true) const |
get the ID of first vertex in container (default: skip unused IDs) | |
VertexID | vertices_end () const |
get the ID of one past the end vertex in container | |
HalfEdgeID | halfedges_end () const |
get the ID of one past the end face in container | |
FaceID | faces_end () const |
get the ID of one past the end halfedge in container | |
void | cleanup (IDRemap &map) |
Clean up unused space in vectors - WARNING! Invalidates existing handles! | |
void | clear () |
clear the kernel |