|
typedef S | index_type |
| The type of indices.
|
|
typedef rw::geometry::IndexedTriangle< S > | tri_type |
| The type of the triangles of the mesh.
|
|
typedef std::vector< tri_type > | TriangleArray |
| The vector of triangles.
|
|
typedef IndexedTriMesh< T >::VertexArray | VertexArray |
| the vertex array type More...
|
|
typedef rw::core::Ptr< rw::geometry::IndexedTriMeshN0< T, S > > | Ptr |
| Smart pointer type of this class.
|
|
typedef double | value_type |
| the basic value type of this mesh (for instance double or float)
|
|
typedef std::vector< rw::math::Vector3D< double > > | VertexArray |
| the vertex array type
|
|
typedef rw::core::Ptr< rw::geometry::IndexedTriMesh< double > > | Ptr |
| the smart pointer type of this triangle mesh
|
|
typedef rw::core::Ptr< TriMesh > | Ptr |
| smart pointer type to this class
|
|
enum | GeometryType {
PointCloud
, LineMesh
, PlainTriMesh
, IdxTriMesh
,
SpherePrim
, BoxPrim
, OBBPrim
, AABBPrim
,
LinePrim
, PointPrim
, PyramidPrim
, ConePrim
,
TrianglePrim
, CylinderPrim
, TubePrim
, PlanePrim
,
RayPrim
, Implicit
, Quadratic
, UserType
} |
| geometry data types
|
|
typedef rw::core::Ptr< GeometryData > | Ptr |
| smart pointer type to this class
|
|
typedef rw::core::Ptr< const GeometryData > | CPtr |
| const smart pointer type to this class
|
|
|
| IndexedTriMeshN0 () |
| Constructor.
|
|
| IndexedTriMeshN0 (VertexArray *vertices) |
| constructor - ownership of the vertice array is taken More...
|
|
| IndexedTriMeshN0 (rw::core::Ptr< VertexArray > vertices, rw::core::Ptr< VertexArray > normals) |
| constructor - ownership of the vertice array is taken More...
|
|
| IndexedTriMeshN0 (rw::core::Ptr< VertexArray > vertices, rw::core::Ptr< VertexArray > normals, rw::core::Ptr< TriangleArray > triangles) |
| constructor More...
|
|
| IndexedTriMeshN0 (rw::core::Ptr< VertexArray > vertices, rw::core::Ptr< TriangleArray > triangles) |
| constructor More...
|
|
| IndexedTriMeshN0 (const rw::geometry::IndexedTriMeshN0< T, S > &mesh) |
| Make deep copy of mesh. More...
|
|
virtual | ~IndexedTriMeshN0 () |
| Destructor.
|
|
const rw::math::Vector3D< T > & | getVertexNormal (size_t i, VertexIdx vidx) const |
| Get normal of vertex vidx of triangle at index i. More...
|
|
rw::math::Vector3D< T > & | getVertexNormal (size_t i, VertexIdx vidx) |
| Get normal of vertex vidx of triangle at index i. More...
|
|
const rw::math::Vector3D< T > & | getVertex (size_t i, VertexIdx vidx) const |
| get vertex vidx of triangle at index i. More...
|
|
rw::math::Vector3D< T > & | getVertex (size_t i, VertexIdx vidx) |
| get vertex vidx of triangle at index i. More...
|
|
rw::geometry::IndexedTriangle< uint32_t > | getIndexedTriangle (size_t i) const |
| get the indexed triangle at index i More...
|
|
rw::geometry::Triangle< double > | getTriangle (size_t i) const |
| gets the triangle at index idx. More...
|
|
void | getTriangle (size_t i, rw::geometry::Triangle< double > &dst) const |
| gets the triangle at index idx. More...
|
|
void | getTriangle (size_t i, rw::geometry::Triangle< float > &dst) const |
| gets the triangle at index idx. More...
|
|
void | add (const tri_type &triangle) |
| Add indexed triangle to the triangle mesh. More...
|
|
const rw::math::Vector3D< T > & | getTriVertex (size_t i, size_t triIdx) const |
| get vertex i of triangle at index triIdx. More...
|
|
rw::math::Vector3D< T > & | getTriVertex (size_t i, size_t triIdx) |
| get vertex i of triangle at index triIdx. More...
|
|
TriangleArray & | getTriangles () |
| get triangle list More...
|
|
const TriangleArray & | getTriangles () const |
| get triangle list More...
|
|
tri_type & | operator[] (int i) |
| get indexed triangle at index i More...
|
|
const tri_type & | operator[] (int i) const |
| get indexed triangle at index i More...
|
|
T | calcFaceArea (size_t triIdx) |
| calculate area of triangle at index triIdx More...
|
|
rw::math::Vector3D< T > | calcFaceCentroid (size_t triIdx) |
| calculate centroid of triangle at index triIdx More...
|
|
rw::math::Vector3D< T > | calcFaceNormal (size_t triIdx) const |
| calculate face normal of triangle at index triIdx More...
|
|
void | resize (size_t nsize) |
| Set the number of triangles in the mesh. More...
|
|
int | getNrTris () const |
| The number of triangles in the mesh. More...
|
|
size_t | getSize () const |
| gets the number of triangles in the triangle array. More...
|
|
TriMesh::Ptr | clone () const |
| make a clone of this triangle mesh More...
|
|
const std::vector< rw::math::Vector3D< double > > & | getNormals () const |
| Get vector of normals. More...
|
|
std::vector< rw::math::Vector3D< double > > & | getNormals () |
| Get vector of normals. More...
|
|
const std::vector< rw::math::Vector3D< double > > & | getVertices () const |
| Get vector of vertices. More...
|
|
std::vector< rw::math::Vector3D< double > > & | getVertices () |
| Get vector of vertices. More...
|
|
uint8_t | getTriangleStride () const |
| The stride of a triangle. More...
|
|
uint8_t | getIndexSize () const |
| The size of the index type used. More...
|
|
uint8_t * | getIndexPtr () |
| Pointer to the start of the index array. More...
|
|
virtual size_t | size () const |
| gets the number of triangles in the triangle array. More...
|
|
rw::math::Vector3D< double > & | getVertex (size_t i) |
| Get vertex from vertex list. More...
|
|
const rw::math::Vector3D< double > & | getVertex (size_t i) const |
| Get vertex from vertex list. More...
|
|
bool | hasVertexNormals () const |
| Check if trimesh has vertex normals defined. More...
|
|
bool | hasFaceNormals () const |
| Check if trimesh has face normals defined. More...
|
|
GeometryData::GeometryType | getType () const |
| the type of this primitive More...
|
|
void * | getIndices () |
| Get pointer to first element of index array. More...
|
|
void | scale (double scale) |
| Scale all vertices in the mesh. More...
|
|
virtual | ~TriMesh () |
| destructor
|
|
rw::core::Ptr< TriMesh > | getTriMesh (bool forceCopy=true) |
| gets a trimesh representation of this geometry data. More...
|
|
rw::core::Ptr< const TriMesh > | getTriMesh (bool forceCopy=true) const |
| gets a trimesh representation of this geometry data. More...
|
|
virtual bool | isConvex () |
| test if this geometry data is convex More...
|
|
void | setConvexEnabled (bool isConvex) |
|
double | getVolume () const |
| calculate a volume of this triangle mesh
|
|
virtual | ~GeometryData () |
| Destructor.
|
|
template<class T = double, class S = uint16_t>
class rw::geometry::IndexedTriMeshN0< T, S >
an Indexed Triangle mesh with zero normals