Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::geometry::CompoundMesh Class Reference

This is store meshes that are associated with as single resource. More...

#include <compound_mesh.h>

Inheritance diagram for tesseract::geometry::CompoundMesh:

Public Types

using Ptr = std::shared_ptr<CompoundMesh>
using ConstPtr = std::shared_ptr<const CompoundMesh>
Public Types inherited from tesseract::geometry::Geometry
using Ptr = std::shared_ptr<Geometry>
using ConstPtr = std::shared_ptr<const Geometry>

Public Member Functions

 CompoundMesh (std::vector< std::shared_ptr< PolygonMesh > > meshes)
 CompoundMesh (std::vector< std::shared_ptr< ConvexMesh > > meshes)
 CompoundMesh (std::vector< std::shared_ptr< Mesh > > meshes)
const std::vector< std::shared_ptr< PolygonMesh > > & getMeshes () const
 Get the meshes.
std::shared_ptr< const tesseract::common::Resource > getResource () const
 Get the path to file used to generate the meshs.
const Eigen::Vector3d & getScale () const
 Get the scale applied to file used to generate the meshs.
Geometry::Ptr clone () const override final
 Create a copy of this shape.
bool operator== (const CompoundMesh &rhs) const
bool operator!= (const CompoundMesh &rhs) const
Public Member Functions inherited from tesseract::geometry::Geometry
 Geometry (GeometryType type=GeometryType::UNINITIALIZED)
 Geometry (const Geometry &)=default
Geometry & operator= (const Geometry &)=default
 Geometry (Geometry &&)=default
Geometry & operator= (Geometry &&)=default
GeometryType getType () const
 Get the geometry type.
void setUUID (const boost::uuids::uuid &uuid)
 Set the geometry UUID.
const boost::uuids::uuid & getUUID () const
 Get the geometry UUID.
bool operator== (const Geometry &rhs) const
bool operator!= (const Geometry &rhs) const

Friends

template<class Archive>
friend void::tesseract::geometry::serialize (Archive &ar, CompoundMesh &obj)

Detailed Description

This is store meshes that are associated with as single resource.

Member Function Documentation

◆ getMeshes()

const std::vector< std::shared_ptr< PolygonMesh > > & tesseract::geometry::CompoundMesh::getMeshes ( ) const

Get the meshes.

Returns
The meshes

◆ getResource()

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.

Returns
Absolute path to the mesh file

◆ getScale()

const Eigen::Vector3d & tesseract::geometry::CompoundMesh::getScale ( ) const

Get the scale applied to file used to generate the meshs.

Returns
The scale x, y, z

◆ clone()

Geometry::Ptr tesseract::geometry::CompoundMesh::clone ( ) const
finaloverridevirtual

Create a copy of this shape.

Implements tesseract::geometry::Geometry.