Developer Documentation
|
Namespace providing different Mesh editing functions. More...
Functions | |
template<typename MeshT , typename VectorT > | |
bool | get_boundary (MeshT &_mesh, typename MeshT::VertexHandle _vh, std::vector< std::pair< VectorT, typename MeshT::VertexHandle > > &_boundary) |
template<typename MeshT , typename VectorT > | |
bool | get_boundary (MeshT &_mesh, std::vector< std::pair< VectorT, typename MeshT::VertexHandle > > &_boundary) |
template<typename MeshT , typename VectorT > | |
void | smooth_boundary (MeshT &_mesh, typename MeshT::VertexHandle _vh) |
template<typename MeshT > | |
bool | neighbour (const MeshT &_mesh, const typename MeshT::FaceHandle &_fh1, const typename MeshT::FaceHandle &_fh2) |
template<typename MeshT , typename VectorT > | |
bool | cut_face (const VectorT &_porigin, const VectorT &_pnormal, const MeshT &_mesh, const typename MeshT::FaceHandle &_fh) |
template<typename MeshT > | |
double | calc_area (const MeshT &_mesh) |
template<typename MeshT > | |
double | calc_angle_around (const MeshT &_mesh, const typename MeshT::VertexHandle &_vh) |
template<typename MeshT > | |
void | transformMesh (ACG::Matrix4x4d _matrix, MeshT &_mesh) |
template<typename MeshT > | |
void | transformHandleVertices (ACG::Matrix4x4d _matrix, MeshT &_mesh) |
Namespace providing different Mesh editing functions.
double MeshFunctions::calc_angle_around | ( | const MeshT & | _mesh, |
const typename MeshT::VertexHandle & | _vh | ||
) |
Get the sum of the angles around a vertex
_mesh | Mesh to work on |
_vh | Vertex |
Definition at line 210 of file MeshFunctionsT_impl.hh.
double MeshFunctions::calc_area | ( | const MeshT & | _mesh | ) |
Get the area of a mesh ( sum over all triangle areas)
_mesh | Mesh to calculate area |
Definition at line 192 of file MeshFunctionsT_impl.hh.
bool MeshFunctions::cut_face | ( | const VectorT & | _porigin, |
const VectorT & | _pnormal, | ||
const MeshT & | _mesh, | ||
const typename MeshT::FaceHandle & | _fh | ||
) |
Checks if plane cuts the face
_porigin | Planes origin |
_pnormal | Plane normal |
_mesh | Mesh |
_fh | Facehandle of face |
Definition at line 169 of file MeshFunctionsT_impl.hh.
bool MeshFunctions::get_boundary | ( | MeshT & | _mesh, |
typename MeshT::VertexHandle | _vh, | ||
std::vector< std::pair< VectorT, typename MeshT::VertexHandle > > & | _boundary | ||
) |
get one boundary at the vertex
_mesh | Mesh |
_vh | Vertex handle of one vertex of the boundary |
_boundary | Coords and vertex handles of the boundary |
Definition at line 76 of file MeshFunctionsT_impl.hh.
bool MeshFunctions::get_boundary | ( | MeshT & | _mesh, |
std::vector< std::pair< VectorT, typename MeshT::VertexHandle > > & | _boundary | ||
) |
get boundary of a mesh (assumes that there is only one boundary!!
_mesh | Mesh |
_boundary | Coords and vertex handles of the boundary |
Definition at line 115 of file MeshFunctionsT_impl.hh.
bool MeshFunctions::neighbour | ( | const MeshT & | _mesh, |
const typename MeshT::FaceHandle & | _fh1, | ||
const typename MeshT::FaceHandle & | _fh2 | ||
) |
Checks for two faces if they are adjazent
_mesh | Mesh |
_fh1 | First Face |
_fh2 | Second Face |
Definition at line 156 of file MeshFunctionsT_impl.hh.
void MeshFunctions::smooth_boundary | ( | MeshT & | _mesh, |
typename MeshT::VertexHandle | _vh | ||
) |
function to smooth a boundary of a given mesh by moving each vertex to the mean Position of its adjazent verticies
_mesh | Mesh to work on |
_vh | Vertex handle on the boundary |
Definition at line 139 of file MeshFunctionsT_impl.hh.
void MeshFunctions::transformHandleVertices | ( | ACG::Matrix4x4d | _matrix, |
MeshT & | _mesh | ||
) |
Transform handle vertices only
_matrix | The transformation matrix |
_mesh | The mesh that is to be transformed |
Definition at line 269 of file MeshFunctionsT_impl.hh.
void MeshFunctions::transformMesh | ( | ACG::Matrix4x4d | _matrix, |
MeshT & | _mesh | ||
) |
Transform geometry of the mesh using the specified transformation matrix.
_matrix | The transformation matrix |
_mesh | The mesh that is to be transformed |
Definition at line 231 of file MeshFunctionsT_impl.hh.