MeshLib C# Docs
Loading...
Searching...
No Matches
MR.ObjectMesh Class Reference

an object that stores a mesh Generated from class MR.ObjectMesh. Base classes: Direct: (non-virtual) MR.ObjectMeshHolder Indirect: (non-virtual) MR.ObjectChildrenHolder MR.Object MR.VisualObject This is the non-const half of the class. More...

+ Inheritance diagram for MR.ObjectMesh:

Public Member Functions

unsafe ObjectMesh ()
 Constructs an empty (default-constructed) instance.
 
unsafe ObjectMesh (MR._ByValue_ObjectMesh _other)
 Generated from constructor MR.ObjectMesh.ObjectMesh.
 
unsafe MR.ObjectMesh assign (MR._ByValue_ObjectMesh _other)
 Generated from method MR.ObjectMesh.operator=.
 
unsafe MR.Const_Mesh varMesh ()
 returns variable mesh, if const mesh is needed use mesh() instead Generated from method MR.ObjectMesh.varMesh.
 
unsafe void setMesh (MR._ByValueShared_Mesh mesh)
 sets given mesh to this, resets selection and creases Generated from method MR.ObjectMesh.setMesh.
 
unsafe MR.Mesh updateMesh (MR._ByValueShared_Mesh mesh)
 sets given mesh to this, and returns back previous mesh of this; does not touch selection or creases Generated from method MR.ObjectMesh.updateMesh.
 
unsafe void applyScale (float scaleFactor)
 Generated from method MR.ObjectMesh.applyScale.
 
unsafe void setDirtyFlags (uint mask, bool? invalidateCaches=null)
 Generated from method MR.ObjectMesh.setDirtyFlags. Parameter invalidateCaches defaults to true.
 
unsafe void setDirtyFlagsFast (uint mask)
 this is a faster version of setDirtyFlags(), which does not invalidate metrics cache (area, volume, ...); the user is responsible for calling invalidateMetricsCache( mask ) or setDirtyFlags( mask ) at the end of mesh editing; DANGER: all cached values returned until then can be outdated Generated from method MR.ObjectMesh.setDirtyFlagsFast.
 
unsafe void invalidateMetricsCache (uint mask)
 invalidates same caches with mesh metrics (area, volume, ...) as by setDirtyFlags( mask ) Generated from method MR.ObjectMesh.invalidateMetricsCache.
 
unsafe void selectFaces (MR._ByValue_FaceBitSet newSelection)
 Generated from method MR.ObjectMesh.selectFaces.
 
unsafe void setSelectedFacesColor (in MR.Color color, MR._InOpt_ViewportId id=default)
 sets colors of selected triangles Generated from method MR.ObjectMesh.setSelectedFacesColor. Parameter id defaults to {}.
 
unsafe void selectEdges (MR._ByValue_UndirectedEdgeBitSet newSelection)
 Generated from method MR.ObjectMesh.selectEdges.
 
unsafe void setSelectedEdgesColor (in MR.Color color, MR._InOpt_ViewportId id=default)
 sets colors of selected edges Generated from method MR.ObjectMesh.setSelectedEdgesColor. Parameter id defaults to {}.
 
unsafe void setSelectedEdgesColorsForAllViewports (MR._ByValue_ViewportProperty_MRColor val)
 Generated from method MR.ObjectMesh.setSelectedEdgesColorsForAllViewports.
 
unsafe void setSelectedFacesColorsForAllViewports (MR._ByValue_ViewportProperty_MRColor val)
 Generated from method MR.ObjectMesh.setSelectedFacesColorsForAllViewports.
 
unsafe void setEdgesColorsForAllViewports (MR._ByValue_ViewportProperty_MRColor val)
 Generated from method MR.ObjectMesh.setEdgesColorsForAllViewports.
 
unsafe void setPointsColorsForAllViewports (MR._ByValue_ViewportProperty_MRColor val)
 Generated from method MR.ObjectMesh.setPointsColorsForAllViewports.
 
unsafe void setBordersColorsForAllViewports (MR._ByValue_ViewportProperty_MRColor val)
 Generated from method MR.ObjectMesh.setBordersColorsForAllViewports.
 
unsafe void copyAllSolidColors (MR.Const_ObjectMeshHolder other)
 set all object solid colors (front/back/etc.) from other object for all viewports Generated from method MR.ObjectMesh.copyAllSolidColors.
 
unsafe void setCreases (MR._ByValue_UndirectedEdgeBitSet creases)
 Generated from method MR.ObjectMesh.setCreases.
 
unsafe void setFlatShading (bool on)
 sets flat (true) or smooth (false) shading Generated from method MR.ObjectMesh.setFlatShading.
 
unsafe void setData (MR.Misc._Moved< MR.ObjectMeshData > data)
 sets whole new ObjectMeshData Generated from method MR.ObjectMesh.setData.
 
unsafe void updateData (MR.ObjectMeshData data)
 swaps whole ObjectMeshData with given argument Generated from method MR.ObjectMesh.updateData.
 
unsafe void setVertsColorMap (MR._ByValue_VertColors vertsColorMap)
 sets per-vertex colors of the object Generated from method MR.ObjectMesh.setVertsColorMap.
 
unsafe void updateVertsColorMap (MR.VertColors vertsColorMap)
 swaps per-vertex colors of the object with given argument Generated from method MR.ObjectMesh.updateVertsColorMap.
 
unsafe void setFacesColorMap (MR._ByValue_FaceColors facesColorMap)
 Generated from method MR.ObjectMesh.setFacesColorMap.
 
unsafe void updateFacesColorMap (MR.FaceColors updated)
 Generated from method MR.ObjectMesh.updateFacesColorMap.
 
unsafe void setEdgeWidth (float edgeWidth)
 Generated from method MR.ObjectMesh.setEdgeWidth.
 
unsafe void setPointSize (float size)
 Generated from method MR.ObjectMesh.setPointSize.
 
unsafe void setEdgesColor (in MR.Color color, MR._InOpt_ViewportId id=default)
 Generated from method MR.ObjectMesh.setEdgesColor. Parameter id defaults to {}.
 
unsafe void setPointsColor (in MR.Color color, MR._InOpt_ViewportId id=default)
 Generated from method MR.ObjectMesh.setPointsColor. Parameter id defaults to {}.
 
unsafe void setBordersColor (in MR.Color color, MR._InOpt_ViewportId id=default)
 Generated from method MR.ObjectMesh.setBordersColor. Parameter id defaults to {}.
 
unsafe void setTextures (MR._ByValue_Vector_MRMeshTexture_MRTextureId texture)
 Generated from method MR.ObjectMesh.setTextures.
 
unsafe void updateTextures (MR.Vector_MRMeshTexture_MRTextureId updated)
 Generated from method MR.ObjectMesh.updateTextures.
 
unsafe void setTexturePerFace (MR._ByValue_TexturePerFace texturePerFace)
 the texture ids for the faces if more than one texture is used to texture the object texture coordinates (data_.uvCoordinates) at a point can belong to different textures, depending on which face the point belongs to Generated from method MR.ObjectMesh.setTexturePerFace.
 
unsafe void updateTexturePerFace (MR.TexturePerFace texturePerFace)
 Generated from method MR.ObjectMesh.updateTexturePerFace.
 
unsafe void addTexture (MR._ByValue_MeshTexture texture)
 Generated from method MR.ObjectMesh.addTexture.
 
unsafe void setUVCoords (MR._ByValue_VertCoords2 uvCoordinates)
 Generated from method MR.ObjectMesh.setUVCoords.
 
unsafe void updateUVCoords (MR.VertCoords2 updated)
 Generated from method MR.ObjectMesh.updateUVCoords.
 
unsafe void copyTextureAndColors (MR.Const_ObjectMeshHolder src, MR.Const_VertMap thisToSrc, MR.Const_FaceMap? thisToSrcFaces=null)
 copies texture, UV-coordinates and vertex colors from given source object
 
unsafe void copyColors (MR.Const_ObjectMeshHolder src, MR.Const_VertMap thisToSrc, MR.Const_FaceMap? thisToSrcFaces=null)
 copies vertex colors from given source object
 
unsafe void setAncillaryTexture (MR._ByValue_MeshTexture texture)
 Generated from method MR.ObjectMesh.setAncillaryTexture.
 
unsafe void setAncillaryUVCoords (MR._ByValue_VertCoords2 uvCoordinates)
 Generated from method MR.ObjectMesh.setAncillaryUVCoords.
 
unsafe void updateAncillaryUVCoords (MR.VertCoords2 updated)
 Generated from method MR.ObjectMesh.updateAncillaryUVCoords.
 
unsafe void clearAncillaryTexture ()
 Generated from method MR.ObjectMesh.clearAncillaryTexture.
 
unsafe void setSerializeFormat (byte? newFormat)
 overrides file extension used to serialize mesh inside this object: must start from '.', nullptr means serialize in defaultSerializeMeshFormat() Generated from method MR.ObjectMesh.setSerializeFormat.
 
unsafe void resetFrontColor ()
 reset basic object colors to their default values from the current theme Generated from method MR.ObjectMesh.resetFrontColor.
 
unsafe void resetColors ()
 reset all object colors to their default values from the current theme Generated from method MR.ObjectMesh.resetColors.
 
unsafe void setVisualizeProperty (bool value, MR.Const_AnyVisualizeMaskEnum type, MR.Const_ViewportMask viewportMask)
 set visual property in all viewports specified by the mask Generated from method MR.ObjectMesh.setVisualizeProperty.
 
unsafe void setVisualizePropertyMask (MR.Const_AnyVisualizeMaskEnum type, MR.Const_ViewportMask viewportMask)
 set visual property mask Generated from method MR.ObjectMesh.setVisualizePropertyMask.
 
unsafe void toggleVisualizeProperty (MR.Const_AnyVisualizeMaskEnum type, MR.Const_ViewportMask viewportMask)
 toggle visual property in all viewports specified by the mask Generated from method MR.ObjectMesh.toggleVisualizeProperty.
 
unsafe void setAllVisualizeProperties (MR.Std.Const_Vector_MRViewportMask properties)
 set all visualize properties masks Generated from method MR.ObjectMesh.setAllVisualizeProperties.
 
unsafe void setGlobalClippedByPlane (bool on, MR.Const_ViewportMask? viewportMask=null)
 if false deactivates clipped-by-plane for this object and all of its parents, otherwise sets clipped-by-plane for this this object only Generated from method MR.ObjectMesh.setGlobalClippedByPlane. Parameter viewportMask defaults to ViewportMask.all().
 
unsafe void setFrontColor (in MR.Color color, bool selected, MR._InOpt_ViewportId viewportId=default)
 sets color of object when it is selected/not-selected (depending on argument) in given viewport Generated from method MR.ObjectMesh.setFrontColor. Parameter viewportId defaults to {}.
 
unsafe void setFrontColorsForAllViewports (MR._ByValue_ViewportProperty_MRColor val, bool? selected=null)
 sets color of object when it is selected/not-selected (depending on argument) in all viewports Generated from method MR.ObjectMesh.setFrontColorsForAllViewports. Parameter selected defaults to true.
 
unsafe void setBackColorsForAllViewports (MR._ByValue_ViewportProperty_MRColor val)
 sets backward color of object in all viewports Generated from method MR.ObjectMesh.setBackColorsForAllViewports.
 
unsafe void setBackColor (in MR.Color color, MR._InOpt_ViewportId viewportId=default)
 sets backward color of object in given viewport Generated from method MR.ObjectMesh.setBackColor. Parameter viewportId defaults to {}.
 
unsafe void setGlobalAlpha (byte alpha, MR._InOpt_ViewportId viewportId=default)
 sets global transparency alpha of object in given viewport Generated from method MR.ObjectMesh.setGlobalAlpha. Parameter viewportId defaults to {}.
 
unsafe void setGlobalAlphaForAllViewports (MR._ByValue_ViewportProperty_UnsignedChar val)
 sets global transparency alpha of object in all viewports Generated from method MR.ObjectMesh.setGlobalAlphaForAllViewports.
 
unsafe void setPickable (bool on, MR.Const_ViewportMask? viewportMask=null)
 sets the object as can/cannot be picked (by mouse) in all of given viewports Generated from method MR.ObjectMesh.setPickable. Parameter viewportMask defaults to ViewportMask.all().
 
unsafe void setColoringType (MR.ColoringType coloringType)
 sets coloring mode of the object with given argument Generated from method MR.ObjectMesh.setColoringType.
 
unsafe void setShininess (float shininess)
 sets shininess visual value of the object with given argument Generated from method MR.ObjectMesh.setShininess.
 
unsafe void setSpecularStrength (float specularStrength)
 sets intensity of reflections Generated from method MR.ObjectMesh.setSpecularStrength.
 
unsafe void setAmbientStrength (float ambientStrength)
 sets intensity of non-directional light Generated from method MR.ObjectMesh.setAmbientStrength.
 
unsafe void setUseDefaultScenePropertiesOnDeserialization (bool useDefaultScenePropertiesOnDeserialization)
 set whether the scene-related properties should get their values from SceneColors and SceneSettings instances rather than from the input data on deserialization Generated from method MR.ObjectMesh.setUseDefaultScenePropertiesOnDeserialization.
 
unsafe void setName (string name)
 Generated from method MR.ObjectMesh.setName.
 
unsafe void setXf (in MR.AffineXf3f xf, MR._InOpt_ViewportId id=default)
 Generated from method MR.ObjectMesh.setXf. Parameter id defaults to {}.
 
unsafe void resetXf (MR._InOpt_ViewportId id=default)
 forgets specific transform in given viewport (or forgets all specific transforms for {} input) Generated from method MR.ObjectMesh.resetXf. Parameter id defaults to {}.
 
unsafe void setXfsForAllViewports (MR._ByValue_ViewportProperty_MRAffineXf3f xf)
 modifies xfs for all viewports at once Generated from method MR.ObjectMesh.setXfsForAllViewports.
 
unsafe void setWorldXf (in MR.AffineXf3f xf, MR._InOpt_ViewportId id=default)
 Generated from method MR.ObjectMesh.setWorldXf. Parameter id defaults to {}.
 
unsafe void setGlobalVisibility (bool on, MR.Const_ViewportMask? viewportMask=null)
 if true sets all predecessors visible, otherwise sets this object invisible Generated from method MR.ObjectMesh.setGlobalVisibility. Parameter viewportMask defaults to ViewportMask.any().
 
unsafe void setLocked (bool on)
 Generated from method MR.ObjectMesh.setLocked.
 
unsafe void setParentLocked (bool lock_)
 Generated from method MR.ObjectMesh.setParentLocked.
 
unsafe bool detachFromParent ()
 removes this from its parent children list returns false if it was already orphan Generated from method MR.ObjectMesh.detachFromParent.
 
unsafe bool addChild (MR._ByValueShared_Object child, bool? recognizedChild=null)
 adds given object at the end of children (recognized or not); returns false if it was already child of this, of if given pointer is empty; child object will always report this as parent after the call;
 
unsafe bool addChildBefore (MR._ByValueShared_Object newChild, MR.Const_Object existingChild)
 adds given object in the recognized children before existingChild; if newChild was already among this children then moves it just before existingChild keeping the order of other children intact; returns false if newChild is nullptr, or existingChild is not a child of this Generated from method MR.ObjectMesh.addChildBefore.
 
unsafe void removeAllChildren ()
 detaches all recognized children from this, keeping all unrecognized ones Generated from method MR.ObjectMesh.removeAllChildren.
 
unsafe void sortChildren ()
 sort recognized children by name Generated from method MR.ObjectMesh.sortChildren.
 
unsafe bool select (bool on)
 selects the object, returns true if value changed, otherwise returns false Generated from method MR.ObjectMesh.select.
 
unsafe void setAncillary (bool ancillary)
 ancillary object is an object hidden (in scene menu) from a regular user such objects cannot be selected, and if it has been selected, it is unselected when turn ancillary Generated from method MR.ObjectMesh.setAncillary.
 
unsafe void setVisible (bool on, MR.Const_ViewportMask? viewportMask=null)
 sets the object visible in the viewports specified by the mask (by default in all viewports) Generated from method MR.ObjectMesh.setVisible. Parameter viewportMask defaults to ViewportMask.all().
 
unsafe void setVisibilityMask (MR.Const_ViewportMask viewportMask)
 specifies object visibility as bitmask of viewports Generated from method MR.ObjectMesh.setVisibilityMask.
 
unsafe void swap (MR.Object other)
 swaps this object with other note: do not swap object signals, so listeners will get notifications from swapped object requires implementation of swapBase_ and swapSignals_ (if type has signals) Generated from method MR.ObjectMesh.swap.
 
unsafe bool addTag (string tag)
 adds tag to the object's tag storage additionally calls ObjectTagManager.tagAddedSignal NOTE: tags starting with a dot are considered as service ones and might be hidden from UI Generated from method MR.ObjectMesh.addTag.
 
unsafe bool removeTag (string tag)
 removes tag from the object's tag storage additionally calls ObjectTagManager.tagRemovedSignal Generated from method MR.ObjectMesh.removeTag.
 

Static Public Member Functions

static unsafe implicit operator MR.ObjectChildrenHolder (ObjectMesh self)
 
static unsafe implicit operator MR.Object (ObjectMesh self)
 
static unsafe implicit operator MR.VisualObject (ObjectMesh self)
 
static unsafe implicit operator MR.ObjectMeshHolder (ObjectMesh self)
 
static unsafe operator ObjectMesh? (MR.Object parent)
 
static unsafe operator ObjectMesh? (MR.VisualObject parent)
 
static unsafe operator ObjectMesh? (MR.ObjectMeshHolder parent)
 

Detailed Description

an object that stores a mesh Generated from class MR.ObjectMesh. Base classes: Direct: (non-virtual) MR.ObjectMeshHolder Indirect: (non-virtual) MR.ObjectChildrenHolder MR.Object MR.VisualObject This is the non-const half of the class.

Constructor & Destructor Documentation

◆ ObjectMesh() [1/2]

unsafe MR.ObjectMesh.ObjectMesh ( )
inline

Constructs an empty (default-constructed) instance.

◆ ObjectMesh() [2/2]

unsafe MR.ObjectMesh.ObjectMesh ( MR._ByValue_ObjectMesh _other)
inline

Generated from constructor MR.ObjectMesh.ObjectMesh.

Member Function Documentation

◆ addChild()

unsafe bool MR.ObjectMesh.addChild ( MR._ByValueShared_Object child,
bool? recognizedChild = null )
inline

adds given object at the end of children (recognized or not); returns false if it was already child of this, of if given pointer is empty; child object will always report this as parent after the call;

Parameters
recognizedChildif set to false then child object will be excluded from children() and it will be stored by weak_ptr Generated from method MR.ObjectMesh.addChild. Parameter recognizedChild defaults to true.

◆ addChildBefore()

unsafe bool MR.ObjectMesh.addChildBefore ( MR._ByValueShared_Object newChild,
MR.Const_Object existingChild )
inline

adds given object in the recognized children before existingChild; if newChild was already among this children then moves it just before existingChild keeping the order of other children intact; returns false if newChild is nullptr, or existingChild is not a child of this Generated from method MR.ObjectMesh.addChildBefore.

◆ addTag()

unsafe bool MR.ObjectMesh.addTag ( string tag)
inline

adds tag to the object's tag storage additionally calls ObjectTagManager.tagAddedSignal NOTE: tags starting with a dot are considered as service ones and might be hidden from UI Generated from method MR.ObjectMesh.addTag.

◆ addTexture()

unsafe void MR.ObjectMesh.addTexture ( MR._ByValue_MeshTexture texture)
inline

Generated from method MR.ObjectMesh.addTexture.

◆ applyScale()

unsafe void MR.ObjectMesh.applyScale ( float scaleFactor)
inline

Generated from method MR.ObjectMesh.applyScale.

◆ assign()

unsafe MR.ObjectMesh MR.ObjectMesh.assign ( MR._ByValue_ObjectMesh _other)
inline

Generated from method MR.ObjectMesh.operator=.

◆ clearAncillaryTexture()

unsafe void MR.ObjectMesh.clearAncillaryTexture ( )
inline

Generated from method MR.ObjectMesh.clearAncillaryTexture.

◆ copyAllSolidColors()

unsafe void MR.ObjectMesh.copyAllSolidColors ( MR.Const_ObjectMeshHolder other)
inline

set all object solid colors (front/back/etc.) from other object for all viewports Generated from method MR.ObjectMesh.copyAllSolidColors.

◆ copyColors()

unsafe void MR.ObjectMesh.copyColors ( MR.Const_ObjectMeshHolder src,
MR.Const_VertMap thisToSrc,
MR.Const_FaceMap? thisToSrcFaces = null )
inline

copies vertex colors from given source object

Parameters
srcusing given map
thisToSrcGenerated from method MR.ObjectMesh.copyColors. Parameter thisToSrcFaces defaults to {}.

◆ copyTextureAndColors()

unsafe void MR.ObjectMesh.copyTextureAndColors ( MR.Const_ObjectMeshHolder src,
MR.Const_VertMap thisToSrc,
MR.Const_FaceMap? thisToSrcFaces = null )
inline

copies texture, UV-coordinates and vertex colors from given source object

Parameters
srcusing given map
thisToSrcGenerated from method MR.ObjectMesh.copyTextureAndColors. Parameter thisToSrcFaces defaults to {}.

◆ detachFromParent()

unsafe bool MR.ObjectMesh.detachFromParent ( )
inline

removes this from its parent children list returns false if it was already orphan Generated from method MR.ObjectMesh.detachFromParent.

◆ invalidateMetricsCache()

unsafe void MR.ObjectMesh.invalidateMetricsCache ( uint mask)
inline

invalidates same caches with mesh metrics (area, volume, ...) as by setDirtyFlags( mask ) Generated from method MR.ObjectMesh.invalidateMetricsCache.

◆ operator MR.Object()

static unsafe implicit MR.ObjectMesh.operator MR.Object ( ObjectMesh self)
inlinestatic

◆ operator MR.ObjectChildrenHolder()

static unsafe implicit MR.ObjectMesh.operator MR.ObjectChildrenHolder ( ObjectMesh self)
inlinestatic

◆ operator MR.ObjectMeshHolder()

static unsafe implicit MR.ObjectMesh.operator MR.ObjectMeshHolder ( ObjectMesh self)
inlinestatic

◆ operator MR.VisualObject()

static unsafe implicit MR.ObjectMesh.operator MR.VisualObject ( ObjectMesh self)
inlinestatic

◆ operator ObjectMesh?() [1/3]

static unsafe MR.ObjectMesh.operator ObjectMesh? ( MR.Object parent)
inlineexplicitstatic

◆ operator ObjectMesh?() [2/3]

static unsafe MR.ObjectMesh.operator ObjectMesh? ( MR.ObjectMeshHolder parent)
inlineexplicitstatic

◆ operator ObjectMesh?() [3/3]

static unsafe MR.ObjectMesh.operator ObjectMesh? ( MR.VisualObject parent)
inlineexplicitstatic

◆ removeAllChildren()

unsafe void MR.ObjectMesh.removeAllChildren ( )
inline

detaches all recognized children from this, keeping all unrecognized ones Generated from method MR.ObjectMesh.removeAllChildren.

◆ removeTag()

unsafe bool MR.ObjectMesh.removeTag ( string tag)
inline

removes tag from the object's tag storage additionally calls ObjectTagManager.tagRemovedSignal Generated from method MR.ObjectMesh.removeTag.

◆ resetColors()

unsafe void MR.ObjectMesh.resetColors ( )
inline

reset all object colors to their default values from the current theme Generated from method MR.ObjectMesh.resetColors.

◆ resetFrontColor()

unsafe void MR.ObjectMesh.resetFrontColor ( )
inline

reset basic object colors to their default values from the current theme Generated from method MR.ObjectMesh.resetFrontColor.

◆ resetXf()

unsafe void MR.ObjectMesh.resetXf ( MR._InOpt_ViewportId id = default)
inline

forgets specific transform in given viewport (or forgets all specific transforms for {} input) Generated from method MR.ObjectMesh.resetXf. Parameter id defaults to {}.

◆ select()

unsafe bool MR.ObjectMesh.select ( bool on)
inline

selects the object, returns true if value changed, otherwise returns false Generated from method MR.ObjectMesh.select.

◆ selectEdges()

unsafe void MR.ObjectMesh.selectEdges ( MR._ByValue_UndirectedEdgeBitSet newSelection)
inline

Generated from method MR.ObjectMesh.selectEdges.

◆ selectFaces()

unsafe void MR.ObjectMesh.selectFaces ( MR._ByValue_FaceBitSet newSelection)
inline

Generated from method MR.ObjectMesh.selectFaces.

◆ setAllVisualizeProperties()

unsafe void MR.ObjectMesh.setAllVisualizeProperties ( MR.Std.Const_Vector_MRViewportMask properties)
inline

set all visualize properties masks Generated from method MR.ObjectMesh.setAllVisualizeProperties.

◆ setAmbientStrength()

unsafe void MR.ObjectMesh.setAmbientStrength ( float ambientStrength)
inline

sets intensity of non-directional light Generated from method MR.ObjectMesh.setAmbientStrength.

◆ setAncillary()

unsafe void MR.ObjectMesh.setAncillary ( bool ancillary)
inline

ancillary object is an object hidden (in scene menu) from a regular user such objects cannot be selected, and if it has been selected, it is unselected when turn ancillary Generated from method MR.ObjectMesh.setAncillary.

◆ setAncillaryTexture()

unsafe void MR.ObjectMesh.setAncillaryTexture ( MR._ByValue_MeshTexture texture)
inline

Generated from method MR.ObjectMesh.setAncillaryTexture.

◆ setAncillaryUVCoords()

unsafe void MR.ObjectMesh.setAncillaryUVCoords ( MR._ByValue_VertCoords2 uvCoordinates)
inline

Generated from method MR.ObjectMesh.setAncillaryUVCoords.

◆ setBackColor()

unsafe void MR.ObjectMesh.setBackColor ( in MR.Color color,
MR._InOpt_ViewportId viewportId = default )
inline

sets backward color of object in given viewport Generated from method MR.ObjectMesh.setBackColor. Parameter viewportId defaults to {}.

◆ setBackColorsForAllViewports()

unsafe void MR.ObjectMesh.setBackColorsForAllViewports ( MR._ByValue_ViewportProperty_MRColor val)
inline

sets backward color of object in all viewports Generated from method MR.ObjectMesh.setBackColorsForAllViewports.

◆ setBordersColor()

unsafe void MR.ObjectMesh.setBordersColor ( in MR.Color color,
MR._InOpt_ViewportId id = default )
inline

Generated from method MR.ObjectMesh.setBordersColor. Parameter id defaults to {}.

◆ setBordersColorsForAllViewports()

unsafe void MR.ObjectMesh.setBordersColorsForAllViewports ( MR._ByValue_ViewportProperty_MRColor val)
inline

◆ setColoringType()

unsafe void MR.ObjectMesh.setColoringType ( MR.ColoringType coloringType)
inline

sets coloring mode of the object with given argument Generated from method MR.ObjectMesh.setColoringType.

◆ setCreases()

unsafe void MR.ObjectMesh.setCreases ( MR._ByValue_UndirectedEdgeBitSet creases)
inline

Generated from method MR.ObjectMesh.setCreases.

◆ setData()

unsafe void MR.ObjectMesh.setData ( MR.Misc._Moved< MR.ObjectMeshData > data)
inline

sets whole new ObjectMeshData Generated from method MR.ObjectMesh.setData.

◆ setDirtyFlags()

unsafe void MR.ObjectMesh.setDirtyFlags ( uint mask,
bool? invalidateCaches = null )
inline

Generated from method MR.ObjectMesh.setDirtyFlags. Parameter invalidateCaches defaults to true.

◆ setDirtyFlagsFast()

unsafe void MR.ObjectMesh.setDirtyFlagsFast ( uint mask)
inline

this is a faster version of setDirtyFlags(), which does not invalidate metrics cache (area, volume, ...); the user is responsible for calling invalidateMetricsCache( mask ) or setDirtyFlags( mask ) at the end of mesh editing; DANGER: all cached values returned until then can be outdated Generated from method MR.ObjectMesh.setDirtyFlagsFast.

◆ setEdgesColor()

unsafe void MR.ObjectMesh.setEdgesColor ( in MR.Color color,
MR._InOpt_ViewportId id = default )
inline

Generated from method MR.ObjectMesh.setEdgesColor. Parameter id defaults to {}.

◆ setEdgesColorsForAllViewports()

unsafe void MR.ObjectMesh.setEdgesColorsForAllViewports ( MR._ByValue_ViewportProperty_MRColor val)
inline

◆ setEdgeWidth()

unsafe void MR.ObjectMesh.setEdgeWidth ( float edgeWidth)
inline

Generated from method MR.ObjectMesh.setEdgeWidth.

◆ setFacesColorMap()

unsafe void MR.ObjectMesh.setFacesColorMap ( MR._ByValue_FaceColors facesColorMap)
inline

Generated from method MR.ObjectMesh.setFacesColorMap.

◆ setFlatShading()

unsafe void MR.ObjectMesh.setFlatShading ( bool on)
inline

sets flat (true) or smooth (false) shading Generated from method MR.ObjectMesh.setFlatShading.

◆ setFrontColor()

unsafe void MR.ObjectMesh.setFrontColor ( in MR.Color color,
bool selected,
MR._InOpt_ViewportId viewportId = default )
inline

sets color of object when it is selected/not-selected (depending on argument) in given viewport Generated from method MR.ObjectMesh.setFrontColor. Parameter viewportId defaults to {}.

◆ setFrontColorsForAllViewports()

unsafe void MR.ObjectMesh.setFrontColorsForAllViewports ( MR._ByValue_ViewportProperty_MRColor val,
bool? selected = null )
inline

sets color of object when it is selected/not-selected (depending on argument) in all viewports Generated from method MR.ObjectMesh.setFrontColorsForAllViewports. Parameter selected defaults to true.

◆ setGlobalAlpha()

unsafe void MR.ObjectMesh.setGlobalAlpha ( byte alpha,
MR._InOpt_ViewportId viewportId = default )
inline

sets global transparency alpha of object in given viewport Generated from method MR.ObjectMesh.setGlobalAlpha. Parameter viewportId defaults to {}.

◆ setGlobalAlphaForAllViewports()

unsafe void MR.ObjectMesh.setGlobalAlphaForAllViewports ( MR._ByValue_ViewportProperty_UnsignedChar val)
inline

sets global transparency alpha of object in all viewports Generated from method MR.ObjectMesh.setGlobalAlphaForAllViewports.

◆ setGlobalClippedByPlane()

unsafe void MR.ObjectMesh.setGlobalClippedByPlane ( bool on,
MR.Const_ViewportMask? viewportMask = null )
inline

if false deactivates clipped-by-plane for this object and all of its parents, otherwise sets clipped-by-plane for this this object only Generated from method MR.ObjectMesh.setGlobalClippedByPlane. Parameter viewportMask defaults to ViewportMask.all().

◆ setGlobalVisibility()

unsafe void MR.ObjectMesh.setGlobalVisibility ( bool on,
MR.Const_ViewportMask? viewportMask = null )
inline

if true sets all predecessors visible, otherwise sets this object invisible Generated from method MR.ObjectMesh.setGlobalVisibility. Parameter viewportMask defaults to ViewportMask.any().

◆ setLocked()

unsafe void MR.ObjectMesh.setLocked ( bool on)
inline

Generated from method MR.ObjectMesh.setLocked.

◆ setMesh()

unsafe void MR.ObjectMesh.setMesh ( MR._ByValueShared_Mesh mesh)
inline

sets given mesh to this, resets selection and creases Generated from method MR.ObjectMesh.setMesh.

◆ setName()

unsafe void MR.ObjectMesh.setName ( string name)
inline

Generated from method MR.ObjectMesh.setName.

◆ setParentLocked()

unsafe void MR.ObjectMesh.setParentLocked ( bool lock_)
inline

Generated from method MR.ObjectMesh.setParentLocked.

◆ setPickable()

unsafe void MR.ObjectMesh.setPickable ( bool on,
MR.Const_ViewportMask? viewportMask = null )
inline

sets the object as can/cannot be picked (by mouse) in all of given viewports Generated from method MR.ObjectMesh.setPickable. Parameter viewportMask defaults to ViewportMask.all().

◆ setPointsColor()

unsafe void MR.ObjectMesh.setPointsColor ( in MR.Color color,
MR._InOpt_ViewportId id = default )
inline

Generated from method MR.ObjectMesh.setPointsColor. Parameter id defaults to {}.

◆ setPointsColorsForAllViewports()

unsafe void MR.ObjectMesh.setPointsColorsForAllViewports ( MR._ByValue_ViewportProperty_MRColor val)
inline

◆ setPointSize()

unsafe void MR.ObjectMesh.setPointSize ( float size)
inline

Generated from method MR.ObjectMesh.setPointSize.

◆ setSelectedEdgesColor()

unsafe void MR.ObjectMesh.setSelectedEdgesColor ( in MR.Color color,
MR._InOpt_ViewportId id = default )
inline

sets colors of selected edges Generated from method MR.ObjectMesh.setSelectedEdgesColor. Parameter id defaults to {}.

◆ setSelectedEdgesColorsForAllViewports()

unsafe void MR.ObjectMesh.setSelectedEdgesColorsForAllViewports ( MR._ByValue_ViewportProperty_MRColor val)
inline

◆ setSelectedFacesColor()

unsafe void MR.ObjectMesh.setSelectedFacesColor ( in MR.Color color,
MR._InOpt_ViewportId id = default )
inline

sets colors of selected triangles Generated from method MR.ObjectMesh.setSelectedFacesColor. Parameter id defaults to {}.

◆ setSelectedFacesColorsForAllViewports()

unsafe void MR.ObjectMesh.setSelectedFacesColorsForAllViewports ( MR._ByValue_ViewportProperty_MRColor val)
inline

◆ setSerializeFormat()

unsafe void MR.ObjectMesh.setSerializeFormat ( byte? newFormat)
inline

overrides file extension used to serialize mesh inside this object: must start from '.', nullptr means serialize in defaultSerializeMeshFormat() Generated from method MR.ObjectMesh.setSerializeFormat.

◆ setShininess()

unsafe void MR.ObjectMesh.setShininess ( float shininess)
inline

sets shininess visual value of the object with given argument Generated from method MR.ObjectMesh.setShininess.

◆ setSpecularStrength()

unsafe void MR.ObjectMesh.setSpecularStrength ( float specularStrength)
inline

sets intensity of reflections Generated from method MR.ObjectMesh.setSpecularStrength.

◆ setTexturePerFace()

unsafe void MR.ObjectMesh.setTexturePerFace ( MR._ByValue_TexturePerFace texturePerFace)
inline

the texture ids for the faces if more than one texture is used to texture the object texture coordinates (data_.uvCoordinates) at a point can belong to different textures, depending on which face the point belongs to Generated from method MR.ObjectMesh.setTexturePerFace.

◆ setTextures()

unsafe void MR.ObjectMesh.setTextures ( MR._ByValue_Vector_MRMeshTexture_MRTextureId texture)
inline

Generated from method MR.ObjectMesh.setTextures.

◆ setUseDefaultScenePropertiesOnDeserialization()

unsafe void MR.ObjectMesh.setUseDefaultScenePropertiesOnDeserialization ( bool useDefaultScenePropertiesOnDeserialization)
inline

set whether the scene-related properties should get their values from SceneColors and SceneSettings instances rather than from the input data on deserialization Generated from method MR.ObjectMesh.setUseDefaultScenePropertiesOnDeserialization.

◆ setUVCoords()

unsafe void MR.ObjectMesh.setUVCoords ( MR._ByValue_VertCoords2 uvCoordinates)
inline

Generated from method MR.ObjectMesh.setUVCoords.

◆ setVertsColorMap()

unsafe void MR.ObjectMesh.setVertsColorMap ( MR._ByValue_VertColors vertsColorMap)
inline

sets per-vertex colors of the object Generated from method MR.ObjectMesh.setVertsColorMap.

◆ setVisibilityMask()

unsafe void MR.ObjectMesh.setVisibilityMask ( MR.Const_ViewportMask viewportMask)
inline

specifies object visibility as bitmask of viewports Generated from method MR.ObjectMesh.setVisibilityMask.

◆ setVisible()

unsafe void MR.ObjectMesh.setVisible ( bool on,
MR.Const_ViewportMask? viewportMask = null )
inline

sets the object visible in the viewports specified by the mask (by default in all viewports) Generated from method MR.ObjectMesh.setVisible. Parameter viewportMask defaults to ViewportMask.all().

◆ setVisualizeProperty()

unsafe void MR.ObjectMesh.setVisualizeProperty ( bool value,
MR.Const_AnyVisualizeMaskEnum type,
MR.Const_ViewportMask viewportMask )
inline

set visual property in all viewports specified by the mask Generated from method MR.ObjectMesh.setVisualizeProperty.

◆ setVisualizePropertyMask()

unsafe void MR.ObjectMesh.setVisualizePropertyMask ( MR.Const_AnyVisualizeMaskEnum type,
MR.Const_ViewportMask viewportMask )
inline

set visual property mask Generated from method MR.ObjectMesh.setVisualizePropertyMask.

◆ setWorldXf()

unsafe void MR.ObjectMesh.setWorldXf ( in MR.AffineXf3f xf,
MR._InOpt_ViewportId id = default )
inline

Generated from method MR.ObjectMesh.setWorldXf. Parameter id defaults to {}.

◆ setXf()

unsafe void MR.ObjectMesh.setXf ( in MR.AffineXf3f xf,
MR._InOpt_ViewportId id = default )
inline

Generated from method MR.ObjectMesh.setXf. Parameter id defaults to {}.

◆ setXfsForAllViewports()

unsafe void MR.ObjectMesh.setXfsForAllViewports ( MR._ByValue_ViewportProperty_MRAffineXf3f xf)
inline

modifies xfs for all viewports at once Generated from method MR.ObjectMesh.setXfsForAllViewports.

◆ sortChildren()

unsafe void MR.ObjectMesh.sortChildren ( )
inline

sort recognized children by name Generated from method MR.ObjectMesh.sortChildren.

◆ swap()

unsafe void MR.ObjectMesh.swap ( MR.Object other)
inline

swaps this object with other note: do not swap object signals, so listeners will get notifications from swapped object requires implementation of swapBase_ and swapSignals_ (if type has signals) Generated from method MR.ObjectMesh.swap.

◆ toggleVisualizeProperty()

unsafe void MR.ObjectMesh.toggleVisualizeProperty ( MR.Const_AnyVisualizeMaskEnum type,
MR.Const_ViewportMask viewportMask )
inline

toggle visual property in all viewports specified by the mask Generated from method MR.ObjectMesh.toggleVisualizeProperty.

◆ updateAncillaryUVCoords()

unsafe void MR.ObjectMesh.updateAncillaryUVCoords ( MR.VertCoords2 updated)
inline

Generated from method MR.ObjectMesh.updateAncillaryUVCoords.

◆ updateData()

unsafe void MR.ObjectMesh.updateData ( MR.ObjectMeshData data)
inline

swaps whole ObjectMeshData with given argument Generated from method MR.ObjectMesh.updateData.

◆ updateFacesColorMap()

unsafe void MR.ObjectMesh.updateFacesColorMap ( MR.FaceColors updated)
inline

Generated from method MR.ObjectMesh.updateFacesColorMap.

◆ updateMesh()

unsafe MR.Mesh MR.ObjectMesh.updateMesh ( MR._ByValueShared_Mesh mesh)
inline

sets given mesh to this, and returns back previous mesh of this; does not touch selection or creases Generated from method MR.ObjectMesh.updateMesh.

◆ updateTexturePerFace()

unsafe void MR.ObjectMesh.updateTexturePerFace ( MR.TexturePerFace texturePerFace)
inline

Generated from method MR.ObjectMesh.updateTexturePerFace.

◆ updateTextures()

unsafe void MR.ObjectMesh.updateTextures ( MR.Vector_MRMeshTexture_MRTextureId updated)
inline

Generated from method MR.ObjectMesh.updateTextures.

◆ updateUVCoords()

unsafe void MR.ObjectMesh.updateUVCoords ( MR.VertCoords2 updated)
inline

Generated from method MR.ObjectMesh.updateUVCoords.

◆ updateVertsColorMap()

unsafe void MR.ObjectMesh.updateVertsColorMap ( MR.VertColors vertsColorMap)
inline

swaps per-vertex colors of the object with given argument Generated from method MR.ObjectMesh.updateVertsColorMap.

◆ varMesh()

unsafe MR.Const_Mesh MR.ObjectMesh.varMesh ( )
inline

returns variable mesh, if const mesh is needed use mesh() instead Generated from method MR.ObjectMesh.varMesh.


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