#include <drake/attic/multibody/shapes/geometry.h>
◆ TriangulatePolicy
Specification of how the Mesh should process faces during parsing.
Enumerator 

kFailOnNonTri  Nontriangular faces cause an exception to be thrown.

kTry  The parser will attempt to triangulate nontriangular faces, throwing an exception if the attempt fails.

◆ Mesh()
Mesh 
( 
const std::string & 
uri, 


const std::string & 
resolved_filename 

) 
 
Constructs a representation of a mesh to be loaded from resolved_filename
.
uri
provides a unique identifier used to interact with BotVisualizer.
◆ ~Mesh()
◆ clone()
◆ extractMeshVertices()
bool extractMeshVertices 
( 
Eigen::Matrix3Xd & 
vertex_coordinates  ) 
const 
◆ getBoundingBoxPoints()
void getBoundingBoxPoints 
( 
Eigen::Matrix3Xd & 
points  ) 
const 

overridevirtual 
◆ getFaces()
Returns the faces making up this geometry as a vector of triangles.
Each triangle contains three indices into the vertex list returned by the Geometry getPoints() method.
 Parameters

[out]  faces  Returns a vector of triangles describing this geometry. 
Reimplemented from Geometry.
◆ getPoints()
void getPoints 
( 
Eigen::Matrix3Xd & 
points  ) 
const 

overridevirtual 
◆ hasFaces()
 Returns
true
if this geometry can return faces.
Reimplemented from Geometry.
◆ LoadObjFile()
Loads triangle mesh from an obj file into the provided vectors of vertices and triangles.
This method can optionally attempt to triangulate the mesh as it is read. This triangulation is conservative. Nontriangular faces are decomposed into a set of equivalent triangles. It places certain requirements on the mesh for the triangulation to be valid. If these requirements are not met, an exception is thrown. These requirements are:
 Nontriangular faces cannot contain a sequence of colinear vertices.
 Nontriangular faces must be close to planar; the decomposed triangles normals can deviate by no more than 30 degrees from their edgeadjacent neighbors.
 Decomposed triangles must have an area larger than 10⁻¹⁰ m².
 Note
 The triangulation method is simple. Even if these requirements are met, triangulation might fail.
 Parameters

[out]  vertices  Vector of 3D vertices in the mesh. 
[out]  triangles  Vector of indices for each triangle in the mesh. The ith entry of triangles holds a 3D vector of integer indices into vertices corresponding to the vertices forming the ith triangle. 
[in]  triangulate  Specifies the triangulation policy. 
On output, vertices.size()
corresponds to the number of vertices in the mesh while triangles.size()
corresponds to the number of triangles in the mesh.
◆ operator<<
std::ostream& operator<< 
( 
std::ostream & 
out, 


const Mesh & 
mm 

) 
 

friend 
A toString method for this class.
◆ resolved_filename_
std::string resolved_filename_ 
◆ scale_
◆ uri_
The documentation for this class was generated from the following files: