Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
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.
Obb Compute () const
 Computes the bounding volume of the vertices specified in the constructor.

Friends

class ObbMakerTester< MeshType >

Constructor & Destructor Documentation

◆ ObbMaker()

template<class MeshType>
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()

template<class MeshType>
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.

◆ ObbMakerTester< MeshType >

template<class MeshType>
friend class ObbMakerTester< MeshType >
friend

The documentation for this class was generated from the following file:
  • drake/geometry/proximity/obb.h