MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::MeshOrPointsObject Class Reference

#include <MRMeshOrPointsObject.h>

Public Member Functions

 MeshOrPointsObject ()
 
MRMESH_API MeshOrPointsObject (std::shared_ptr< VisualObject > vo)
 
 MeshOrPointsObject (std::shared_ptr< ObjectMesh > om)
 
 MeshOrPointsObject (std::shared_ptr< ObjectPoints > op)
 
MRMESH_API void set (std::shared_ptr< ObjectMesh > om)
 set to hold ObjectMesh
 
MRMESH_API ObjectMeshasObjectMesh () const
 if holding ObjectMesh, return pointer to it, otherwise return nullptr
 
MRMESH_API void set (std::shared_ptr< ObjectPoints > op)
 set to hold ObjectPoints
 
MRMESH_API ObjectPointsasObjectPoints () const
 if holding ObjectPoints, return pointer to it, otherwise return nullptr
 
void reset ()
 
const std::shared_ptr< VisualObject > & operator-> () const
 
const std::shared_ptr< VisualObject > & get () const
 
bool operator== (std::shared_ptr< VisualObject > other) const
 
MRMESH_API MeshOrPoints meshOrPoints () const
 get class that hold either mesh part or point cloud
 

Detailed Description

This class can hold either ObjectMesh or ObjectPoint It is used for convenient storage and operation with any of them


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