Drake
Drake C++ Documentation
ObbMaker< MeshType > Class Template Reference

Detailed Description

template<class MeshType>
class drake::geometry::ObbMaker< MeshType >

ObbMaker performs an algorithm to create an oriented bounding box that fits a specified set of vertices in a mesh.

Template Parameters
MeshTypeis TriangleSurfaceMesh<T>, VolumeMesh<T>, PolygonSurfaceMesh<T>, where T is double or AutoDiffXd.

#include <drake/geometry/proximity/obb.h>

Public Member Functions

 ObbMaker (const MeshType &mesh_M, const std::set< int > &vertices)
 Specifies the input mesh with frame M and a set of vertices to fit. More...
 
Obb Compute () const
 Computes the bounding volume of the vertices specified in the constructor. More...
 

Friends

class ObbMakerTester< MeshType >
 

Constructor & Destructor Documentation

◆ ObbMaker()

ObbMaker ( const MeshType &  mesh_M,
const std::set< int > &  vertices 
)

Specifies the input mesh with frame M and a set of vertices to fit.

Parameters
mesh_MThe mesh that owns the vertices expressed in frame M.
verticesThe vertices to fit.
Precondition
vertices is not empty, and each of its entry is in the range [0, V), where V is mesh_M.num_vertices().

Member Function Documentation

◆ Compute()

Obb Compute ( ) const

Computes the bounding volume of the vertices specified in the constructor.

Return values
obb_MThe oriented bounding box posed in frame M.

Friends And Related Function Documentation

◆ ObbMakerTester< MeshType >

friend class ObbMakerTester< MeshType >
friend

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