MeshLib C# Docs
Loading...
Searching...
No Matches

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.Std.Const_SharedPtr_MRMesh varMesh ()
 returns variable mesh, if const mesh is needed use mesh() instead Generated from method MR.ObjectMesh.varMesh.
unsafe void setMesh (MR.Std._ByValue_SharedPtr_MRMesh mesh)
 sets given mesh to this, resets selection and creases Generated from method MR.ObjectMesh.setMesh.
unsafe MR.Std.SharedPtr_MRMesh updateMesh (MR.Std._ByValue_SharedPtr_MRMesh 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.Std._ByValue_SharedPtr_MRObject 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.Std._ByValue_SharedPtr_MRObject newChild, MR.Std.Const_SharedPtr_MRObject 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.
Public Member Functions inherited from MR.Const_ObjectMesh
virtual void Dispose ()
unsafe Const_ObjectMesh ()
 Constructs an empty (default-constructed) instance.
unsafe Const_ObjectMesh (MR._ByValue_ObjectMesh _other)
 Generated from constructor MR.ObjectMesh.ObjectMesh.
unsafe? byte typeName ()
 Generated from method MR.ObjectMesh.typeName.
unsafe MR.Std.String className ()
 Generated from method MR.ObjectMesh.className.
unsafe MR.Std.String classNameInPlural ()
 Generated from method MR.ObjectMesh.classNameInPlural.
unsafe MR.Std.Vector_StdString getInfoLines ()
 Generated from method MR.ObjectMesh.getInfoLines.
unsafe MR.Std.SharedPtr_MRObject clone ()
 Generated from method MR.ObjectMesh.clone.
unsafe MR.Std.SharedPtr_MRObject shallowClone ()
 Generated from method MR.ObjectMesh.shallowClone.
unsafe MR.MeshIntersectionResult worldRayIntersection (MR.Const_Line3f worldRay, MR.Const_FaceBitSet? region=null)
 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 Generated from method MR.ObjectMesh.worldRayIntersection.
unsafe bool hasVisualRepresentation ()
 mesh object can be seen if the mesh has at least one edge Generated from method MR.ObjectMesh.hasVisualRepresentation.
unsafe bool hasModel ()
 Generated from method MR.ObjectMesh.hasModel.
unsafe MR.Std.Const_SharedPtr_ConstMRMesh mesh ()
 Generated from method MR.ObjectMesh.mesh.
unsafe MR.MeshPart meshPart ()
unsafe MR.Const_FaceBitSet getSelectedFaces ()
 Generated from method MR.ObjectMesh.getSelectedFaces.
unsafe ref readonly MR.Color getSelectedFacesColor (MR._InOpt_ViewportId id=default)
 returns colors of selected triangles Generated from method MR.ObjectMesh.getSelectedFacesColor. Parameter id defaults to {}.
unsafe MR.Const_UndirectedEdgeBitSet getSelectedEdges ()
 Generated from method MR.ObjectMesh.getSelectedEdges.
unsafe ref readonly MR.Color getSelectedEdgesColor (MR._InOpt_ViewportId id=default)
 returns colors of selected edges Generated from method MR.ObjectMesh.getSelectedEdgesColor. Parameter id defaults to {}.
unsafe MR.Const_ViewportProperty_MRColor getSelectedEdgesColorsForAllViewports ()
 Generated from method MR.ObjectMesh.getSelectedEdgesColorsForAllViewports.
unsafe MR.Const_ViewportProperty_MRColor getSelectedFacesColorsForAllViewports ()
 Generated from method MR.ObjectMesh.getSelectedFacesColorsForAllViewports.
unsafe MR.Const_ViewportProperty_MRColor getEdgesColorsForAllViewports ()
 Generated from method MR.ObjectMesh.getEdgesColorsForAllViewports.
unsafe MR.Const_ViewportProperty_MRColor getPointsColorsForAllViewports ()
 Generated from method MR.ObjectMesh.getPointsColorsForAllViewports.
unsafe MR.Const_ViewportProperty_MRColor getBordersColorsForAllViewports ()
 Generated from method MR.ObjectMesh.getBordersColorsForAllViewports.
unsafe MR.Const_UndirectedEdgeBitSet creases ()
 Edges on mesh, that will have sharp visualization even with smooth shading Generated from method MR.ObjectMesh.creases.
unsafe bool flatShading ()
 Generated from method MR.ObjectMesh.flatShading.
unsafe bool supportsVisualizeProperty (MR.Const_AnyVisualizeMaskEnum type)
 Generated from method MR.ObjectMesh.supportsVisualizeProperty.
unsafe MR.Std.Vector_MRViewportMask getAllVisualizeProperties ()
 get all visualize properties masks Generated from method MR.ObjectMesh.getAllVisualizeProperties.
unsafe MR.Const_ViewportMask getVisualizePropertyMask (MR.Const_AnyVisualizeMaskEnum type)
 returns mask of viewports where given property is set Generated from method MR.ObjectMesh.getVisualizePropertyMask.
unsafe MR.Const_ObjectMeshData data ()
 provides read-only access to whole ObjectMeshData Generated from method MR.ObjectMesh.data.
unsafe MR.Const_VertColors getVertsColorMap ()
 returns per-vertex colors of the object Generated from method MR.ObjectMesh.getVertsColorMap.
unsafe MR.Const_FaceColors getFacesColorMap ()
 Generated from method MR.ObjectMesh.getFacesColorMap.
unsafe float getEdgeWidth ()
 Generated from method MR.ObjectMesh.getEdgeWidth.
unsafe float getPointSize ()
 Generated from method MR.ObjectMesh.getPointSize.
unsafe ref readonly MR.Color getEdgesColor (MR._InOpt_ViewportId id=default)
 Generated from method MR.ObjectMesh.getEdgesColor. Parameter id defaults to {}.
unsafe ref readonly MR.Color getPointsColor (MR._InOpt_ViewportId id=default)
 Generated from method MR.ObjectMesh.getPointsColor. Parameter id defaults to {}.
unsafe ref readonly MR.Color getBordersColor (MR._InOpt_ViewportId id=default)
 Generated from method MR.ObjectMesh.getBordersColor. Parameter id defaults to {}.
unsafe MR.Const_MeshTexture getTexture ()
 returns first texture in the vector. If there is no textures, returns empty texture Generated from method MR.ObjectMesh.getTexture.
unsafe MR.Const_Vector_MRMeshTexture_MRTextureId getTextures ()
 Generated from method MR.ObjectMesh.getTextures.
unsafe MR.Const_TexturePerFace getTexturePerFace ()
 Generated from method MR.ObjectMesh.getTexturePerFace.
unsafe MR.Const_VertCoords2 getUVCoords ()
 Generated from method MR.ObjectMesh.getUVCoords.
unsafe MR.Const_MeshTexture getAncillaryTexture ()
 Generated from method MR.ObjectMesh.getAncillaryTexture.
unsafe MR.Const_VertCoords2 getAncillaryUVCoords ()
 Generated from method MR.ObjectMesh.getAncillaryUVCoords.
unsafe bool hasAncillaryTexture ()
 Generated from method MR.ObjectMesh.hasAncillaryTexture.
unsafe bool getRedrawFlag (MR.Const_ViewportMask viewportMask)
 Generated from method MR.ObjectMesh.getRedrawFlag.
unsafe bool isMeshClosed ()
 returns cached information whether the mesh is closed Generated from method MR.ObjectMesh.isMeshClosed.
unsafe MR.Box3f getWorldBox (MR._InOpt_ViewportId _1=default)
 returns cached bounding box of this mesh object in world coordinates; if you need bounding box in local coordinates please call getBoundingBox() Generated from method MR.ObjectMesh.getWorldBox. Parameter _1 defaults to {}.
unsafe ulong numSelectedFaces ()
 returns cached information about the number of selected faces in the mesh Generated from method MR.ObjectMesh.numSelectedFaces.
unsafe ulong numSelectedEdges ()
 returns cached information about the number of selected undirected edges in the mesh Generated from method MR.ObjectMesh.numSelectedEdges.
unsafe ulong numCreaseEdges ()
 returns cached information about the number of crease undirected edges in the mesh Generated from method MR.ObjectMesh.numCreaseEdges.
unsafe double totalArea ()
 returns cached summed area of mesh triangles Generated from method MR.ObjectMesh.totalArea.
unsafe double selectedArea ()
 returns cached area of selected triangles Generated from method MR.ObjectMesh.selectedArea.
unsafe double volume ()
 returns cached volume of space surrounded by the mesh, which is valid only if mesh is closed Generated from method MR.ObjectMesh.volume.
unsafe float avgEdgeLen ()
 returns cached average edge length Generated from method MR.ObjectMesh.avgEdgeLen.
unsafe ulong numUndirectedEdges ()
 returns cached information about the number of undirected edges in the mesh Generated from method MR.ObjectMesh.numUndirectedEdges.
unsafe ulong numHoles ()
 returns cached information about the number of holes in the mesh Generated from method MR.ObjectMesh.numHoles.
unsafe ulong numComponents ()
 returns cached information about the number of components in the mesh Generated from method MR.ObjectMesh.numComponents.
unsafe ulong numHandles ()
 returns cached information about the number of handles in the mesh Generated from method MR.ObjectMesh.numHandles.
unsafe ulong heapBytes ()
 returns the amount of memory this object occupies on heap Generated from method MR.ObjectMesh.heapBytes.
unsafe? byte serializeFormat ()
 returns overriden file extension used to serialize mesh inside this object, nullptr means defaultSerializeMeshFormat() Generated from method MR.ObjectMesh.serializeFormat.
unsafe? byte actualSerializeFormat ()
 returns overriden file extension used to serialize mesh inside this object if set, or defaultSerializeMeshFormat().c_str() otherwise; never returns nullptr Generated from method MR.ObjectMesh.actualSerializeFormat.
unsafe ulong getModelHash ()
 Generated from method MR.ObjectMesh.getModelHash.
unsafe bool sameModels (MR.Const_Object other)
 Generated from method MR.ObjectMesh.sameModels.
unsafe bool getVisualizeProperty (MR.Const_AnyVisualizeMaskEnum type, MR.Const_ViewportMask viewportMask)
 returns true if the property is set at least in one viewport specified by the mask Generated from method MR.ObjectMesh.getVisualizeProperty.
unsafe MR.ViewportMask globalClippedByPlaneMask ()
 returns all viewports where this object or any of its parents is clipped by plane Generated from method MR.ObjectMesh.globalClippedByPlaneMask.
unsafe bool globalClippedByPlane (MR.Const_ViewportMask? viewportMask=null)
 returns true if this object or any of its parents is clipped by plane in any of given viewports Generated from method MR.ObjectMesh.globalClippedByPlane. Parameter viewportMask defaults to ViewportMask.any().
unsafe ref readonly MR.Color getFrontColor (bool? selected=null, MR._InOpt_ViewportId viewportId=default)
 returns color of object when it is selected/not-selected (depending on argument) in given viewport Generated from method MR.ObjectMesh.getFrontColor. Parameter selected defaults to true. Parameter viewportId defaults to {}.
unsafe MR.Const_ViewportProperty_MRColor getFrontColorsForAllViewports (bool? selected=null)
 returns color of object when it is selected/not-selected (depending on argument) in all viewports Generated from method MR.ObjectMesh.getFrontColorsForAllViewports. Parameter selected defaults to true.
unsafe MR.Const_ViewportProperty_MRColor getBackColorsForAllViewports ()
 returns backward color of object in all viewports Generated from method MR.ObjectMesh.getBackColorsForAllViewports.
unsafe ref readonly MR.Color getBackColor (MR._InOpt_ViewportId viewportId=default)
 returns backward color of object in given viewport Generated from method MR.ObjectMesh.getBackColor. Parameter viewportId defaults to {}.
unsafe byte getGlobalAlpha (MR._InOpt_ViewportId viewportId=default)
 returns global transparency alpha of object in given viewport Generated from method MR.ObjectMesh.getGlobalAlpha. Parameter viewportId defaults to {}.
unsafe MR.Const_ViewportProperty_UnsignedChar getGlobalAlphaForAllViewports ()
 returns global transparency alpha of object in all viewports Generated from method MR.ObjectMesh.getGlobalAlphaForAllViewports.
unsafe uint getDirtyFlags ()
 returns current dirty flags for the object Generated from method MR.ObjectMesh.getDirtyFlags.
unsafe void resetDirty ()
 resets all dirty flags (except for cache flags that will be reset automatically on cache update) Generated from method MR.ObjectMesh.resetDirty.
unsafe void resetDirtyExceptMask (uint mask)
 reset dirty flags without some specific bits (useful for lazy normals update) Generated from method MR.ObjectMesh.resetDirtyExceptMask.
unsafe MR.Box3f getBoundingBox ()
 returns cached bounding box of this object in local coordinates Generated from method MR.ObjectMesh.getBoundingBox.
unsafe bool isPickable (MR.Const_ViewportMask? viewportMask=null)
 whether the object can be picked (by mouse) in any of given viewports Generated from method MR.ObjectMesh.isPickable. Parameter viewportMask defaults to ViewportMask.any().
unsafe MR.ColoringType getColoringType ()
 returns the current coloring mode of the object Generated from method MR.ObjectMesh.getColoringType.
unsafe float getShininess ()
 returns the current shininess visual value Generated from method MR.ObjectMesh.getShininess.
unsafe float getSpecularStrength ()
 returns intensity of reflections Generated from method MR.ObjectMesh.getSpecularStrength.
unsafe float getAmbientStrength ()
 returns intensity of non-directional light Generated from method MR.ObjectMesh.getAmbientStrength.
unsafe bool render (MR.Const_ModelRenderParams _1)
 draws this object for visualization Returns true if something was drawn. Generated from method MR.ObjectMesh.render.
unsafe void renderForPicker (MR.Const_ModelBaseRenderParams _1, uint _2)
 draws this object for picking Generated from method MR.ObjectMesh.renderForPicker.
unsafe void renderUi (MR.Const_UiRenderParams params_)
 draws this object for 2d UI Generated from method MR.ObjectMesh.renderUi.
unsafe bool useDefaultScenePropertiesOnDeserialization ()
 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.useDefaultScenePropertiesOnDeserialization.
unsafe MR.Std.Const_String name ()
 Generated from method MR.ObjectMesh.name.
unsafe ref readonly MR.AffineXf3f xf (MR._InOpt_ViewportId id=default, MR.Misc.InOut< bool >? isDef=null)
 this space to parent space transformation (to world space if no parent) for default or given viewport
unsafe MR.Const_ViewportProperty_MRAffineXf3f xfsForAllViewports ()
 returns xfs for all viewports, combined into a single object Generated from method MR.ObjectMesh.xfsForAllViewports.
unsafe MR.AffineXf3f worldXf (MR._InOpt_ViewportId id=default, MR.Misc.InOut< bool >? isDef=null)
 this space to world space transformation for default or specific viewport
unsafe MR.ViewportMask globalVisibilityMask ()
 returns all viewports where this object is visible together with all its parents Generated from method MR.ObjectMesh.globalVisibilityMask.
unsafe bool globalVisibility (MR.Const_ViewportMask? viewportMask=null)
 returns true if this object is visible together with all its parents in any of given viewports Generated from method MR.ObjectMesh.globalVisibility. Parameter viewportMask defaults to ViewportMask.any().
unsafe bool isLocked ()
 object properties lock for UI Generated from method MR.ObjectMesh.isLocked.
unsafe bool isParentLocked ()
 If true, the scene tree GUI doesn't allow you to drag'n'drop this object into a different parent. Defaults to false. Generated from method MR.ObjectMesh.isParentLocked.
unsafe bool isAncestor (MR.Const_Object? ancestor)
 return true if given object is ancestor of this one, false otherwise Generated from method MR.ObjectMesh.isAncestor.
unsafe bool isSelected ()
 Generated from method MR.ObjectMesh.isSelected.
unsafe bool isAncillary ()
 Generated from method MR.ObjectMesh.isAncillary.
unsafe bool isGlobalAncillary ()
 returns true if the object or any of its ancestors are ancillary Generated from method MR.ObjectMesh.isGlobalAncillary.
unsafe bool isVisible (MR.Const_ViewportMask? viewportMask=null)
 checks whether the object is visible in any of the viewports specified by the mask (by default in any viewport) Generated from method MR.ObjectMesh.isVisible. Parameter viewportMask defaults to ViewportMask.any().
unsafe MR.ViewportMask visibilityMask ()
 gets object visibility as bitmask of viewports Generated from method MR.ObjectMesh.visibilityMask.
unsafe void resetRedrawFlag ()
 Generated from method MR.ObjectMesh.resetRedrawFlag.
unsafe MR.Std.SharedPtr_MRObject cloneTree ()
 clones all tree of this object (except ancillary and unrecognized children) Generated from method MR.ObjectMesh.cloneTree.
unsafe MR.Std.SharedPtr_MRObject shallowCloneTree ()
 clones all tree of this object (except ancillary and unrecognied children) clones only pointers to mesh, points or voxels Generated from method MR.ObjectMesh.shallowCloneTree.
unsafe MR.Box3f getWorldTreeBox (MR._InOpt_ViewportId _1=default)
 empty box returns bounding box of this object and all children visible in given (or default) viewport in world coordinates Generated from method MR.ObjectMesh.getWorldTreeBox. Parameter _1 defaults to {}.
unsafe MR.Std.Const_Set_StdString tags ()
 provides read-only access to the tag storage the storage is a set of unique strings Generated from method MR.ObjectMesh.tags.
unsafe MR.Std.SharedPtr_MRObject getSharedPtr ()
 Generated from method MR.ObjectMesh.getSharedPtr.

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)
Static Public Member Functions inherited from MR.Const_ObjectMesh
static unsafe implicit operator MR.Const_ObjectChildrenHolder (Const_ObjectMesh self)
static unsafe implicit operator MR.Const_Object (Const_ObjectMesh self)
static unsafe implicit operator MR.Const_VisualObject (Const_ObjectMesh self)
static unsafe implicit operator MR.Const_ObjectMeshHolder (Const_ObjectMesh self)
static unsafe operator Const_ObjectMesh? (MR.Const_Object parent)
static unsafe operator Const_ObjectMesh? (MR.Const_VisualObject parent)
static unsafe operator Const_ObjectMesh? (MR.Const_ObjectMeshHolder parent)
static unsafe? byte staticTypeName ()
 Generated from method MR::ObjectMesh::StaticTypeName.
static unsafe? byte staticClassName ()
 Generated from method MR::ObjectMesh::StaticClassName.
static unsafe? byte staticClassNameInPlural ()
 Generated from method MR::ObjectMesh::StaticClassNameInPlural.

Additional Inherited Members

Protected Member Functions inherited from MR.Const_ObjectMesh
virtual unsafe void Dispose (bool disposing)

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.Std._ByValue_SharedPtr_MRObject 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.Std._ByValue_SharedPtr_MRObject newChild,
MR.Std.Const_SharedPtr_MRObject 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()

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

◆ operator MR.ObjectChildrenHolder()

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

◆ operator MR.ObjectMeshHolder()

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

◆ operator MR.VisualObject()

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

◆ operator ObjectMesh?() [1/3]

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

◆ operator ObjectMesh?() [2/3]

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

◆ operator ObjectMesh?() [3/3]

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.Std._ByValue_SharedPtr_MRMesh 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.Std.SharedPtr_MRMesh MR.ObjectMesh.updateMesh ( MR.Std._ByValue_SharedPtr_MRMesh 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.Std.Const_SharedPtr_MRMesh 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: