MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ObjectMeshHolder Class Reference
+ Inheritance diagram for 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='{}')
 
None copyTextureAndColors (self, ObjectMeshHolder src, VertMap thisToSrc, FaceMap thisToSrcFaces='{}')
 
UndirectedEdgeBitSet creases (self)
 
bool flatShading (self)
 
std_vector_ViewportMask getAllVisualizeProperties (self)
 
MeshTexture getAncillaryTexture (self)
 
VertUVCoords getAncillaryUVCoords (self)
 
Color getBordersColor (self, ViewportId id='{}')
 
ViewportProperty_Color getBordersColorsForAllViewports (self)
 
float getEdgeWidth (self)
 
Color getEdgesColor (self, ViewportId id='{}')
 
ViewportProperty_Color getEdgesColorsForAllViewports (self)
 
FaceColors getFacesColorMap (self)
 
int getNeededNormalsRenderDirtyValue (self, ViewportMask viewportMask)
 
float getPointSize (self)
 
Color getPointsColor (self, ViewportId id='{}')
 
bool getRedrawFlag (self, ViewportMask viewportMask)
 
UndirectedEdgeBitSet getSelectedEdges (self)
 
Color getSelectedEdgesColor (self, ViewportId id='{}')
 
ViewportProperty_Color getSelectedEdgesColorsForAllViewports (self)
 
FaceBitSet getSelectedFaces (self)
 
Color getSelectedFacesColor (self, ViewportId id='{}')
 
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)
 
str serializeFormat (self)
 
None setAncillaryTexture (self, MeshTexture texture)
 
None setAncillaryUVCoords (self, VertUVCoords uvCoordinates)
 
None setBordersColor (self, Color color, ViewportId id='{}')
 
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='{}')
 
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='{}')
 
None setSaveMeshFormat (self, str newFormat)
 
None setSelectedEdgesColor (self, Color color, ViewportId id='{}')
 
None setSelectedEdgesColorsForAllViewports (self, ViewportProperty_Color val)
 
None setSelectedFacesColor (self, Color color, ViewportId id='{}')
 
None setSelectedFacesColorsForAllViewports (self, ViewportProperty_Color val)
 
None setSerializeFormat (self, str newFormat)
 
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 mrmeshpy.VisualObject
float getAmbientStrength (self)
 
Color getBackColor (self, ViewportId viewportId='{}')
 
ViewportProperty_Color getBackColorsForAllViewports (self)
 
Box3f getBoundingBox (self)
 
str getClassName (self)
 
str getClassNameInPlural (self)
 
ColoringType getColoringType (self)
 
int getDirtyFlags (self)
 
Color getFrontColor (self, bool selected=True, ViewportId viewportId='{}')
 
ViewportProperty_Color getFrontColorsForAllViewports (self, bool selected=True)
 
int getGlobalAlpha (self, ViewportId viewportId='{}')
 
ViewportProperty_unsigned_char getGlobalAlphaForAllViewports (self)
 
std_vector_std_string getInfoLines (self)
 
std_vector_PositionedText getLabels (self)
 
Color getLabelsColor (self, ViewportId 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='{}')
 
None setBackColorsForAllViewports (self, ViewportProperty_Color val)
 
None setColoringType (self, ColoringType coloringType)
 
None setFrontColor (self, Color color, bool selected, ViewportId viewportId='{}')
 
None setFrontColorsForAllViewports (self, ViewportProperty_Color val, bool selected=True)
 
None setGlobalAlpha (self, int alpha, ViewportId viewportId='{}')
 
None setGlobalAlphaForAllViewports (self, ViewportProperty_unsigned_char val)
 
None setLabels (self, std_vector_PositionedText labels)
 
None setLabelsColor (self, Color color, ViewportId 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 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='{}')
 
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='{}')
 
None setXf (self, AffineXf3f xf, ViewportId id='{}')
 
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='{}', bool_output isDef=None)
 
AffineXf3f xf (self, ViewportId id='{}', bool_output isDef=None)
 
ViewportProperty_AffineXf3f xfsForAllViewports (self)
 
- Public Member Functions inherited from mrmeshpy.ObjectChildrenHolder
Object getSharedPtr (self)
 

Static Public Member Functions

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

Static Protected Member Functions

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

Detailed Description

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

an object that stores a mesh
\\ingroup ModelHolderGroup

Constructor & Destructor Documentation

◆ __init__()

None mrmeshpy.ObjectMeshHolder.__init__ ( self)

Member Function Documentation

◆ _pybind11_conduit_v1_()

mrmeshpy.ObjectMeshHolder._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

◆ addTexture()

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

◆ applyScale()

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

Reimplemented from mrmeshpy.Object.

Reimplemented in mrmeshpy.ObjectDistanceMap, and mrmeshpy.ObjectVoxels.

◆ avgEdgeLen()

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

◆ clearAncillaryTexture()

None mrmeshpy.ObjectMeshHolder.clearAncillaryTexture ( self)

◆ clone()

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

Reimplemented from mrmeshpy.VisualObject.

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

◆ copyColors()

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

Reimplemented from mrmeshpy.VisualObject.

◆ copyTextureAndColors()

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

◆ creases()

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

◆ flatShading()

bool mrmeshpy.ObjectMeshHolder.flatShading ( self)

◆ getAllVisualizeProperties()

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

Reimplemented from mrmeshpy.VisualObject.

◆ getAncillaryTexture()

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

◆ getAncillaryUVCoords()

VertUVCoords mrmeshpy.ObjectMeshHolder.getAncillaryUVCoords ( self)

◆ getBordersColor()

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

◆ getBordersColorsForAllViewports()

ViewportProperty_Color mrmeshpy.ObjectMeshHolder.getBordersColorsForAllViewports ( self)

◆ getEdgesColor()

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

◆ getEdgesColorsForAllViewports()

ViewportProperty_Color mrmeshpy.ObjectMeshHolder.getEdgesColorsForAllViewports ( self)

◆ getEdgeWidth()

float mrmeshpy.ObjectMeshHolder.getEdgeWidth ( self)

◆ getFacesColorMap()

FaceColors mrmeshpy.ObjectMeshHolder.getFacesColorMap ( self)

◆ getNeededNormalsRenderDirtyValue()

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

◆ getPointsColor()

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

◆ getPointSize()

float mrmeshpy.ObjectMeshHolder.getPointSize ( self)

◆ getRedrawFlag()

bool 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 mrmeshpy.VisualObject.

◆ getSelectedEdges()

UndirectedEdgeBitSet mrmeshpy.ObjectMeshHolder.getSelectedEdges ( self)

◆ getSelectedEdgesColor()

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

◆ getSelectedEdgesColorsForAllViewports()

ViewportProperty_Color mrmeshpy.ObjectMeshHolder.getSelectedEdgesColorsForAllViewports ( self)

◆ getSelectedFaces()

FaceBitSet mrmeshpy.ObjectMeshHolder.getSelectedFaces ( self)

◆ getSelectedFacesColor()

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

◆ getSelectedFacesColorsForAllViewports()

ViewportProperty_Color mrmeshpy.ObjectMeshHolder.getSelectedFacesColorsForAllViewports ( self)

◆ getTexture()

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

◆ getTexturePerFace()

TexturePerFace mrmeshpy.ObjectMeshHolder.getTexturePerFace ( self)

◆ getTextures()

Vector_MeshTexture_TextureId mrmeshpy.ObjectMeshHolder.getTextures ( self)

◆ getUVCoords()

VertUVCoords mrmeshpy.ObjectMeshHolder.getUVCoords ( self)

◆ getVisualizePropertyMask()

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

Reimplemented from mrmeshpy.VisualObject.

◆ getWorldBox()

Box3f 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 mrmeshpy.VisualObject.

◆ hasAncillaryTexture()

bool mrmeshpy.ObjectMeshHolder.hasAncillaryTexture ( self)

◆ hasModel()

bool 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 mrmeshpy.Object.

Reimplemented in mrmeshpy.ObjectDistanceMap, and mrmeshpy.ObjectVoxels.

◆ hasVisualRepresentation()

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

Reimplemented from mrmeshpy.Object.

Reimplemented in mrmeshpy.ObjectVoxels.

◆ heapBytes()

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

Reimplemented from mrmeshpy.VisualObject.

Reimplemented in mrmeshpy.ObjectDistanceMap, and mrmeshpy.ObjectVoxels.

◆ isMeshClosed()

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

◆ mesh()

Mesh mrmeshpy.ObjectMeshHolder.mesh ( self)

◆ meshPart()

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

◆ numComponents()

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

◆ numCreaseEdges()

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

◆ numHandles()

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

◆ numHoles()

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

◆ numSelectedEdges()

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

◆ numSelectedFaces()

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

◆ numUndirectedEdges()

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

◆ resetDirtyExeptMask()

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

◆ saveMeshFormat()

str mrmeshpy.ObjectMeshHolder.saveMeshFormat ( self)

◆ selectedArea()

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

◆ selectEdges()

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

◆ selectFaces()

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

◆ serializeFormat()

str mrmeshpy.ObjectMeshHolder.serializeFormat ( self)
returns overriden file extension used to serialize mesh inside this object, nullptr means defaultSerializeMeshFormat()

Reimplemented in mrmeshpy.ObjectVoxels.

◆ setAncillaryTexture()

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

◆ setAncillaryUVCoords()

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

◆ setBordersColor()

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

◆ setBordersColorsForAllViewports()

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

◆ setCreases()

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

◆ setDirtyFlags()

None 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 mrmeshpy.VisualObject.

Reimplemented in mrmeshpy.ObjectMesh, and mrmeshpy.ObjectVoxels.

◆ setEdgesColor()

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

◆ setEdgesColorsForAllViewports()

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

◆ setEdgeWidth()

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

◆ setFacesColorMap()

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

◆ setFlatShading()

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

◆ setPointsColor()

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

◆ setPointSize()

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

◆ setSaveMeshFormat()

None mrmeshpy.ObjectMeshHolder.setSaveMeshFormat ( self,
str newFormat )

◆ setSelectedEdgesColor()

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

◆ setSelectedEdgesColorsForAllViewports()

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

◆ setSelectedFacesColor()

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

◆ setSelectedFacesColorsForAllViewports()

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

◆ setSerializeFormat()

None mrmeshpy.ObjectMeshHolder.setSerializeFormat ( self,
str newFormat )
overrides file extension used to serialize mesh inside this object: must start from '.',
nullptr means serialize in defaultSerializeMeshFormat()

Reimplemented in mrmeshpy.ObjectVoxels.

◆ setTexture()

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

◆ setTexturePerFace()

None 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 mrmeshpy.ObjectMeshHolder.setTextures ( self,
Vector_MeshTexture_TextureId texture )

◆ setUVCoords()

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

◆ shallowClone()

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

Reimplemented from mrmeshpy.VisualObject.

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

◆ supportsVisualizeProperty()

bool 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 mrmeshpy.VisualObject.

◆ totalArea()

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

◆ TypeName()

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

Reimplemented from mrmeshpy.VisualObject.

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

◆ typeName()

str mrmeshpy.ObjectMeshHolder.typeName ( self)

◆ updateAncillaryUVCoords()

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

◆ updateFacesColorMap()

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

◆ updateTexture()

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

◆ updateTexturePerFace()

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

◆ updateTextures()

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

◆ updateUVCoords()

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

◆ volume()

float 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: