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

Public Member Functions

None __init__ (self, str name, ObjectMesh obj)
None action (self, HistoryAction.Type t)
None compress (self)
int heapBytes (self)
str name (self)

Static Public Member Functions

None setObjectDirty (ObjectMesh obj)
Static Public Member Functions inherited from mrmeshpy.HistoryAction
HistoryAction operator (*args, **kwargs)

Static Public Attributes

 Obj = ObjectMesh

Detailed Description

Generated from:  MR::VersatileChangeMeshPointsAction

Undo action for ObjectMesh points only (not topology) change;
It starts its life storing all points (uncompressed format),
but can be switched to store only modified points (compressed format)

Constructor & Destructor Documentation

◆ __init__()

None mrmeshpy.VersatileChangeMeshPointsAction.__init__ ( self,
str name,
ObjectMesh obj )
use this constructor to remember object's mesh points in uncompressed format before making any changes in it

Member Function Documentation

◆ action()

None mrmeshpy.VersatileChangeMeshPointsAction.action ( self,
HistoryAction.Type actionType )
This function is called on history action (undo, redo, etc.)

Reimplemented from mrmeshpy.HistoryAction.

◆ compress()

None mrmeshpy.VersatileChangeMeshPointsAction.compress ( self)
switch from uncompressed to compressed format to occupy less amount of memory

◆ heapBytes()

int mrmeshpy.VersatileChangeMeshPointsAction.heapBytes ( self)
returns the amount of memory this object occupies on heap

Reimplemented from mrmeshpy.HistoryAction.

◆ name()

str mrmeshpy.VersatileChangeMeshPointsAction.name ( self)

Reimplemented from mrmeshpy.HistoryAction.

◆ setObjectDirty()

None mrmeshpy.VersatileChangeMeshPointsAction.setObjectDirty ( ObjectMesh obj)
static

Member Data Documentation

◆ Obj

mrmeshpy.VersatileChangeMeshPointsAction.Obj = ObjectMesh
static

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