This is store meshes that are associated with as single resource. More...
#include <compound_mesh.h>
Public Types | |
using | ConstPtr = std::shared_ptr< const CompoundMesh > |
using | Ptr = std::shared_ptr< CompoundMesh > |
![]() | |
using | ConstPtr = std::shared_ptr< const Geometry > |
using | Ptr = std::shared_ptr< Geometry > |
Public Member Functions | |
Geometry::Ptr | clone () const override final |
Create a copy of this shape. More... | |
CompoundMesh ()=default | |
CompoundMesh (std::vector< std::shared_ptr< ConvexMesh >> meshes) | |
CompoundMesh (std::vector< std::shared_ptr< Mesh >> meshes) | |
CompoundMesh (std::vector< std::shared_ptr< PolygonMesh >> meshes) | |
CompoundMesh (std::vector< std::shared_ptr< SDFMesh >> meshes) | |
const std::vector< std::shared_ptr< PolygonMesh > > & | getMeshes () const |
Get the meshes. More... | |
std::shared_ptr< const tesseract_common::Resource > | getResource () const |
Get the path to file used to generate the meshs. More... | |
const Eigen::Vector3d & | getScale () const |
Get the scale applied to file used to generate the meshs. More... | |
bool | operator!= (const CompoundMesh &rhs) const |
bool | operator== (const CompoundMesh &rhs) const |
![]() | |
Geometry (const Geometry &)=default | |
Geometry (Geometry &&)=default | |
Geometry (GeometryType type=GeometryType::UNINITIALIZED) | |
GeometryType | getType () const |
Get the geometry type. More... | |
const boost::uuids::uuid & | getUUID () const |
Get the geometry UUID. More... | |
bool | operator!= (const Geometry &rhs) const |
Geometry & | operator= (const Geometry &)=default |
Geometry & | operator= (Geometry &&)=default |
bool | operator== (const Geometry &rhs) const |
void | setUUID (const boost::uuids::uuid &uuid) |
Set the geometry UUID. More... | |
virtual | ~Geometry ()=default |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
std::vector< std::shared_ptr< PolygonMesh > > | meshes_ |
Friends | |
class | boost::serialization::access |
struct | tesseract_common::Serialization |
This is store meshes that are associated with as single resource.
Definition at line 49 of file compound_mesh.h.
using tesseract_geometry::CompoundMesh::ConstPtr = std::shared_ptr<const CompoundMesh> |
Definition at line 53 of file compound_mesh.h.
using tesseract_geometry::CompoundMesh::Ptr = std::shared_ptr<CompoundMesh> |
Definition at line 52 of file compound_mesh.h.
|
default |
tesseract_geometry::CompoundMesh::CompoundMesh | ( | std::vector< std::shared_ptr< PolygonMesh >> | meshes | ) |
Definition at line 54 of file compound_mesh.cpp.
tesseract_geometry::CompoundMesh::CompoundMesh | ( | std::vector< std::shared_ptr< ConvexMesh >> | meshes | ) |
Definition at line 70 of file compound_mesh.cpp.
tesseract_geometry::CompoundMesh::CompoundMesh | ( | std::vector< std::shared_ptr< Mesh >> | meshes | ) |
Definition at line 72 of file compound_mesh.cpp.
tesseract_geometry::CompoundMesh::CompoundMesh | ( | std::vector< std::shared_ptr< SDFMesh >> | meshes | ) |
Definition at line 74 of file compound_mesh.cpp.
|
finaloverridevirtual |
Create a copy of this shape.
Implements tesseract_geometry::Geometry.
Definition at line 85 of file compound_mesh.cpp.
const std::vector< std::shared_ptr< PolygonMesh > > & tesseract_geometry::CompoundMesh::getMeshes | ( | ) | const |
std::shared_ptr< const tesseract_common::Resource > tesseract_geometry::CompoundMesh::getResource | ( | ) | const |
Get the path to file used to generate the meshs.
Note: If empty, assume it was manually generated.
Definition at line 78 of file compound_mesh.cpp.
const Eigen::Vector3d & tesseract_geometry::CompoundMesh::getScale | ( | ) | const |
Get the scale applied to file used to generate the meshs.
Definition at line 83 of file compound_mesh.cpp.
bool tesseract_geometry::CompoundMesh::operator!= | ( | const CompoundMesh & | rhs | ) | const |
Definition at line 107 of file compound_mesh.cpp.
bool tesseract_geometry::CompoundMesh::operator== | ( | const CompoundMesh & | rhs | ) | const |
Definition at line 95 of file compound_mesh.cpp.
|
private |
Definition at line 110 of file compound_mesh.cpp.
|
friend |
Definition at line 90 of file compound_mesh.h.
|
friend |
Definition at line 91 of file compound_mesh.h.
|
private |
Definition at line 88 of file compound_mesh.h.