MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstMeshOrPointsObject Class Reference
Inheritance diagram for mrmeshpy.ConstMeshOrPointsObject:

Public Member Functions

bool __eq__ (self, VisualObject other)
 __init__ (self, *args, **kwargs)
bool __ne__ (self, VisualObject other)
ObjectMesh asObjectMesh (self)
ObjectPoints asObjectPoints (self)
VisualObject get (self)
MeshOrPoints meshOrPoints (self)

Detailed Description

Generated from:  MR::MeshOrPointsObject

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

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstMeshOrPointsObject.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstMeshOrPointsObject) -> None

2. __init__(self: meshlib.mrmeshpy.ConstMeshOrPointsObject, vo: meshlib.mrmeshpy.VisualObject) -> None

construct, automatically detecting the object type (ObjectMesh or ObjectPoint)
if set an another type, will be reset

3. __init__(self: meshlib.mrmeshpy.ConstMeshOrPointsObject, om: meshlib.mrmeshpy.ObjectMesh) -> None

4. __init__(self: meshlib.mrmeshpy.ConstMeshOrPointsObject, op: meshlib.mrmeshpy.ObjectPoints) -> None

5. __init__(self: meshlib.mrmeshpy.ConstMeshOrPointsObject, arg0: meshlib.mrmeshpy.ConstMeshOrPointsObject) -> None

Implicit copy constructor.

6. __init__(self: meshlib.mrmeshpy.ConstMeshOrPointsObject, : meshlib.mrmeshpy.ConstMeshOrPointsObject) -> None

Member Function Documentation

◆ __eq__()

bool mrmeshpy.ConstMeshOrPointsObject.__eq__ ( self,
VisualObject other )

◆ __ne__()

bool mrmeshpy.ConstMeshOrPointsObject.__ne__ ( self,
VisualObject other )

◆ asObjectMesh()

ObjectMesh mrmeshpy.ConstMeshOrPointsObject.asObjectMesh ( self)
if holding ObjectMesh, return pointer to it, otherwise return nullptr

◆ asObjectPoints()

ObjectPoints mrmeshpy.ConstMeshOrPointsObject.asObjectPoints ( self)
if holding ObjectPoints, return pointer to it, otherwise return nullptr

◆ get()

VisualObject mrmeshpy.ConstMeshOrPointsObject.get ( self)

◆ meshOrPoints()

MeshOrPoints mrmeshpy.ConstMeshOrPointsObject.meshOrPoints ( self)
get class that hold either mesh part or point cloud

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