Mesh Class Reference

#include <RobotAPI/components/ArViz/Client/elements/Mesh.h>

+ Inheritance diagram for Mesh:

Public Member Functions

Meshcolors (const data::Color *cs, std::size_t size)
 
Meshcolors (const std::vector< data::Color > &cs)
 
 ElementOps (std::string const &id)
 
Meshfaces (const data::Face *fs, std::size_t size)
 
Meshfaces (const std::vector< data::Face > &fs)
 
Meshgrid2D (const std::vector< std::vector< Eigen::Vector3f >> &vertices, const std::vector< std::vector< viz::data::Color >> &colors)
 Builds a regular 2D grid. More...
 
Meshgrid2D (Eigen::Vector2f extents, Eigen::Vector2i numPoints, std::function< viz::Color(size_t i, size_t j, const Eigen::Vector3f &p)> colorFunc)
 Builds a regular 2D grid in the xy-plane. More...
 
template<class PolyhedronTraits_3 , class PolyhedronItems_3 , template< class T, class I, class A > class T_HDS, class Alloc >
Meshmesh (const CGAL::Polyhedron_3< PolyhedronTraits_3, PolyhedronItems_3, T_HDS, Alloc > &p3)
 
template<class T >
Meshmesh (const CGAL::Surface_mesh< T > &sm)
 
Meshvertices (const armarx::Vector3f *vs, std::size_t size)
 
Meshvertices (const Eigen::Vector3f *vs, std::size_t size)
 
Meshvertices (const std::vector< armarx::Vector3f > &vs)
 
Meshvertices (const std::vector< Eigen::Vector3f > &vs)
 
- Public Member Functions inherited from ElementOps< Mesh, data::ElementMesh >
Meshcolor (Color color)
 
Meshcolor (Ts &&...ts)
 
MeshcolorGlasbeyLUT (std::size_t id, int alpha=255)
 
 ElementOps (std::string const &id)
 
Meshenable (InteractionDescription const &interactionDescription)
 
Meshhide ()
 
Meshid (const std::string &id)
 
Meshorientation (Eigen::Matrix3f const &ori)
 
Meshorientation (Eigen::Quaternionf const &ori)
 
Meshorientation (float r, float p, float y)
 
MeshoverrideMaterial (bool value)
 
Eigen::Matrix4f pose () const
 
Meshpose (const Eigen::Affine3f &pose)
 
Meshpose (Eigen::Matrix4f const &pose)
 
Meshpose (Eigen::Vector3f const &position, Eigen::Matrix3f const &orientation)
 
Meshpose (Eigen::Vector3f const &position, Eigen::Quaternionf const &orientation)
 
Meshposition (Eigen::Vector3f const &pos)
 
Meshposition (float x, float y, float z)
 
Meshscale (Eigen::Vector3f scale)
 
Meshscale (float s)
 
Meshscale (float x, float y, float z)
 
Meshshow ()
 
MeshtransformPose (Eigen::Matrix4f const &p)
 
Meshvisible (bool visible)
 

Additional Inherited Members

- Public Attributes inherited from ElementOps< Mesh, data::ElementMesh >
IceInternal::Handle< data::ElementMesh > data_
 

Detailed Description

Definition at line 28 of file Mesh.h.

Member Function Documentation

◆ colors() [1/2]

Mesh& colors ( const data::Color cs,
std::size_t  size 
)
inline

Definition at line 62 of file Mesh.h.

+ Here is the caller graph for this function:

◆ colors() [2/2]

Mesh& colors ( const std::vector< data::Color > &  cs)
inline

Definition at line 68 of file Mesh.h.

+ Here is the call graph for this function:

◆ ElementOps()

ElementOps
inline

Definition at line 111 of file ElementOps.h.

◆ faces() [1/2]

Mesh& faces ( const data::Face *  fs,
std::size_t  size 
)
inline

Definition at line 73 of file Mesh.h.

+ Here is the caller graph for this function:

◆ faces() [2/2]

Mesh& faces ( const std::vector< data::Face > &  fs)
inline

Definition at line 79 of file Mesh.h.

+ Here is the call graph for this function:

◆ grid2D() [1/2]

Mesh& grid2D ( const std::vector< std::vector< Eigen::Vector3f >> &  vertices,
const std::vector< std::vector< viz::data::Color >> &  colors 
)

Builds a regular 2D grid.

The shape of vertices and colors must match, i.e.:

  • vertices and colors must have equal size.
  • Each element (nested vector) of vertices and colors must have equal size.
Parameters
verticesThe vertices.
colorsThe colors.

◆ grid2D() [2/2]

Mesh& grid2D ( Eigen::Vector2f  extents,
Eigen::Vector2i  numPoints,
std::function< viz::Color(size_t i, size_t j, const Eigen::Vector3f &p)>  colorFunc 
)

Builds a regular 2D grid in the xy-plane.

Parameters
extentsThe full extents in x and y direction.
numPointsThe number of points in x and y direction.
colorFuncA function determining the color of each vertex.
+ Here is the caller graph for this function:

◆ mesh() [1/2]

Mesh & mesh ( const CGAL::Polyhedron_3< PolyhedronTraits_3, PolyhedronItems_3, T_HDS, Alloc > &  p3)
inline

Definition at line 71 of file MeshCGALExtensions.h.

+ Here is the call graph for this function:

◆ mesh() [2/2]

Mesh & mesh ( const CGAL::Surface_mesh< T > &  sm)
inline

Definition at line 15 of file MeshCGALExtensions.h.

+ Here is the call graph for this function:

◆ vertices() [1/4]

Mesh& vertices ( const armarx::Vector3f *  vs,
std::size_t  size 
)
inline

Definition at line 51 of file Mesh.h.

◆ vertices() [2/4]

Mesh& vertices ( const Eigen::Vector3f *  vs,
std::size_t  size 
)
inline

Definition at line 33 of file Mesh.h.

+ Here is the caller graph for this function:

◆ vertices() [3/4]

Mesh& vertices ( const std::vector< armarx::Vector3f > &  vs)
inline

Definition at line 57 of file Mesh.h.

+ Here is the call graph for this function:

◆ vertices() [4/4]

Mesh& vertices ( const std::vector< Eigen::Vector3f > &  vs)
inline

Definition at line 46 of file Mesh.h.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: