MeshLib Python Docs
Loading...
Searching...
No Matches
Inheritance diagram for mrmeshpy.ObjectMesh:

Public Member Functions

None __init__ (self)
None setMesh (self, Mesh mesh)
Mesh updateMesh (self, Mesh mesh)
Mesh varMesh (self)
Public Member Functions inherited from mrmeshpy.ConstObjectMesh
 __init__ (self, *args, **kwargs)
str className (self)
str classNameInPlural (self)
Object clone (self)
std_vector_std_string getInfoLines (self)
Object shallowClone (self)
str typeName (self)
MeshIntersectionResult worldRayIntersection (self, ConstLine3f worldRay, ConstFaceBitSet region=None)
Public Member Functions inherited from mrmeshpy.ConstObjectMeshHolder
 __init__ (self, *args, **kwargs)
str actualSerializeFormat (self)
float avgEdgeLen (self)
ConstUndirectedEdgeBitSet creases (self)
ConstObjectMeshData data (self)
bool flatShading (self)
std_vector_ViewportMask getAllVisualizeProperties (self)
ConstMeshTexture getAncillaryTexture (self)
ConstVertCoords2 getAncillaryUVCoords (self)
ConstColor getBordersColor (self, ConstViewportId id=...)
ConstViewportProperty_Color getBordersColorsForAllViewports (self)
float getEdgeWidth (self)
ConstColor getEdgesColor (self, ConstViewportId id=...)
ConstViewportProperty_Color getEdgesColorsForAllViewports (self)
ConstFaceColors getFacesColorMap (self)
int getModelHash (self)
float getPointSize (self)
ConstColor getPointsColor (self, ConstViewportId id=...)
ConstViewportProperty_Color getPointsColorsForAllViewports (self)
bool getRedrawFlag (self, ConstViewportMask viewportMask)
ConstUndirectedEdgeBitSet getSelectedEdges (self)
ConstColor getSelectedEdgesColor (self, ConstViewportId id=...)
ConstViewportProperty_Color getSelectedEdgesColorsForAllViewports (self)
ConstFaceBitSet getSelectedFaces (self)
ConstColor getSelectedFacesColor (self, ConstViewportId id=...)
ConstViewportProperty_Color getSelectedFacesColorsForAllViewports (self)
ConstMeshTexture getTexture (self)
ConstTexturePerFace getTexturePerFace (self)
ConstVector_MeshTexture_TextureId getTextures (self)
ConstVertCoords2 getUVCoords (self)
ConstVertColors getVertsColorMap (self)
ConstViewportMask getVisualizePropertyMask (self, ConstAnyVisualizeMaskEnum type)
bool hasAncillaryTexture (self)
bool hasModel (self)
bool hasVisualRepresentation (self)
int heapBytes (self)
bool isMeshClosed (self)
ConstMesh mesh (self)
MeshPart meshPart (self)
ConstMesh meshPtr (self)
int numComponents (self)
int numCreaseEdges (self)
int numHandles (self)
int numHoles (self)
int numSelectedEdges (self)
int numSelectedFaces (self)
int numUndirectedEdges (self)
bool sameModels (self, ConstObject other)
float selectedArea (self)
str serializeFormat (self)
bool supportsVisualizeProperty (self, ConstAnyVisualizeMaskEnum type)
float totalArea (self)
float volume (self)
Public Member Functions inherited from mrmeshpy.ConstVisualObject
 __init__ (self, *args, **kwargs)
float getAmbientStrength (self)
ConstColor getBackColor (self, ConstViewportId viewportId=...)
ConstViewportProperty_Color getBackColorsForAllViewports (self)
Box3f getBoundingBox (self)
ColoringType getColoringType (self)
int getDirtyFlags (self)
ConstColor getFrontColor (self, bool selected=True, ConstViewportId viewportId=...)
ConstViewportProperty_Color getFrontColorsForAllViewports (self, bool selected=True)
int getGlobalAlpha (self, ConstViewportId viewportId=...)
ConstViewportProperty_unsigned_char getGlobalAlphaForAllViewports (self)
float getShininess (self)
float getSpecularStrength (self)
bool getVisualizeProperty (self, ConstAnyVisualizeMaskEnum type, ConstViewportMask viewportMask)
bool globalClippedByPlane (self, ConstViewportMask viewportMask='MR::ViewportMask::any()')
ViewportMask globalClippedByPlaneMask (self)
bool isPickable (self, ConstViewportMask viewportMask='MR::ViewportMask::any()')
None renderUi (self, ConstUiRenderParams params)
None resetDirty (self)
None resetDirtyExceptMask (self, int mask)
bool useDefaultScenePropertiesOnDeserialization (self)
Public Member Functions inherited from mrmeshpy.ConstObject
 __init__ (self, *args, **kwargs)
Object cloneTree (self)
ConstChildren constChildren (self)
bool globalVisibility (self, ConstViewportMask viewportMask='MR::ViewportMask::any()')
ViewportMask globalVisibilityMask (self)
bool isAncestor (self, ConstObject ancestor)
bool isAncillary (self)
bool isGlobalAncillary (self)
bool isLocked (self)
bool isParentLocked (self)
bool isSelected (self)
bool isVisible (self, ConstViewportMask viewportMask='MR::ViewportMask::any()')
str name (self)
None resetRedrawFlag (self)
Object shallowCloneTree (self)
Const_std_set_std_string tags (self)
ViewportMask visibilityMask (self)
AffineXf3f worldXf (self, ConstViewportId id=..., bool_output isDef=None)
ConstAffineXf3f xf (self, ConstViewportId id=..., bool_output isDef=None)
ConstViewportProperty_AffineXf3f xfsForAllViewports (self)
Public Member Functions inherited from mrmeshpy.ConstObjectChildrenHolder
 __init__ (self, *args, **kwargs)
Object getSharedPtr (self)
Public Member Functions inherited from mrmeshpy.ObjectMeshHolder
None __init__ (self)
None addTexture (self, ConstMeshTexture texture)
None applyScale (self, float scaleFactor)
None clearAncillaryTexture (self)
None copyAllSolidColors (self, ConstObjectMeshHolder other)
None copyColors (self, ConstObjectMeshHolder src, ConstVertMap thisToSrc, ConstFaceMap thisToSrcFaces=...)
None copyTextureAndColors (self, ConstObjectMeshHolder src, ConstVertMap thisToSrc, ConstFaceMap thisToSrcFaces=...)
None invalidateMetricsCache (self, int mask)
None resetColors (self)
None resetFrontColor (self)
None selectEdges (self, ConstUndirectedEdgeBitSet newSelection)
None selectFaces (self, ConstFaceBitSet newSelection)
None setAncillaryTexture (self, ConstMeshTexture texture)
None setAncillaryUVCoords (self, ConstVertCoords2 uvCoordinates)
None setBordersColor (self, ConstColor color, ConstViewportId id=...)
None setBordersColorsForAllViewports (self, ConstViewportProperty_Color val)
None setCreases (self, ConstUndirectedEdgeBitSet creases)
None setData (self, ObjectMeshData data)
None setDirtyFlags (self, int mask, bool invalidateCaches=True)
None setDirtyFlagsFast (self, int mask)
None setEdgeWidth (self, float edgeWidth)
None setEdgesColor (self, ConstColor color, ConstViewportId id=...)
None setEdgesColorsForAllViewports (self, ConstViewportProperty_Color val)
None setFacesColorMap (self, ConstFaceColors facesColorMap)
None setFlatShading (self, bool on)
None setPointSize (self, float size)
None setPointsColor (self, ConstColor color, ConstViewportId id=...)
None setPointsColorsForAllViewports (self, ConstViewportProperty_Color val)
None setSelectedEdgesColor (self, ConstColor color, ConstViewportId id=...)
None setSelectedEdgesColorsForAllViewports (self, ConstViewportProperty_Color val)
None setSelectedFacesColor (self, ConstColor color, ConstViewportId id=...)
None setSelectedFacesColorsForAllViewports (self, ConstViewportProperty_Color val)
None setSerializeFormat (self, str newFormat)
None setTexturePerFace (self, ConstTexturePerFace texturePerFace)
None setTextures (self, ConstVector_MeshTexture_TextureId texture)
None setUVCoords (self, ConstVertCoords2 uvCoordinates)
None setVertsColorMap (self, ConstVertColors vertsColorMap)
None updateAncillaryUVCoords (self, VertCoords2 updated)
None updateData (self, ObjectMeshData data)
None updateFacesColorMap (self, FaceColors updated)
None updateTexturePerFace (self, TexturePerFace texturePerFace)
None updateTextures (self, Vector_MeshTexture_TextureId updated)
None updateUVCoords (self, VertCoords2 updated)
None updateVertsColorMap (self, VertColors vertsColorMap)
Mesh varMeshPtr (self)
Public Member Functions inherited from mrmeshpy.VisualObject
None __init__ (self)
None setAllVisualizeProperties (self, Const_std_vector_ViewportMask properties)
None setAmbientStrength (self, float ambientStrength)
None setBackColor (self, ConstColor color, ConstViewportId viewportId=...)
None setBackColorsForAllViewports (self, ConstViewportProperty_Color val)
None setColoringType (self, ColoringType coloringType)
None setFrontColor (self, ConstColor color, bool selected, ConstViewportId viewportId=...)
None setFrontColorsForAllViewports (self, ConstViewportProperty_Color val, bool selected=True)
None setGlobalAlpha (self, int alpha, ConstViewportId viewportId=...)
None setGlobalAlphaForAllViewports (self, ConstViewportProperty_unsigned_char val)
None setGlobalClippedByPlane (self, bool on, ConstViewportMask viewportMask='MR::ViewportMask::all()')
None setPickable (self, bool on, ConstViewportMask viewportMask='MR::ViewportMask::all()')
None setShininess (self, float shininess)
None setSpecularStrength (self, float specularStrength)
None setUseDefaultScenePropertiesOnDeserialization (self, bool useDefaultScenePropertiesOnDeserialization)
None setVisualizeProperty (self, bool value, ConstAnyVisualizeMaskEnum type, ConstViewportMask viewportMask)
None setVisualizePropertyMask (self, ConstAnyVisualizeMaskEnum type, ConstViewportMask viewportMask)
None showName (self, bool on)
bool showName (ConstVisualObject self)
None toggleVisualizeProperty (self, ConstAnyVisualizeMaskEnum type, ConstViewportMask viewportMask)
Public Member Functions inherited from mrmeshpy.Object
None __init__ (self)
bool addChild (self, Object child, bool recognizedChild=True)
bool addChildBefore (self, Object newChild, Object existingChild)
bool addTag (self, str tag)
VisualObject asType (self)
ConstVisualObject asType (ConstObject self)
Const_std_vector_std_shared_ptr_Object children (self)
Const_std_vector_std_shared_ptr_Object_const children (ConstObject self)
bool detachFromParent (self)
Object find (self, str name)
ConstObject find (ConstObject self, str name)
Object findCommonAncestor (self, Object other)
ConstObject findCommonAncestor (ConstObject self, ConstObject other)
Object parent (self)
ConstObject parent (ConstObject self)
None removeAllChildren (self)
bool removeChild (self, Object child)
bool removeChild (self, Object child)
bool removeTag (self, str tag)
None resetXf (self, ConstViewportId id=...)
bool select (self, bool on)
None setAncillary (self, bool ancillary)
None setGlobalVisibility (self, bool on, ConstViewportMask viewportMask='MR::ViewportMask::any()')
None setLocked (self, bool on)
None setName (self, str name)
None setParentLocked (self, bool lock)
None setVisibilityMask (self, ConstViewportMask viewportMask)
None setVisible (self, bool on, ConstViewportMask viewportMask='MR::ViewportMask::all()')
None setWorldXf (self, ConstAffineXf3f xf, ConstViewportId id=...)
None setXf (self, ConstAffineXf3f xf, ConstViewportId id=...)
None setXfsForAllViewports (self, ConstViewportProperty_AffineXf3f xf)
None sortChildren (self)
None swap (self, Object other)
Public Member Functions inherited from mrmeshpy.ObjectChildrenHolder
None __init__ (self)
None __init__ (self, ConstObjectChildrenHolder arg0)
ObjectChildrenHolder assign (self, ConstObjectChildrenHolder other)

Static Public Member Functions

 extractMesh (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ConstObjectMesh
str StaticClassName ()
str StaticClassNameInPlural ()
str StaticTypeName ()
Static Public Member Functions inherited from mrmeshpy.ConstObjectMeshHolder
Box3f getWorldBox (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ConstVisualObject
bool render (*args, **kwargs)
None renderForPicker (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ConstObject
Box3f getWorldTreeBox (*args, **kwargs)
Static Public Member Functions inherited from mrmeshpy.ObjectChildrenHolder
None __init__ (*args, **kwargs)

Detailed Description

Generated from:  MR::ObjectMesh
Aliases:  ChangeMeshAction.Obj, ChangeMeshCreasesAction.Obj, ChangeMeshDataAction.Obj, ChangeMeshEdgeSelectionAction.Obj, ChangeMeshFaceSelectionAction.Obj, ChangeMeshPointsAction.Obj, ChangeMeshTopologyAction.Obj, VersatileChangeMeshPointsAction.Obj, std_shared_ptr_ObjectMesh

an object that stores a mesh

Constructor & Destructor Documentation

◆ __init__()

None mrmeshpy.ObjectMesh.__init__ ( self)

Member Function Documentation

◆ extractMesh()

mrmeshpy.ObjectMesh.extractMesh ( * args,
** kwargs )
static
meshPtr(self: meshlib.mrmeshpy.ConstObjectMeshHolder) -> meshlib.mrmeshpy.ConstMesh

returns the mesh of this object, or nullptr if it is not set

◆ setMesh()

None mrmeshpy.ObjectMesh.setMesh ( self,
Mesh mesh )
sets given mesh to this, resets selection and creases

◆ updateMesh()

Mesh mrmeshpy.ObjectMesh.updateMesh ( self,
Mesh mesh )
sets given mesh to this, and returns back previous mesh of this;
does not touch selection or creases

◆ varMesh()

Mesh mrmeshpy.ObjectMesh.varMesh ( self)
returns variable mesh, if const mesh is needed use `meshPtr()` instead

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