MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.ObjectMeshHolder Class Reference
+ Inheritance diagram for meshlib.mrmeshpy.ObjectMeshHolder:

Public Member Functions

None __init__ (self)
 
None addTexture (self, MeshTexture texture)
 
None applyScale (self, float scaleFactor)
 
float avgEdgeLen (self)
 
None clearAncillaryTexture (self)
 
Object clone (self)
 
None copyColors (self, VisualObject src, VertMap thisToSrc, FaceMap thisToSrcFaces='MR::FaceMap{}')
 
None copyTextureAndColors (self, ObjectMeshHolder src, VertMap thisToSrc, FaceMap thisToSrcFaces='MR::FaceMap{}')
 
UndirectedEdgeBitSet creases (self)
 
bool flatShading (self)
 
std_vector_ViewportMask getAllVisualizeProperties (self)
 
MeshTexture getAncillaryTexture (self)
 
VertUVCoords getAncillaryUVCoords (self)
 
Color getBordersColor (self, ViewportId id='MR::ViewportId{}')
 
ViewportProperty_Color getBordersColorsForAllViewports (self)
 
float getEdgeWidth (self)
 
Color getEdgesColor (self, ViewportId id='MR::ViewportId{}')
 
ViewportProperty_Color getEdgesColorsForAllViewports (self)
 
FaceColors getFacesColorMap (self)
 
int getNeededNormalsRenderDirtyValue (self, ViewportMask viewportMask)
 
float getPointSize (self)
 
Color getPointsColor (self, ViewportId id='MR::ViewportId{}')
 
bool getRedrawFlag (self, ViewportMask viewportMask)
 
UndirectedEdgeBitSet getSelectedEdges (self)
 
Color getSelectedEdgesColor (self, ViewportId id='MR::ViewportId{}')
 
ViewportProperty_Color getSelectedEdgesColorsForAllViewports (self)
 
FaceBitSet getSelectedFaces (self)
 
Color getSelectedFacesColor (self, ViewportId id='MR::ViewportId{}')
 
ViewportProperty_Color getSelectedFacesColorsForAllViewports (self)
 
MeshTexture getTexture (self)
 
TexturePerFace getTexturePerFace (self)
 
Vector_MeshTexture_TextureId getTextures (self)
 
VertUVCoords getUVCoords (self)
 
ViewportMask getVisualizePropertyMask (self, AnyVisualizeMaskEnum type)
 
bool hasAncillaryTexture (self)
 
bool hasModel (self)
 
bool hasVisualRepresentation (self)
 
int heapBytes (self)
 
bool isMeshClosed (self)
 
Mesh mesh (self)
 
MeshPart meshPart (self)
 
int numComponents (self)
 
int numCreaseEdges (self)
 
int numHandles (self)
 
int numHoles (self)
 
int numSelectedEdges (self)
 
int numSelectedFaces (self)
 
int numUndirectedEdges (self)
 
None resetDirtyExeptMask (self, int mask)
 
str saveMeshFormat (self)
 
None selectEdges (self, UndirectedEdgeBitSet newSelection)
 
None selectFaces (self, FaceBitSet newSelection)
 
float selectedArea (self)
 
None setAncillaryTexture (self, MeshTexture texture)
 
None setAncillaryUVCoords (self, VertUVCoords uvCoordinates)
 
None setBordersColor (self, Color color, ViewportId id='MR::ViewportId{}')
 
None setBordersColorsForAllViewports (self, ViewportProperty_Color val)
 
None setCreases (self, UndirectedEdgeBitSet creases)
 
None setDirtyFlags (self, int mask, bool invalidateCaches=True)
 
None setEdgeWidth (self, float edgeWidth)
 
None setEdgesColor (self, Color color, ViewportId id='MR::ViewportId{}')
 
None setEdgesColorsForAllViewports (self, ViewportProperty_Color val)
 
None setFacesColorMap (self, FaceColors facesColorMap)
 
None setFlatShading (self, bool on)
 
None setPointSize (self, float size)
 
None setPointsColor (self, Color color, ViewportId id='MR::ViewportId{}')
 
None setSaveMeshFormat (self, str newFormat)
 
None setSelectedEdgesColor (self, Color color, ViewportId id='MR::ViewportId{}')
 
None setSelectedEdgesColorsForAllViewports (self, ViewportProperty_Color val)
 
None setSelectedFacesColor (self, Color color, ViewportId id='MR::ViewportId{}')
 
None setSelectedFacesColorsForAllViewports (self, ViewportProperty_Color val)
 
None setTexture (self, MeshTexture texture)
 
None setTexturePerFace (self, TexturePerFace texturePerFace)
 
None setTextures (self, Vector_MeshTexture_TextureId texture)
 
None setUVCoords (self, VertUVCoords uvCoordinates)
 
Object shallowClone (self)
 
bool supportsVisualizeProperty (self, AnyVisualizeMaskEnum type)
 
float totalArea (self)
 
str typeName (self)
 
None updateAncillaryUVCoords (self, VertUVCoords updated)
 
None updateFacesColorMap (self, FaceColors updated)
 
None updateTexture (self, MeshTexture updated)
 
None updateTexturePerFace (self, TexturePerFace texturePerFace)
 
None updateTextures (self, Vector_MeshTexture_TextureId updated)
 
None updateUVCoords (self, VertUVCoords updated)
 
float volume (self)
 
- Public Member Functions inherited from meshlib.mrmeshpy.VisualObject
float getAmbientStrength (self)
 
Color getBackColor (self, ViewportId viewportId='MR::ViewportId{}')
 
ViewportProperty_Color getBackColorsForAllViewports (self)
 
Box3f getBoundingBox (self)
 
str getClassName (self)
 
ColoringType getColoringType (self)
 
int getDirtyFlags (self)
 
Color getFrontColor (self, bool selected=True, ViewportId viewportId='MR::ViewportId{}')
 
ViewportProperty_Color getFrontColorsForAllViewports (self, bool selected=True)
 
int getGlobalAlpha (self, ViewportId viewportId='MR::ViewportId{}')
 
ViewportProperty_unsigned_char getGlobalAlphaForAllViewports (self)
 
std_vector_std_string getInfoLines (self)
 
std_vector_PositionedText getLabels (self)
 
Color getLabelsColor (self, ViewportId viewportId='MR::ViewportId{}')
 
ViewportProperty_Color getLabelsColorsForAllViewports (self)
 
float getShininess (self)
 
float getSpecularStrength (self)
 
VertColors getVertsColorMap (self)
 
bool getVisualizeProperty (self, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
bool isPickable (self, ViewportMask viewportMask='ViewportMask::any()')
 
None renderUi (self, UiRenderParams params)
 
None resetDirty (self)
 
None setAllVisualizeProperties (self, std_vector_ViewportMask properties)
 
None setAmbientStrength (self, float ambientStrength)
 
None setBackColor (self, Color color, ViewportId viewportId='MR::ViewportId{}')
 
None setBackColorsForAllViewports (self, ViewportProperty_Color val)
 
None setColoringType (self, ColoringType coloringType)
 
None setFrontColor (self, Color color, bool selected, ViewportId viewportId='MR::ViewportId{}')
 
None setFrontColorsForAllViewports (self, ViewportProperty_Color val, bool selected=True)
 
None setGlobalAlpha (self, int alpha, ViewportId viewportId='MR::ViewportId{}')
 
None setGlobalAlphaForAllViewports (self, ViewportProperty_unsigned_char val)
 
None setLabels (self, std_vector_PositionedText labels)
 
None setLabelsColor (self, Color color, ViewportId viewportId='MR::ViewportId{}')
 
None setLabelsColorsForAllViewports (self, ViewportProperty_Color val)
 
None setPickable (self, bool on, ViewportMask viewportMask='ViewportMask::all()')
 
None setShininess (self, float shininess)
 
None setSpecularStrength (self, float specularStrength)
 
None setUseDefaultScenePropertiesOnDeserialization (self, bool useDefaultScenePropertiesOnDeserialization)
 
None setVertsColorMap (self, VertColors vertsColorMap)
 
None setVisualizeProperty (self, bool value, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
None setVisualizePropertyMask (self, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
None showLabels (self, bool on)
 
bool showLabels (self)
 
None showName (self, bool on)
 
bool showName (self)
 
None toggleVisualizeProperty (self, AnyVisualizeMaskEnum type, ViewportMask viewportMask)
 
None updateVertsColorMap (self, VertColors vertsColorMap)
 
bool useDefaultScenePropertiesOnDeserialization (self)
 
- Public Member Functions inherited from meshlib.mrmeshpy.Object
bool addChild (self, Object child, bool recognizedChild=True)
 
bool addChildBefore (self, Object newChild, Object existingChild)
 
VisualObject asType_VisualObject (self)
 
VisualObject asType_VisualObject (self)
 
std_vector_std_shared_ptr_Object children (self)
 
std_vector_std_shared_ptr_Object_const children (self)
 
Object cloneTree (self)
 
bool detachFromParent (self)
 
Object find (self, str name)
 
Object find (self, str name)
 
Object findCommonAncestor (self, Object other)
 
Object findCommonAncestor (self, Object other)
 
bool globalVisibility (self, ViewportMask viewportMask='ViewportMask::any()')
 
ViewportMask globalVisibilityMask (self)
 
bool isAncestor (self, Object ancestor)
 
bool isAncillary (self)
 
bool isLocked (self)
 
bool isParentLocked (self)
 
bool isSelected (self)
 
bool isVisible (self, ViewportMask viewportMask='ViewportMask::any()')
 
str name (self)
 
Object parent (self)
 
Object parent (self)
 
None removeAllChildren (self)
 
bool removeChild (self, Object child)
 
bool removeChild (self, Object child)
 
None resetRedrawFlag (self)
 
None resetXf (self, ViewportId id='MR::ViewportId{}')
 
bool select (self, bool on)
 
None setAncillary (self, bool ancillary)
 
None setGlobalVisibility (self, bool on, ViewportMask viewportMask='ViewportMask::any()')
 
None setLocked (self, bool on)
 
None setName (self, str name)
 
None setParentLocked (self, bool lock)
 
None setVisibilityMask (self, ViewportMask viewportMask)
 
None setVisible (self, bool on, ViewportMask viewportMask='ViewportMask::all()')
 
None setWorldXf (self, AffineXf3f xf, ViewportId id='MR::ViewportId{}')
 
None setXf (self, AffineXf3f xf, ViewportId id='MR::ViewportId{}')
 
None setXfsForAllViewports (self, ViewportProperty_AffineXf3f xf)
 
Object shallowCloneTree (self)
 
None sortChildren (self)
 
None swap (self, Object other)
 
ViewportMask visibilityMask (self)
 
AffineXf3f worldXf (self, ViewportId id='MR::ViewportId{}', bool_output isDef=None)
 
AffineXf3f xf (self, ViewportId id='MR::ViewportId{}', bool_output isDef=None)
 
ViewportProperty_AffineXf3f xfsForAllViewports (self)
 
- Public Member Functions inherited from meshlib.mrmeshpy.ObjectChildrenHolder
Object getSharedPtr (self)
 

Static Public Member Functions

str TypeName ()
 
Box3f getWorldBox (*args, **kwargs)
 
- Static Public Member Functions inherited from meshlib.mrmeshpy.VisualObject
bool render (*args, **kwargs)
 
None renderForPicker (*args, **kwargs)
 
- Static Public Member Functions inherited from meshlib.mrmeshpy.Object
Box3f getWorldTreeBox (*args, **kwargs)
 

Additional Inherited Members

- Static Protected Member Functions inherited from meshlib.mrmeshpy.ObjectChildrenHolder
ObjectChildrenHolder _Equal (*args, **kwargs)
 
ObjectChildrenHolder _Equal (*args, **kwargs)
 

Detailed Description

Generated from:  MR::ObjectMeshHolder
Aliases:  ChangeMeshTexturePerFaceAction.Obj, ChangeMeshUVCoordsAction.Obj, ChangeTextureAction.Obj, ChangeFacesColorMapAction.Obj

an object that stores a mesh
\\ingroup ModelHolderGroup

Constructor & Destructor Documentation

◆ __init__()

None meshlib.mrmeshpy.ObjectMeshHolder.__init__ ( self)

Member Function Documentation

◆ addTexture()

None meshlib.mrmeshpy.ObjectMeshHolder.addTexture ( self,
MeshTexture texture )

◆ applyScale()

None meshlib.mrmeshpy.ObjectMeshHolder.applyScale ( self,
float scaleFactor )
scale object size (all point positions)

Reimplemented from meshlib.mrmeshpy.Object.

Reimplemented in meshlib.mrmeshpy.ObjectDistanceMap, and meshlib.mrmeshpy.ObjectVoxels.

◆ avgEdgeLen()

float meshlib.mrmeshpy.ObjectMeshHolder.avgEdgeLen ( self)
returns cached average edge length

◆ clearAncillaryTexture()

None meshlib.mrmeshpy.ObjectMeshHolder.clearAncillaryTexture ( self)

◆ clone()

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

Reimplemented from meshlib.mrmeshpy.VisualObject.

Reimplemented in meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectMesh, and meshlib.mrmeshpy.ObjectVoxels.

◆ copyColors()

None meshlib.mrmeshpy.ObjectMeshHolder.copyColors ( self,
VisualObject src,
VertMap thisToSrc,
FaceMap thisToSrcFaces = 'MR::FaceMap{}' )
copies point colors from given source object \\param src using given map \\param thisToSrc

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ copyTextureAndColors()

None meshlib.mrmeshpy.ObjectMeshHolder.copyTextureAndColors ( self,
ObjectMeshHolder src,
VertMap thisToSrc,
FaceMap thisToSrcFaces = 'MR::FaceMap{}' )
copies texture, UV-coordinates and vertex colors from given source object \\param src using given map \\param thisToSrc

◆ creases()

UndirectedEdgeBitSet meshlib.mrmeshpy.ObjectMeshHolder.creases ( self)
Edges on mesh, that will have sharp visualization even with smooth shading

◆ flatShading()

bool meshlib.mrmeshpy.ObjectMeshHolder.flatShading ( self)

◆ getAllVisualizeProperties()

std_vector_ViewportMask meshlib.mrmeshpy.ObjectMeshHolder.getAllVisualizeProperties ( self)
get all visualize properties masks

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ getAncillaryTexture()

MeshTexture meshlib.mrmeshpy.ObjectMeshHolder.getAncillaryTexture ( self)
ancillary texture can be used to have custom features visualization without affecting real one

◆ getAncillaryUVCoords()

VertUVCoords meshlib.mrmeshpy.ObjectMeshHolder.getAncillaryUVCoords ( self)

◆ getBordersColor()

Color meshlib.mrmeshpy.ObjectMeshHolder.getBordersColor ( self,
ViewportId id = 'MR::ViewportId{}' )

◆ getBordersColorsForAllViewports()

ViewportProperty_Color meshlib.mrmeshpy.ObjectMeshHolder.getBordersColorsForAllViewports ( self)

◆ getEdgesColor()

Color meshlib.mrmeshpy.ObjectMeshHolder.getEdgesColor ( self,
ViewportId id = 'MR::ViewportId{}' )

◆ getEdgesColorsForAllViewports()

ViewportProperty_Color meshlib.mrmeshpy.ObjectMeshHolder.getEdgesColorsForAllViewports ( self)

◆ getEdgeWidth()

float meshlib.mrmeshpy.ObjectMeshHolder.getEdgeWidth ( self)

◆ getFacesColorMap()

FaceColors meshlib.mrmeshpy.ObjectMeshHolder.getFacesColorMap ( self)

◆ getNeededNormalsRenderDirtyValue()

int meshlib.mrmeshpy.ObjectMeshHolder.getNeededNormalsRenderDirtyValue ( self,
ViewportMask viewportMask )
returns dirty flag of currently using normal type if they are dirty in render representation

◆ getPointsColor()

Color meshlib.mrmeshpy.ObjectMeshHolder.getPointsColor ( self,
ViewportId id = 'MR::ViewportId{}' )

◆ getPointSize()

float meshlib.mrmeshpy.ObjectMeshHolder.getPointSize ( self)

◆ getRedrawFlag()

bool meshlib.mrmeshpy.ObjectMeshHolder.getRedrawFlag ( self,
ViewportMask viewportMask )
returns true if the object must be redrawn (due to dirty flags) in one of specified viewports

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ getSelectedEdges()

UndirectedEdgeBitSet meshlib.mrmeshpy.ObjectMeshHolder.getSelectedEdges ( self)

◆ getSelectedEdgesColor()

Color meshlib.mrmeshpy.ObjectMeshHolder.getSelectedEdgesColor ( self,
ViewportId id = 'MR::ViewportId{}' )
returns colors of selected edges

◆ getSelectedEdgesColorsForAllViewports()

ViewportProperty_Color meshlib.mrmeshpy.ObjectMeshHolder.getSelectedEdgesColorsForAllViewports ( self)

◆ getSelectedFaces()

FaceBitSet meshlib.mrmeshpy.ObjectMeshHolder.getSelectedFaces ( self)

◆ getSelectedFacesColor()

Color meshlib.mrmeshpy.ObjectMeshHolder.getSelectedFacesColor ( self,
ViewportId id = 'MR::ViewportId{}' )
returns colors of selected triangles

◆ getSelectedFacesColorsForAllViewports()

ViewportProperty_Color meshlib.mrmeshpy.ObjectMeshHolder.getSelectedFacesColorsForAllViewports ( self)

◆ getTexture()

MeshTexture meshlib.mrmeshpy.ObjectMeshHolder.getTexture ( self)
returns first texture in the vector. If there is no textures, returns empty texture

◆ getTexturePerFace()

TexturePerFace meshlib.mrmeshpy.ObjectMeshHolder.getTexturePerFace ( self)

◆ getTextures()

Vector_MeshTexture_TextureId meshlib.mrmeshpy.ObjectMeshHolder.getTextures ( self)

◆ getUVCoords()

VertUVCoords meshlib.mrmeshpy.ObjectMeshHolder.getUVCoords ( self)

◆ getVisualizePropertyMask()

ViewportMask meshlib.mrmeshpy.ObjectMeshHolder.getVisualizePropertyMask ( self,
AnyVisualizeMaskEnum type )
returns mask of viewports where given property is set

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ getWorldBox()

Box3f meshlib.mrmeshpy.ObjectMeshHolder.getWorldBox ( * args,
** kwargs )
static
returns cached bounding box of this mesh object in world coordinates;
if you need bounding box in local coordinates please call getBoundingBox()

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ hasAncillaryTexture()

bool meshlib.mrmeshpy.ObjectMeshHolder.hasAncillaryTexture ( self)

◆ hasModel()

bool meshlib.mrmeshpy.ObjectMeshHolder.hasModel ( self)
does the object have any model available (but possibly empty),
e.g. ObjectMesh has valid mesh() or ObjectPoints has valid pointCloud()

Reimplemented from meshlib.mrmeshpy.Object.

Reimplemented in meshlib.mrmeshpy.ObjectDistanceMap, and meshlib.mrmeshpy.ObjectVoxels.

◆ hasVisualRepresentation()

bool meshlib.mrmeshpy.ObjectMeshHolder.hasVisualRepresentation ( self)
mesh object can be seen if the mesh has at least one edge

Reimplemented from meshlib.mrmeshpy.Object.

Reimplemented in meshlib.mrmeshpy.ObjectVoxels.

◆ heapBytes()

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

Reimplemented from meshlib.mrmeshpy.VisualObject.

Reimplemented in meshlib.mrmeshpy.ObjectDistanceMap, and meshlib.mrmeshpy.ObjectVoxels.

◆ isMeshClosed()

bool meshlib.mrmeshpy.ObjectMeshHolder.isMeshClosed ( self)
returns cached information whether the mesh is closed

◆ mesh()

Mesh meshlib.mrmeshpy.ObjectMeshHolder.mesh ( self)

◆ meshPart()

MeshPart meshlib.mrmeshpy.ObjectMeshHolder.meshPart ( self)
\\return the pair ( mesh, selected triangles ) if any triangle is selected or whole mesh otherwise

◆ numComponents()

int meshlib.mrmeshpy.ObjectMeshHolder.numComponents ( self)
returns cached information about the number of components in the mesh

◆ numCreaseEdges()

int meshlib.mrmeshpy.ObjectMeshHolder.numCreaseEdges ( self)
returns cached information about the number of crease undirected edges in the mesh

◆ numHandles()

int meshlib.mrmeshpy.ObjectMeshHolder.numHandles ( self)
returns cached information about the number of handles in the mesh

◆ numHoles()

int meshlib.mrmeshpy.ObjectMeshHolder.numHoles ( self)
returns cached information about the number of holes in the mesh

◆ numSelectedEdges()

int meshlib.mrmeshpy.ObjectMeshHolder.numSelectedEdges ( self)
returns cached information about the number of selected undirected edges in the mesh

◆ numSelectedFaces()

int meshlib.mrmeshpy.ObjectMeshHolder.numSelectedFaces ( self)
returns cached information about the number of selected faces in the mesh

◆ numUndirectedEdges()

int meshlib.mrmeshpy.ObjectMeshHolder.numUndirectedEdges ( self)
returns cached information about the number of undirected edges in the mesh

◆ resetDirtyExeptMask()

None meshlib.mrmeshpy.ObjectMeshHolder.resetDirtyExeptMask ( self,
int mask )
reset dirty flags without some specific bits (useful for lazy normals update)

◆ saveMeshFormat()

str meshlib.mrmeshpy.ObjectMeshHolder.saveMeshFormat ( self)
returns file extension used to serialize the mesh

◆ selectedArea()

float meshlib.mrmeshpy.ObjectMeshHolder.selectedArea ( self)
returns cached area of selected triangles

◆ selectEdges()

None meshlib.mrmeshpy.ObjectMeshHolder.selectEdges ( self,
UndirectedEdgeBitSet newSelection )

◆ selectFaces()

None meshlib.mrmeshpy.ObjectMeshHolder.selectFaces ( self,
FaceBitSet newSelection )

◆ setAncillaryTexture()

None meshlib.mrmeshpy.ObjectMeshHolder.setAncillaryTexture ( self,
MeshTexture texture )

◆ setAncillaryUVCoords()

None meshlib.mrmeshpy.ObjectMeshHolder.setAncillaryUVCoords ( self,
VertUVCoords uvCoordinates )

◆ setBordersColor()

None meshlib.mrmeshpy.ObjectMeshHolder.setBordersColor ( self,
Color color,
ViewportId id = 'MR::ViewportId{}' )

◆ setBordersColorsForAllViewports()

None meshlib.mrmeshpy.ObjectMeshHolder.setBordersColorsForAllViewports ( self,
ViewportProperty_Color val )

◆ setCreases()

None meshlib.mrmeshpy.ObjectMeshHolder.setCreases ( self,
UndirectedEdgeBitSet creases )

◆ setDirtyFlags()

None meshlib.mrmeshpy.ObjectMeshHolder.setDirtyFlags ( self,
int mask,
bool invalidateCaches = True )
sets some dirty flags for the object (to force its visual update)
\\param mask is a union of DirtyFlags flags
\\param invalidateCaches whether to automatically invalidate model caches (pass false here if you manually update the caches)

Reimplemented from meshlib.mrmeshpy.VisualObject.

Reimplemented in meshlib.mrmeshpy.ObjectMesh, and meshlib.mrmeshpy.ObjectVoxels.

◆ setEdgesColor()

None meshlib.mrmeshpy.ObjectMeshHolder.setEdgesColor ( self,
Color color,
ViewportId id = 'MR::ViewportId{}' )

◆ setEdgesColorsForAllViewports()

None meshlib.mrmeshpy.ObjectMeshHolder.setEdgesColorsForAllViewports ( self,
ViewportProperty_Color val )

◆ setEdgeWidth()

None meshlib.mrmeshpy.ObjectMeshHolder.setEdgeWidth ( self,
float edgeWidth )

◆ setFacesColorMap()

None meshlib.mrmeshpy.ObjectMeshHolder.setFacesColorMap ( self,
FaceColors facesColorMap )

◆ setFlatShading()

None meshlib.mrmeshpy.ObjectMeshHolder.setFlatShading ( self,
bool on )
sets flat (true) or smooth (false) shading

◆ setPointsColor()

None meshlib.mrmeshpy.ObjectMeshHolder.setPointsColor ( self,
Color color,
ViewportId id = 'MR::ViewportId{}' )

◆ setPointSize()

None meshlib.mrmeshpy.ObjectMeshHolder.setPointSize ( self,
float size )

◆ setSaveMeshFormat()

None meshlib.mrmeshpy.ObjectMeshHolder.setSaveMeshFormat ( self,
str newFormat )
sets file extension used to serialize the mesh: must be not null and must start from '.'

◆ setSelectedEdgesColor()

None meshlib.mrmeshpy.ObjectMeshHolder.setSelectedEdgesColor ( self,
Color color,
ViewportId id = 'MR::ViewportId{}' )
sets colors of selected edges

◆ setSelectedEdgesColorsForAllViewports()

None meshlib.mrmeshpy.ObjectMeshHolder.setSelectedEdgesColorsForAllViewports ( self,
ViewportProperty_Color val )

◆ setSelectedFacesColor()

None meshlib.mrmeshpy.ObjectMeshHolder.setSelectedFacesColor ( self,
Color color,
ViewportId id = 'MR::ViewportId{}' )
sets colors of selected triangles

◆ setSelectedFacesColorsForAllViewports()

None meshlib.mrmeshpy.ObjectMeshHolder.setSelectedFacesColorsForAllViewports ( self,
ViewportProperty_Color val )

◆ setTexture()

None meshlib.mrmeshpy.ObjectMeshHolder.setTexture ( self,
MeshTexture texture )
for backward compatibility

◆ setTexturePerFace()

None meshlib.mrmeshpy.ObjectMeshHolder.setTexturePerFace ( self,
TexturePerFace texturePerFace )
the texture ids for the faces if more than one texture is used to texture the object
texture coordinates (uvCoordinates_) at a point can belong to different textures, depending on which face the point belongs to

◆ setTextures()

None meshlib.mrmeshpy.ObjectMeshHolder.setTextures ( self,
Vector_MeshTexture_TextureId texture )

◆ setUVCoords()

None meshlib.mrmeshpy.ObjectMeshHolder.setUVCoords ( self,
VertUVCoords uvCoordinates )

◆ shallowClone()

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

Reimplemented from meshlib.mrmeshpy.VisualObject.

Reimplemented in meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectMesh, and meshlib.mrmeshpy.ObjectVoxels.

◆ supportsVisualizeProperty()

bool meshlib.mrmeshpy.ObjectMeshHolder.supportsVisualizeProperty ( self,
AnyVisualizeMaskEnum type )
Returns true if this class supports the property `type`. Otherwise passing it to the functions below is illegal.

Reimplemented from meshlib.mrmeshpy.VisualObject.

◆ totalArea()

float meshlib.mrmeshpy.ObjectMeshHolder.totalArea ( self)
returns cached summed area of mesh triangles

◆ TypeName()

str meshlib.mrmeshpy.ObjectMeshHolder.TypeName ( )
static
return name of subtype for serialization purposes

Reimplemented from meshlib.mrmeshpy.VisualObject.

Reimplemented in meshlib.mrmeshpy.ObjectDistanceMap, meshlib.mrmeshpy.ObjectMesh, and meshlib.mrmeshpy.ObjectVoxels.

◆ typeName()

str meshlib.mrmeshpy.ObjectMeshHolder.typeName ( self)

◆ updateAncillaryUVCoords()

None meshlib.mrmeshpy.ObjectMeshHolder.updateAncillaryUVCoords ( self,
VertUVCoords updated )

◆ updateFacesColorMap()

None meshlib.mrmeshpy.ObjectMeshHolder.updateFacesColorMap ( self,
FaceColors updated )

◆ updateTexture()

None meshlib.mrmeshpy.ObjectMeshHolder.updateTexture ( self,
MeshTexture updated )

◆ updateTexturePerFace()

None meshlib.mrmeshpy.ObjectMeshHolder.updateTexturePerFace ( self,
TexturePerFace texturePerFace )

◆ updateTextures()

None meshlib.mrmeshpy.ObjectMeshHolder.updateTextures ( self,
Vector_MeshTexture_TextureId updated )

◆ updateUVCoords()

None meshlib.mrmeshpy.ObjectMeshHolder.updateUVCoords ( self,
VertUVCoords updated )

◆ volume()

float meshlib.mrmeshpy.ObjectMeshHolder.volume ( self)
returns cached volume of space surrounded by the mesh, which is valid only if mesh is closed

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