triangularMesh.hh File Reference
#include <string>
#include <mia/core/iodata.hh>
#include <mia/core/ioplugin.hh>
#include <mia/core/iohandler.hh>
#include <mia/3d/vector.hh>
Include dependency graph for triangularMesh.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  CTriangleMesh
 A class to deine a triangle mesh with some attributes. More...
 

Macros

#define EXPORT_MESH   __attribute__((visibility("default")))
 define visibility for proper export More...
 

Typedefs

typedef TIOPlugin< CTriangleMeshCMeshIOPlugin
 IO plugin for triangular meshes. More...
 
typedef THandlerSingleton< TIOPluginHandler< CMeshIOPlugin > > CMeshIOPluginHandler
 Plug-in handler for triangulat mesh IO. More...
 
typedef CTriangleMesh::Pointer PTriangleMesh
 Pointer type of the CTriangle mesh class. More...
 

Functions

template<class Deformation >
void colorize_mesh (CTriangleMesh *mesh, const Deformation &deform)
 
template<class Deformation >
CTriangleMesh colorize_mesh (const CTriangleMesh &mesh, const Deformation &deform)
 
PTriangleMesh EXPORT_MESH get_sub_mesh (const CTriangleMesh &mesh, const std::vector< unsigned > &triangle_indices)
 

Variables

template class EXPORT_MESH TIOPlugin< CTriangleMesh >
 
template class EXPORT_MESH TPlugin< CTriangleMesh, io_plugin_type >
 

Macro Definition Documentation

◆ EXPORT_MESH

#define EXPORT_MESH   __attribute__((visibility("default")))

define visibility for proper export

Definition at line 44 of file triangularMesh.hh.

Typedef Documentation

◆ CMeshIOPlugin

IO plugin for triangular meshes.

Definition at line 344 of file triangularMesh.hh.

◆ CMeshIOPluginHandler

Plug-in handler for triangulat mesh IO.

Definition at line 350 of file triangularMesh.hh.

◆ PTriangleMesh

Pointer type of the CTriangle mesh class.

Definition at line 283 of file triangularMesh.hh.

Function Documentation

◆ colorize_mesh() [1/2]

template<class Deformation >
void colorize_mesh ( CTriangleMesh mesh,
const Deformation &  deform 
)

This function is used to generate the deformation scale of a mesh as the scalar product of the surface normal and a deformation field. if neccessary the normals are evaluated

Parameters
meshthe mesh whose scale values will be set
deformthe deformation to be used to set the scale values

Definition at line 297 of file triangularMesh.hh.

References gsl::dot(), CTriangleMesh::ed_normal, CTriangleMesh::evaluate_normals(), and CTriangleMesh::get_available_data().

Referenced by colorize_mesh().

◆ colorize_mesh() [2/2]

template<class Deformation >
CTriangleMesh colorize_mesh ( const CTriangleMesh mesh,
const Deformation &  deform 
)

This function is used to generate the deformation scale of a mesh as the scalar product of the surface normal and a deformation field.

Parameters
meshthe input mesh
deformthe deformation to be used to set the scale values
Returns
a copy of the input mesh with additionally set scale values and possibly added normals

Definition at line 328 of file triangularMesh.hh.

References colorize_mesh().

◆ get_sub_mesh()

PTriangleMesh EXPORT_MESH get_sub_mesh ( const CTriangleMesh mesh,
const std::vector< unsigned > &  triangle_indices 
)

Variable Documentation

◆ TIOPlugin< CTriangleMesh >

template class EXPORT_MESH TIOPlugin< CTriangleMesh >

◆ TPlugin< CTriangleMesh, io_plugin_type >

template class EXPORT_MESH TPlugin< CTriangleMesh, io_plugin_type >