|
static VertexIterator | AddVertices (MeshType &m, size_t n, PointerUpdater< VertexPointer > &pu) |
| Add n vertices to the mesh. Function to add n vertices to the mesh. The elements are added always to the end of the vector. No attempt of reusing previously deleted element is done. More...
|
|
static VertexIterator | AddVertices (MeshType &m, size_t n) |
| Wrapper to AddVertices(); no PointerUpdater.
|
|
static VertexIterator | AddVertices (MeshType &m, size_t n, std::vector< VertexPointer * > &local_vec) |
| Wrapper to AddVertices() no PointerUpdater but a vector of VertexPointer pointers to be updated.
|
|
static VertexIterator | AddVertices (MeshType &m, const Eigen::MatrixXf &vm) |
| Wrapper to AddVertices() to add an eigen matrix of (vn,3) it returns the iterator to the first vertex added.
|
|
static VertexIterator | AddVertex (MeshType &m, const CoordType &p) |
| Wrapper to AddVertices() to add a single vertex with given coords.
|
|
static VertexIterator | AddVertex (MeshType &m, const CoordType &p, const CoordType &n) |
| Wrapper to AddVertices() to add a single vertex with given coords and normal.
|
|
static VertexIterator | AddVertex (MeshType &m, const CoordType &p, const Color4b &c) |
| Wrapper to AddVertices() to add a single vertex with given coords and color.
|
|
static EdgeIterator | AddEdges (MeshType &m, size_t n, PointerUpdater< EdgePointer > &pu) |
| Add n edges to the mesh. Function to add n edges to the mesh. The elements are added always to the end of the vector. No attempt of reusing previously deleted element is done. More...
|
|
static EdgeIterator | AddEdge (MeshType &m, VertexPointer v0, VertexPointer v1) |
|
static EdgeIterator | AddEdge (MeshType &m, size_t v0, size_t v1) |
|
static EdgeIterator | AddEdge (MeshType &m, CoordType p0, CoordType p1) |
|
static EdgeIterator | AddEdges (MeshType &m, size_t n) |
|
static EdgeIterator | AddEdges (MeshType &m, size_t n, std::vector< EdgePointer * > &local_vec) |
|
static HEdgeIterator | AddHEdges (MeshType &m, size_t n, PointerUpdater< HEdgePointer > &pu) |
|
static HEdgeIterator | AddHEdges (MeshType &m, size_t n) |
|
static HEdgeIterator | AddHEdges (MeshType &m, size_t n, std::vector< HEdgePointer * > &local_vec) |
|
static FaceIterator | AddFace (MeshType &m, VertexPointer v0, VertexPointer v1, VertexPointer v2) |
|
static FaceIterator | AddFace (MeshType &m, size_t v0, size_t v1, size_t v2) |
|
static FaceIterator | AddFace (MeshType &m, CoordType p0, CoordType p1, CoordType p2) |
|
static FaceIterator | AddQuadFace (MeshType &m, VertexPointer v0, VertexPointer v1, VertexPointer v2, VertexPointer v3) |
|
static FaceIterator | AddFaces (MeshType &m, size_t n) |
| Function to add n faces to the mesh. First wrapper, with no parameters.
|
|
static FaceIterator | AddFaces (MeshType &m, size_t n, std::vector< FacePointer * > &local_vec) |
| Function to add n faces to the mesh. Second Wrapper, with a vector of face pointer to be updated.
|
|
static FaceIterator | AddFaces (MeshType &m, const Eigen::MatrixXi &fm) |
| Function to add n faces to the mesh getting indexes from a (fn, 3) eigen matrix of int .
|
|
static FaceIterator | AddFaces (MeshType &m, size_t n, PointerUpdater< FacePointer > &pu) |
| Function to add n faces to the mesh. This is the only full featured function that is able to manage correctly all the official internal pointers of the mesh (like the VF and FF adjacency relations) More...
|
|
static TetraIterator | AddTetras (MeshType &m, size_t n, PointerUpdater< TetraPointer > &pu) |
| Function to add n tetras to the mesh. This is the only full featured function that is able to manage correctly all the official internal pointers of the mesh (like the VT and TT adjacency relations) More...
|
|
static TetraIterator | AddTetra (MeshType &m, VertexPointer v0, VertexPointer v1, VertexPointer v2, VertexPointer v3) |
|
static TetraIterator | AddTetra (MeshType &m, const size_t v0, const size_t v1, const size_t v2, const size_t v3) |
|
static TetraIterator | AddTetra (MeshType &m, const CoordType &p0, const CoordType &p1, const CoordType &p2, const CoordType &p3) |
|
static TetraIterator | AddTetras (MeshType &m, size_t n) |
| Function to add n faces to the mesh. First wrapper, with no parameters.
|
|
static TetraIterator | AddTetras (MeshType &m, size_t n, std::vector< TetraPointer * > &local_vec) |
| Function to add n faces to the mesh. Second Wrapper, with a vector of face pointer to be updated.
|
|
static void | DeleteFace (MeshType &m, FaceType &f) |
|
static void | DeleteVertex (MeshType &m, VertexType &v) |
|
static void | DeleteEdge (MeshType &m, EdgeType &e) |
|
static void | DeleteHEdge (MeshType &m, HEdgeType &h) |
|
static void | DeleteTetra (MeshType &m, TetraType &t) |
|
static void | PermutateVertexVector (MeshType &m, PointerUpdater< VertexPointer > &pu) |
|
static void | CompactEveryVector (MeshType &m) |
|
static void | CompactVertexVector (MeshType &m, PointerUpdater< VertexPointer > &pu) |
| Compact vector of vertices removing deleted elements. Deleted elements are put to the end of the vector and the vector is resized. Order between elements is preserved but not their position (hence the PointerUpdater) After calling this function the IsD() test in the scanning a vector, is no more necessary. More...
|
|
static void | CompactVertexVector (MeshType &m) |
| Wrapper without the PointerUpdater.
|
|
static void | CompactEdgeVector (MeshType &m, PointerUpdater< EdgePointer > &pu) |
| Compact vector of edges removing deleted elements. More...
|
|
static void | CompactEdgeVector (MeshType &m) |
| Wrapper without the PointerUpdater.
|
|
static void | CompactFaceVector (MeshType &m, PointerUpdater< FacePointer > &pu) |
| Compact face vector by removing deleted elements. More...
|
|
static void | CompactFaceVector (MeshType &m) |
| Wrapper without the PointerUpdater.
|
|
static void | CompactTetraVector (MeshType &m, PointerUpdater< TetraPointer > &pu) |
| Compact tetra vector by removing deleted elements. More...
|
|
static void | CompactTetraVector (MeshType &m) |
| Wrapper without the PointerUpdater.
|
|
template<class ATTR_TYPE > |
static bool | IsValidHandle (const MeshType &m, const typename MeshType::template PerVertexAttributeHandle< ATTR_TYPE > &a) |
| Checks if a handle to a Per-Vertex Attribute is valid.
|
|
template<class ATTR_TYPE > |
static bool | IsValidHandle (const MeshType &m, const typename MeshType::template ConstPerVertexAttributeHandle< ATTR_TYPE > &a) |
| Checks if a const handle to a Per-Vertex Attribute is valid.
|
|
template<class ATTR_TYPE > |
static MeshType::template PerVertexAttributeHandle< ATTR_TYPE > | AddPerVertexAttribute (MeshType &m, std::string name) |
| Add a Per-Vertex Attribute of the given ATTR_TYPE with the given name. More...
|
|
template<class ATTR_TYPE > |
static MeshType::template PerVertexAttributeHandle< ATTR_TYPE > | AddPerVertexAttribute (MeshType &m) |
|
template<class ATTR_TYPE > |
static MeshType::template PerVertexAttributeHandle< ATTR_TYPE > | GetPerVertexAttribute (MeshType &m, std::string name=std::string("")) |
| gives a handle to a per-vertex attribute with a given name and ATTR_TYPE More...
|
|
template<class ATTR_TYPE > |
static MeshType::template ConstPerVertexAttributeHandle< ATTR_TYPE > | GetPerVertexAttribute (const MeshType &m, std::string name=std::string("")) |
| gives a const handle to a per-vertex attribute with a given name and ATTR_TYPE More...
|
|
template<class ATTR_TYPE > |
static MeshType::template PerVertexAttributeHandle< ATTR_TYPE > | FindPerVertexAttribute (MeshType &m, const std::string &name) |
| Try to retrieve an handle to an attribute with a given name and ATTR_TYPE. More...
|
|
template<class ATTR_TYPE > |
static MeshType::template ConstPerVertexAttributeHandle< ATTR_TYPE > | FindPerVertexAttribute (const MeshType &m, const std::string &name) |
| Try to retrieve a const handle to an attribute with a given name and ATTR_TYPE, from the given const mesh. If not found, an invalid handle will be returned. Check it with the function IsValidHandle.
|
|
template<class ATTR_TYPE > |
static void | GetAllPerVertexAttribute (const MeshType &m, std::vector< std::string > &all) |
| query the mesh for all the attributes per vertex More...
|
|
template<class ATTR_TYPE > |
static void | ClearPerVertexAttribute (MeshType &m, typename MeshType::template PerVertexAttributeHandle< ATTR_TYPE > &h, const ATTR_TYPE &initVal=ATTR_TYPE()) |
|
template<class ATTR_TYPE > |
static void | DeletePerVertexAttribute (MeshType &m, typename MeshType::template PerVertexAttributeHandle< ATTR_TYPE > &h) |
| If the per-vertex attribute exists, delete it.
|
|
static bool | DeletePerVertexAttribute (MeshType &m, std::string name) |
|
template<class ATTR_TYPE > |
static bool | IsValidHandle (const MeshType &m, const typename MeshType::template PerEdgeAttributeHandle< ATTR_TYPE > &a) |
| Per Edge Attributes.
|
|
template<class ATTR_TYPE > |
static bool | IsValidHandle (const MeshType &m, const typename MeshType::template ConstPerEdgeAttributeHandle< ATTR_TYPE > &a) |
|
template<class ATTR_TYPE > |
static MeshType::template PerEdgeAttributeHandle< ATTR_TYPE > | AddPerEdgeAttribute (MeshType &m, std::string name) |
|
template<class ATTR_TYPE > |
static MeshType::template PerEdgeAttributeHandle< ATTR_TYPE > | AddPerEdgeAttribute (MeshType &m) |
|
template<class ATTR_TYPE > |
static MeshType::template PerEdgeAttributeHandle< ATTR_TYPE > | GetPerEdgeAttribute (MeshType &m, std::string name=std::string("")) |
| gives a handle to a per-edge attribute with a given name and ATTR_TYPE More...
|
|
template<class ATTR_TYPE > |
static MeshType::template ConstPerEdgeAttributeHandle< ATTR_TYPE > | GetPerEdgeAttribute (const MeshType &m, std::string name=std::string("")) |
|
template<class ATTR_TYPE > |
static MeshType::template PerEdgeAttributeHandle< ATTR_TYPE > | FindPerEdgeAttribute (MeshType &m, const std::string &name) |
|
template<class ATTR_TYPE > |
static MeshType::template ConstPerEdgeAttributeHandle< ATTR_TYPE > | FindPerEdgeAttribute (const MeshType &m, const std::string &name) |
|
template<class ATTR_TYPE > |
static void | GetAllPerEdgeAttribute (const MeshType &m, std::vector< std::string > &all) |
|
template<class ATTR_TYPE > |
static void | DeletePerEdgeAttribute (MeshType &m, typename MeshType::template PerEdgeAttributeHandle< ATTR_TYPE > &h) |
| If the per-edge attribute exists, delete it.
|
|
static bool | DeletePerEdgeAttribute (MeshType &m, std::string name) |
|
template<class ATTR_TYPE > |
static bool | IsValidHandle (const MeshType &m, const typename MeshType::template PerFaceAttributeHandle< ATTR_TYPE > &a) |
| Per Face Attributes. More...
|
|
template<class ATTR_TYPE > |
static bool | IsValidHandle (const MeshType &m, const typename MeshType::template ConstPerFaceAttributeHandle< ATTR_TYPE > &a) |
| Checks if a const handle to a Per-Face attribute is valid.
|
|
template<class ATTR_TYPE > |
static MeshType::template PerFaceAttributeHandle< ATTR_TYPE > | AddPerFaceAttribute (MeshType &m, std::string name) |
|
template<class ATTR_TYPE > |
static MeshType::template PerFaceAttributeHandle< ATTR_TYPE > | AddPerFaceAttribute (MeshType &m) |
|
template<class ATTR_TYPE > |
static MeshType::template PerFaceAttributeHandle< ATTR_TYPE > | GetPerFaceAttribute (MeshType &m, std::string name=std::string("")) |
| gives a handle to a per-face attribute with a given name and ATTR_TYPE More...
|
|
template<class ATTR_TYPE > |
static MeshType::template ConstPerFaceAttributeHandle< ATTR_TYPE > | GetPerFaceAttribute (const MeshType &m, std::string name=std::string("")) |
| gives a handle to a per-face attribute with a given name and ATTR_TYPE More...
|
|
template<class ATTR_TYPE > |
static MeshType::template PerFaceAttributeHandle< ATTR_TYPE > | FindPerFaceAttribute (MeshType &m, const std::string &name) |
|
template<class ATTR_TYPE > |
static MeshType::template ConstPerFaceAttributeHandle< ATTR_TYPE > | FindPerFaceAttribute (const MeshType &m, const std::string &name) |
| Try to retrieve a const handle to an attribute with a given name and ATTR_TYPE, from the given const mesh. If not found, an invalid handle will be returned. Check it with the function IsValidHandle.
|
|
template<class ATTR_TYPE > |
static void | GetAllPerFaceAttribute (const MeshType &m, std::vector< std::string > &all) |
|
template<class ATTR_TYPE > |
static void | DeletePerFaceAttribute (MeshType &m, typename MeshType::template PerFaceAttributeHandle< ATTR_TYPE > &h) |
| If the per-face attribute exists, delete it.
|
|
static bool | DeletePerFaceAttribute (MeshType &m, std::string name) |
|
template<class ATTR_TYPE > |
static bool | IsValidHandle (const MeshType &m, const typename MeshType::template PerTetraAttributeHandle< ATTR_TYPE > &a) |
| Per Tetra Attributes.
|
|
template<class ATTR_TYPE > |
static bool | IsValidHandle (const MeshType &m, const typename MeshType::template ConstPerTetraAttributeHandle< ATTR_TYPE > &a) |
|
template<class ATTR_TYPE > |
static MeshType::template PerTetraAttributeHandle< ATTR_TYPE > | AddPerTetraAttribute (MeshType &m, std::string name) |
|
template<class ATTR_TYPE > |
static MeshType::template PerTetraAttributeHandle< ATTR_TYPE > | AddPerTetraAttribute (MeshType &m) |
|
template<class ATTR_TYPE > |
static MeshType::template PerTetraAttributeHandle< ATTR_TYPE > | GetPerTetraAttribute (MeshType &m, std::string name=std::string("")) |
| gives a handle to a per-tetra attribute with a given name and ATTR_TYPE More...
|
|
template<class ATTR_TYPE > |
static MeshType::template ConstPerTetraAttributeHandle< ATTR_TYPE > | GetPerTetraAttribute (const MeshType &m, std::string name=std::string("")) |
|
template<class ATTR_TYPE > |
static MeshType::template PerTetraAttributeHandle< ATTR_TYPE > | FindPerTetraAttribute (MeshType &m, const std::string &name) |
|
template<class ATTR_TYPE > |
static MeshType::template ConstPerTetraAttributeHandle< ATTR_TYPE > | FindPerTetraAttribute (const MeshType &m, const std::string &name) |
|
template<class ATTR_TYPE > |
static void | GetAllPerTetraAttribute (const MeshType &m, std::vector< std::string > &all) |
|
template<class ATTR_TYPE > |
static void | DeletePerTetraAttribute (MeshType &m, typename MeshType::template PerTetraAttributeHandle< ATTR_TYPE > &h) |
| If the per-face attribute exists, delete it.
|
|
static bool | DeletePerTetraAttribute (MeshType &m, std::string name) |
|
template<class ATTR_TYPE > |
static bool | IsValidHandle (const MeshType &m, const typename MeshType::template PerMeshAttributeHandle< ATTR_TYPE > &a) |
| Per Mesh Attributes.
|
|
template<class ATTR_TYPE > |
static bool | IsValidHandle (const MeshType &m, const typename MeshType::template ConstPerMeshAttributeHandle< ATTR_TYPE > &a) |
|
template<class ATTR_TYPE > |
static MeshType::template PerMeshAttributeHandle< ATTR_TYPE > | AddPerMeshAttribute (MeshType &m, std::string name) |
|
template<class ATTR_TYPE > |
static MeshType::template PerMeshAttributeHandle< ATTR_TYPE > | GetPerMeshAttribute (MeshType &m, std::string name=std::string("")) |
| gives a handle to a per-edge attribute with a given name and ATTR_TYPE More...
|
|
template<class ATTR_TYPE > |
static MeshType::template ConstPerMeshAttributeHandle< ATTR_TYPE > | GetPerMeshAttribute (const MeshType &m, std::string name=std::string("")) |
|
template<class ATTR_TYPE > |
static MeshType::template PerMeshAttributeHandle< ATTR_TYPE > | FindPerMeshAttribute (MeshType &m, const std::string &name) |
|
template<class ATTR_TYPE > |
static MeshType::template ConstPerMeshAttributeHandle< ATTR_TYPE > | FindPerMeshAttribute (const MeshType &m, const std::string &name) |
|
template<class ATTR_TYPE > |
static void | GetAllPerMeshAttribute (const MeshType &m, std::vector< std::string > &all) |
|
template<class ATTR_TYPE > |
static void | DeletePerMeshAttribute (MeshType &m, typename MeshType::template PerMeshAttributeHandle< ATTR_TYPE > &h) |
| If the per-mesh attribute exists, delete it.
|
|
static bool | DeletePerMeshAttribute (MeshType &m, std::string name) |
|
template<class ATTR_TYPE > |
static void | FixPaddedPerVertexAttribute (MeshType &m, PointerToAttribute &pa) |
|
template<class ATTR_TYPE > |
static void | FixPaddedPerEdgeAttribute (MeshType &m, PointerToAttribute &pa) |
|
template<class ATTR_TYPE > |
static void | FixPaddedPerFaceAttribute (MeshType &m, PointerToAttribute &pa) |
|
template<class ATTR_TYPE > |
static void | FixPaddedPerTetraAttribute (MeshType &m, PointerToAttribute &pa) |
|
template<class ATTR_TYPE > |
static void | FixPaddedPerMeshAttribute (MeshType &, PointerToAttribute &pa) |
|