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

Public Member Functions

 __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 showName (self)
bool useDefaultScenePropertiesOnDeserialization (self)
Public Member Functions inherited from mrmeshpy.ConstObject
 __init__ (self, *args, **kwargs)
ConstVisualObject asType (self)
Const_std_vector_std_shared_ptr_Object_const children (self)
Object cloneTree (self)
ConstChildren constChildren (self)
ConstObject find (self, str name)
ConstObject findCommonAncestor (self, ConstObject other)
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)
ConstObject parent (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)

Static Public Member Functions

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)

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__()

mrmeshpy.ConstObjectMesh.__init__ ( self,
* args,
** kwargs )
__init__(self: meshlib.mrmeshpy.ConstObjectMesh) -> None

Member Function Documentation

◆ className()

str mrmeshpy.ConstObjectMesh.className ( self)

Reimplemented from mrmeshpy.ConstVisualObject.

◆ classNameInPlural()

str mrmeshpy.ConstObjectMesh.classNameInPlural ( self)

Reimplemented from mrmeshpy.ConstVisualObject.

◆ clone()

Object mrmeshpy.ConstObjectMesh.clone ( self)
clones this object only, without its children,
making new object the owner of all copied resources

Reimplemented from mrmeshpy.ConstObjectMeshHolder.

◆ getInfoLines()

std_vector_std_string mrmeshpy.ConstObjectMesh.getInfoLines ( self)
return several info lines that can better describe the object in the UI

Reimplemented from mrmeshpy.ConstVisualObject.

◆ shallowClone()

Object mrmeshpy.ConstObjectMesh.shallowClone ( self)
clones this object only, without its children,
making new object to share resources with this object

Reimplemented from mrmeshpy.ConstObjectMeshHolder.

◆ StaticClassName()

str mrmeshpy.ConstObjectMesh.StaticClassName ( )
static
return human readable name of subclass

Reimplemented from mrmeshpy.ConstVisualObject.

◆ StaticClassNameInPlural()

str mrmeshpy.ConstObjectMesh.StaticClassNameInPlural ( )
static
return human readable name of subclass in plural form

Reimplemented from mrmeshpy.ConstVisualObject.

◆ StaticTypeName()

str mrmeshpy.ConstObjectMesh.StaticTypeName ( )
static
return name of subtype for serialization purposes

Reimplemented from mrmeshpy.ConstObjectMeshHolder.

◆ typeName()

str mrmeshpy.ConstObjectMesh.typeName ( self)

Reimplemented from mrmeshpy.ConstObjectMeshHolder.

◆ worldRayIntersection()

MeshIntersectionResult mrmeshpy.ConstObjectMesh.worldRayIntersection ( self,
ConstLine3f worldRay,
ConstFaceBitSet region = None )
given ray in world coordinates, e.g. obtained from Viewport::unprojectPixelRay;
finds its intersection with the mesh of this object considering its transformation relative to the world;
it is inefficient to call this function for many rays, because it computes world-to-local xf every time

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