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 const half of the class. More...

Inheritance diagram for MR.Const_ObjectMesh:

Classes

struct  _Underlying

Public Member Functions

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.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.

Protected Member Functions

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 const half of the class.

Constructor & Destructor Documentation

◆ Const_ObjectMesh() [1/2]

unsafe MR.Const_ObjectMesh.Const_ObjectMesh ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_ObjectMesh() [2/2]

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

Generated from constructor MR.ObjectMesh.ObjectMesh.

Member Function Documentation

◆ actualSerializeFormat()

unsafe? byte MR.Const_ObjectMesh.actualSerializeFormat ( )
inline

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.

◆ avgEdgeLen()

unsafe float MR.Const_ObjectMesh.avgEdgeLen ( )
inline

returns cached average edge length Generated from method MR.ObjectMesh.avgEdgeLen.

◆ className()

unsafe MR.Std.String MR.Const_ObjectMesh.className ( )
inline

Generated from method MR.ObjectMesh.className.

◆ classNameInPlural()

unsafe MR.Std.String MR.Const_ObjectMesh.classNameInPlural ( )
inline

Generated from method MR.ObjectMesh.classNameInPlural.

◆ clone()

unsafe MR.Std.SharedPtr_MRObject MR.Const_ObjectMesh.clone ( )
inline

Generated from method MR.ObjectMesh.clone.

◆ cloneTree()

unsafe MR.Std.SharedPtr_MRObject MR.Const_ObjectMesh.cloneTree ( )
inline

clones all tree of this object (except ancillary and unrecognized children) Generated from method MR.ObjectMesh.cloneTree.

◆ creases()

unsafe MR.Const_UndirectedEdgeBitSet MR.Const_ObjectMesh.creases ( )
inline

Edges on mesh, that will have sharp visualization even with smooth shading Generated from method MR.ObjectMesh.creases.

◆ data()

unsafe MR.Const_ObjectMeshData MR.Const_ObjectMesh.data ( )
inline

provides read-only access to whole ObjectMeshData Generated from method MR.ObjectMesh.data.

◆ Dispose() [1/2]

virtual void MR.Const_ObjectMesh.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_ObjectMesh.Dispose ( bool disposing)
inlineprotectedvirtual

◆ flatShading()

unsafe bool MR.Const_ObjectMesh.flatShading ( )
inline

Generated from method MR.ObjectMesh.flatShading.

◆ getAllVisualizeProperties()

unsafe MR.Std.Vector_MRViewportMask MR.Const_ObjectMesh.getAllVisualizeProperties ( )
inline

get all visualize properties masks Generated from method MR.ObjectMesh.getAllVisualizeProperties.

◆ getAmbientStrength()

unsafe float MR.Const_ObjectMesh.getAmbientStrength ( )
inline

returns intensity of non-directional light Generated from method MR.ObjectMesh.getAmbientStrength.

◆ getAncillaryTexture()

unsafe MR.Const_MeshTexture MR.Const_ObjectMesh.getAncillaryTexture ( )
inline

Generated from method MR.ObjectMesh.getAncillaryTexture.

◆ getAncillaryUVCoords()

unsafe MR.Const_VertCoords2 MR.Const_ObjectMesh.getAncillaryUVCoords ( )
inline

Generated from method MR.ObjectMesh.getAncillaryUVCoords.

◆ getBackColor()

unsafe ref readonly MR.Color MR.Const_ObjectMesh.getBackColor ( MR._InOpt_ViewportId viewportId = default)
inline

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

◆ getBackColorsForAllViewports()

unsafe MR.Const_ViewportProperty_MRColor MR.Const_ObjectMesh.getBackColorsForAllViewports ( )
inline

returns backward color of object in all viewports Generated from method MR.ObjectMesh.getBackColorsForAllViewports.

◆ getBordersColor()

unsafe ref readonly MR.Color MR.Const_ObjectMesh.getBordersColor ( MR._InOpt_ViewportId id = default)
inline

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

◆ getBordersColorsForAllViewports()

unsafe MR.Const_ViewportProperty_MRColor MR.Const_ObjectMesh.getBordersColorsForAllViewports ( )
inline

◆ getBoundingBox()

unsafe MR.Box3f MR.Const_ObjectMesh.getBoundingBox ( )
inline

returns cached bounding box of this object in local coordinates Generated from method MR.ObjectMesh.getBoundingBox.

◆ getColoringType()

unsafe MR.ColoringType MR.Const_ObjectMesh.getColoringType ( )
inline

returns the current coloring mode of the object Generated from method MR.ObjectMesh.getColoringType.

◆ getDirtyFlags()

unsafe uint MR.Const_ObjectMesh.getDirtyFlags ( )
inline

returns current dirty flags for the object Generated from method MR.ObjectMesh.getDirtyFlags.

◆ getEdgesColor()

unsafe ref readonly MR.Color MR.Const_ObjectMesh.getEdgesColor ( MR._InOpt_ViewportId id = default)
inline

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

◆ getEdgesColorsForAllViewports()

unsafe MR.Const_ViewportProperty_MRColor MR.Const_ObjectMesh.getEdgesColorsForAllViewports ( )
inline

◆ getEdgeWidth()

unsafe float MR.Const_ObjectMesh.getEdgeWidth ( )
inline

Generated from method MR.ObjectMesh.getEdgeWidth.

◆ getFacesColorMap()

unsafe MR.Const_FaceColors MR.Const_ObjectMesh.getFacesColorMap ( )
inline

Generated from method MR.ObjectMesh.getFacesColorMap.

◆ getFrontColor()

unsafe ref readonly MR.Color MR.Const_ObjectMesh.getFrontColor ( bool? selected = null,
MR._InOpt_ViewportId viewportId = default )
inline

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 {}.

◆ getFrontColorsForAllViewports()

unsafe MR.Const_ViewportProperty_MRColor MR.Const_ObjectMesh.getFrontColorsForAllViewports ( bool? selected = null)
inline

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.

◆ getGlobalAlpha()

unsafe byte MR.Const_ObjectMesh.getGlobalAlpha ( MR._InOpt_ViewportId viewportId = default)
inline

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

◆ getGlobalAlphaForAllViewports()

unsafe MR.Const_ViewportProperty_UnsignedChar MR.Const_ObjectMesh.getGlobalAlphaForAllViewports ( )
inline

returns global transparency alpha of object in all viewports Generated from method MR.ObjectMesh.getGlobalAlphaForAllViewports.

◆ getInfoLines()

unsafe MR.Std.Vector_StdString MR.Const_ObjectMesh.getInfoLines ( )
inline

Generated from method MR.ObjectMesh.getInfoLines.

◆ getModelHash()

unsafe ulong MR.Const_ObjectMesh.getModelHash ( )
inline

Generated from method MR.ObjectMesh.getModelHash.

◆ getPointsColor()

unsafe ref readonly MR.Color MR.Const_ObjectMesh.getPointsColor ( MR._InOpt_ViewportId id = default)
inline

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

◆ getPointsColorsForAllViewports()

unsafe MR.Const_ViewportProperty_MRColor MR.Const_ObjectMesh.getPointsColorsForAllViewports ( )
inline

◆ getPointSize()

unsafe float MR.Const_ObjectMesh.getPointSize ( )
inline

Generated from method MR.ObjectMesh.getPointSize.

◆ getRedrawFlag()

unsafe bool MR.Const_ObjectMesh.getRedrawFlag ( MR.Const_ViewportMask viewportMask)
inline

Generated from method MR.ObjectMesh.getRedrawFlag.

◆ getSelectedEdges()

unsafe MR.Const_UndirectedEdgeBitSet MR.Const_ObjectMesh.getSelectedEdges ( )
inline

Generated from method MR.ObjectMesh.getSelectedEdges.

◆ getSelectedEdgesColor()

unsafe ref readonly MR.Color MR.Const_ObjectMesh.getSelectedEdgesColor ( MR._InOpt_ViewportId id = default)
inline

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

◆ getSelectedEdgesColorsForAllViewports()

unsafe MR.Const_ViewportProperty_MRColor MR.Const_ObjectMesh.getSelectedEdgesColorsForAllViewports ( )
inline

◆ getSelectedFaces()

unsafe MR.Const_FaceBitSet MR.Const_ObjectMesh.getSelectedFaces ( )
inline

Generated from method MR.ObjectMesh.getSelectedFaces.

◆ getSelectedFacesColor()

unsafe ref readonly MR.Color MR.Const_ObjectMesh.getSelectedFacesColor ( MR._InOpt_ViewportId id = default)
inline

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

◆ getSelectedFacesColorsForAllViewports()

unsafe MR.Const_ViewportProperty_MRColor MR.Const_ObjectMesh.getSelectedFacesColorsForAllViewports ( )
inline

◆ getSharedPtr()

unsafe MR.Std.SharedPtr_MRObject MR.Const_ObjectMesh.getSharedPtr ( )
inline

Generated from method MR.ObjectMesh.getSharedPtr.

◆ getShininess()

unsafe float MR.Const_ObjectMesh.getShininess ( )
inline

returns the current shininess visual value Generated from method MR.ObjectMesh.getShininess.

◆ getSpecularStrength()

unsafe float MR.Const_ObjectMesh.getSpecularStrength ( )
inline

returns intensity of reflections Generated from method MR.ObjectMesh.getSpecularStrength.

◆ getTexture()

unsafe MR.Const_MeshTexture MR.Const_ObjectMesh.getTexture ( )
inline

returns first texture in the vector. If there is no textures, returns empty texture Generated from method MR.ObjectMesh.getTexture.

◆ getTexturePerFace()

unsafe MR.Const_TexturePerFace MR.Const_ObjectMesh.getTexturePerFace ( )
inline

Generated from method MR.ObjectMesh.getTexturePerFace.

◆ getTextures()

unsafe MR.Const_Vector_MRMeshTexture_MRTextureId MR.Const_ObjectMesh.getTextures ( )
inline

Generated from method MR.ObjectMesh.getTextures.

◆ getUVCoords()

unsafe MR.Const_VertCoords2 MR.Const_ObjectMesh.getUVCoords ( )
inline

Generated from method MR.ObjectMesh.getUVCoords.

◆ getVertsColorMap()

unsafe MR.Const_VertColors MR.Const_ObjectMesh.getVertsColorMap ( )
inline

returns per-vertex colors of the object Generated from method MR.ObjectMesh.getVertsColorMap.

◆ getVisualizeProperty()

unsafe bool MR.Const_ObjectMesh.getVisualizeProperty ( MR.Const_AnyVisualizeMaskEnum type,
MR.Const_ViewportMask viewportMask )
inline

returns true if the property is set at least in one viewport specified by the mask Generated from method MR.ObjectMesh.getVisualizeProperty.

◆ getVisualizePropertyMask()

unsafe MR.Const_ViewportMask MR.Const_ObjectMesh.getVisualizePropertyMask ( MR.Const_AnyVisualizeMaskEnum type)
inline

returns mask of viewports where given property is set Generated from method MR.ObjectMesh.getVisualizePropertyMask.

◆ getWorldBox()

unsafe MR.Box3f MR.Const_ObjectMesh.getWorldBox ( MR._InOpt_ViewportId _1 = default)
inline

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 {}.

◆ getWorldTreeBox()

unsafe MR.Box3f MR.Const_ObjectMesh.getWorldTreeBox ( MR._InOpt_ViewportId _1 = default)
inline

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 {}.

◆ globalClippedByPlane()

unsafe bool MR.Const_ObjectMesh.globalClippedByPlane ( MR.Const_ViewportMask? viewportMask = null)
inline

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

◆ globalClippedByPlaneMask()

unsafe MR.ViewportMask MR.Const_ObjectMesh.globalClippedByPlaneMask ( )
inline

returns all viewports where this object or any of its parents is clipped by plane Generated from method MR.ObjectMesh.globalClippedByPlaneMask.

◆ globalVisibility()

unsafe bool MR.Const_ObjectMesh.globalVisibility ( MR.Const_ViewportMask? viewportMask = null)
inline

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

◆ globalVisibilityMask()

unsafe MR.ViewportMask MR.Const_ObjectMesh.globalVisibilityMask ( )
inline

returns all viewports where this object is visible together with all its parents Generated from method MR.ObjectMesh.globalVisibilityMask.

◆ hasAncillaryTexture()

unsafe bool MR.Const_ObjectMesh.hasAncillaryTexture ( )
inline

Generated from method MR.ObjectMesh.hasAncillaryTexture.

◆ hasModel()

unsafe bool MR.Const_ObjectMesh.hasModel ( )
inline

Generated from method MR.ObjectMesh.hasModel.

◆ hasVisualRepresentation()

unsafe bool MR.Const_ObjectMesh.hasVisualRepresentation ( )
inline

mesh object can be seen if the mesh has at least one edge Generated from method MR.ObjectMesh.hasVisualRepresentation.

◆ heapBytes()

unsafe ulong MR.Const_ObjectMesh.heapBytes ( )
inline

returns the amount of memory this object occupies on heap Generated from method MR.ObjectMesh.heapBytes.

◆ isAncestor()

unsafe bool MR.Const_ObjectMesh.isAncestor ( MR.Const_Object? ancestor)
inline

return true if given object is ancestor of this one, false otherwise Generated from method MR.ObjectMesh.isAncestor.

◆ isAncillary()

unsafe bool MR.Const_ObjectMesh.isAncillary ( )
inline

Generated from method MR.ObjectMesh.isAncillary.

◆ isGlobalAncillary()

unsafe bool MR.Const_ObjectMesh.isGlobalAncillary ( )
inline

returns true if the object or any of its ancestors are ancillary Generated from method MR.ObjectMesh.isGlobalAncillary.

◆ isLocked()

unsafe bool MR.Const_ObjectMesh.isLocked ( )
inline

object properties lock for UI Generated from method MR.ObjectMesh.isLocked.

◆ isMeshClosed()

unsafe bool MR.Const_ObjectMesh.isMeshClosed ( )
inline

returns cached information whether the mesh is closed Generated from method MR.ObjectMesh.isMeshClosed.

◆ isParentLocked()

unsafe bool MR.Const_ObjectMesh.isParentLocked ( )
inline

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.

◆ isPickable()

unsafe bool MR.Const_ObjectMesh.isPickable ( MR.Const_ViewportMask? viewportMask = null)
inline

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

◆ isSelected()

unsafe bool MR.Const_ObjectMesh.isSelected ( )
inline

Generated from method MR.ObjectMesh.isSelected.

◆ isVisible()

unsafe bool MR.Const_ObjectMesh.isVisible ( MR.Const_ViewportMask? viewportMask = null)
inline

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

◆ mesh()

unsafe MR.Std.Const_SharedPtr_ConstMRMesh MR.Const_ObjectMesh.mesh ( )
inline

Generated from method MR.ObjectMesh.mesh.

◆ meshPart()

unsafe MR.MeshPart MR.Const_ObjectMesh.meshPart ( )
inline
Returns
the pair ( mesh, selected triangles ) if any triangle is selected or whole mesh otherwise Generated from method MR.ObjectMesh.meshPart.

◆ name()

unsafe MR.Std.Const_String MR.Const_ObjectMesh.name ( )
inline

Generated from method MR.ObjectMesh.name.

◆ numComponents()

unsafe ulong MR.Const_ObjectMesh.numComponents ( )
inline

returns cached information about the number of components in the mesh Generated from method MR.ObjectMesh.numComponents.

◆ numCreaseEdges()

unsafe ulong MR.Const_ObjectMesh.numCreaseEdges ( )
inline

returns cached information about the number of crease undirected edges in the mesh Generated from method MR.ObjectMesh.numCreaseEdges.

◆ numHandles()

unsafe ulong MR.Const_ObjectMesh.numHandles ( )
inline

returns cached information about the number of handles in the mesh Generated from method MR.ObjectMesh.numHandles.

◆ numHoles()

unsafe ulong MR.Const_ObjectMesh.numHoles ( )
inline

returns cached information about the number of holes in the mesh Generated from method MR.ObjectMesh.numHoles.

◆ numSelectedEdges()

unsafe ulong MR.Const_ObjectMesh.numSelectedEdges ( )
inline

returns cached information about the number of selected undirected edges in the mesh Generated from method MR.ObjectMesh.numSelectedEdges.

◆ numSelectedFaces()

unsafe ulong MR.Const_ObjectMesh.numSelectedFaces ( )
inline

returns cached information about the number of selected faces in the mesh Generated from method MR.ObjectMesh.numSelectedFaces.

◆ numUndirectedEdges()

unsafe ulong MR.Const_ObjectMesh.numUndirectedEdges ( )
inline

returns cached information about the number of undirected edges in the mesh Generated from method MR.ObjectMesh.numUndirectedEdges.

◆ operator Const_ObjectMesh?() [1/3]

unsafe MR.Const_ObjectMesh.operator Const_ObjectMesh? ( MR.Const_Object parent)
inlineexplicitstatic

◆ operator Const_ObjectMesh?() [2/3]

unsafe MR.Const_ObjectMesh.operator Const_ObjectMesh? ( MR.Const_ObjectMeshHolder parent)
inlineexplicitstatic

◆ operator Const_ObjectMesh?() [3/3]

unsafe MR.Const_ObjectMesh.operator Const_ObjectMesh? ( MR.Const_VisualObject parent)
inlineexplicitstatic

◆ operator MR.Const_Object()

unsafe implicit MR.Const_ObjectMesh.operator MR.Const_Object ( Const_ObjectMesh self)
inlinestatic

◆ operator MR.Const_ObjectChildrenHolder()

unsafe implicit MR.Const_ObjectMesh.operator MR.Const_ObjectChildrenHolder ( Const_ObjectMesh self)
inlinestatic

◆ operator MR.Const_ObjectMeshHolder()

unsafe implicit MR.Const_ObjectMesh.operator MR.Const_ObjectMeshHolder ( Const_ObjectMesh self)
inlinestatic

◆ operator MR.Const_VisualObject()

unsafe implicit MR.Const_ObjectMesh.operator MR.Const_VisualObject ( Const_ObjectMesh self)
inlinestatic

◆ render()

unsafe bool MR.Const_ObjectMesh.render ( MR.Const_ModelRenderParams _1)
inline

draws this object for visualization Returns true if something was drawn. Generated from method MR.ObjectMesh.render.

◆ renderForPicker()

unsafe void MR.Const_ObjectMesh.renderForPicker ( MR.Const_ModelBaseRenderParams _1,
uint _2 )
inline

draws this object for picking Generated from method MR.ObjectMesh.renderForPicker.

◆ renderUi()

unsafe void MR.Const_ObjectMesh.renderUi ( MR.Const_UiRenderParams params_)
inline

draws this object for 2d UI Generated from method MR.ObjectMesh.renderUi.

◆ resetDirty()

unsafe void MR.Const_ObjectMesh.resetDirty ( )
inline

resets all dirty flags (except for cache flags that will be reset automatically on cache update) Generated from method MR.ObjectMesh.resetDirty.

◆ resetDirtyExceptMask()

unsafe void MR.Const_ObjectMesh.resetDirtyExceptMask ( uint mask)
inline

reset dirty flags without some specific bits (useful for lazy normals update) Generated from method MR.ObjectMesh.resetDirtyExceptMask.

◆ resetRedrawFlag()

unsafe void MR.Const_ObjectMesh.resetRedrawFlag ( )
inline

Generated from method MR.ObjectMesh.resetRedrawFlag.

◆ sameModels()

unsafe bool MR.Const_ObjectMesh.sameModels ( MR.Const_Object other)
inline

Generated from method MR.ObjectMesh.sameModels.

◆ selectedArea()

unsafe double MR.Const_ObjectMesh.selectedArea ( )
inline

returns cached area of selected triangles Generated from method MR.ObjectMesh.selectedArea.

◆ serializeFormat()

unsafe? byte MR.Const_ObjectMesh.serializeFormat ( )
inline

returns overriden file extension used to serialize mesh inside this object, nullptr means defaultSerializeMeshFormat() Generated from method MR.ObjectMesh.serializeFormat.

◆ shallowClone()

unsafe MR.Std.SharedPtr_MRObject MR.Const_ObjectMesh.shallowClone ( )
inline

Generated from method MR.ObjectMesh.shallowClone.

◆ shallowCloneTree()

unsafe MR.Std.SharedPtr_MRObject MR.Const_ObjectMesh.shallowCloneTree ( )
inline

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.

◆ staticClassName()

unsafe? byte MR.Const_ObjectMesh.staticClassName ( )
inlinestatic

Generated from method MR::ObjectMesh::StaticClassName.

◆ staticClassNameInPlural()

unsafe? byte MR.Const_ObjectMesh.staticClassNameInPlural ( )
inlinestatic

Generated from method MR::ObjectMesh::StaticClassNameInPlural.

◆ staticTypeName()

unsafe? byte MR.Const_ObjectMesh.staticTypeName ( )
inlinestatic

Generated from method MR::ObjectMesh::StaticTypeName.

◆ supportsVisualizeProperty()

unsafe bool MR.Const_ObjectMesh.supportsVisualizeProperty ( MR.Const_AnyVisualizeMaskEnum type)
inline

◆ tags()

unsafe MR.Std.Const_Set_StdString MR.Const_ObjectMesh.tags ( )
inline

provides read-only access to the tag storage the storage is a set of unique strings Generated from method MR.ObjectMesh.tags.

◆ totalArea()

unsafe double MR.Const_ObjectMesh.totalArea ( )
inline

returns cached summed area of mesh triangles Generated from method MR.ObjectMesh.totalArea.

◆ typeName()

unsafe? byte MR.Const_ObjectMesh.typeName ( )
inline

Generated from method MR.ObjectMesh.typeName.

◆ useDefaultScenePropertiesOnDeserialization()

unsafe bool MR.Const_ObjectMesh.useDefaultScenePropertiesOnDeserialization ( )
inline

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.

◆ visibilityMask()

unsafe MR.ViewportMask MR.Const_ObjectMesh.visibilityMask ( )
inline

gets object visibility as bitmask of viewports Generated from method MR.ObjectMesh.visibilityMask.

◆ volume()

unsafe double MR.Const_ObjectMesh.volume ( )
inline

returns cached volume of space surrounded by the mesh, which is valid only if mesh is closed Generated from method MR.ObjectMesh.volume.

◆ worldRayIntersection()

unsafe MR.MeshIntersectionResult MR.Const_ObjectMesh.worldRayIntersection ( MR.Const_Line3f worldRay,
MR.Const_FaceBitSet? region = null )
inline

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.

◆ worldXf()

unsafe MR.AffineXf3f MR.Const_ObjectMesh.worldXf ( MR._InOpt_ViewportId id = default,
MR.Misc.InOut< bool >? isDef = null )
inline

this space to world space transformation for default or specific viewport

Parameters
isDefreceives true if the object has default transformation in this viewport (same as worldXf() returns) Generated from method MR.ObjectMesh.worldXf. Parameter id defaults to {}.

◆ xf()

unsafe ref readonly MR.AffineXf3f MR.Const_ObjectMesh.xf ( MR._InOpt_ViewportId id = default,
MR.Misc.InOut< bool >? isDef = null )
inline

this space to parent space transformation (to world space if no parent) for default or given viewport

Parameters
isDefreceives true if the object has default transformation in this viewport (same as xf() returns) Generated from method MR.ObjectMesh.xf. Parameter id defaults to {}.

◆ xfsForAllViewports()

unsafe MR.Const_ViewportProperty_MRAffineXf3f MR.Const_ObjectMesh.xfsForAllViewports ( )
inline

returns xfs for all viewports, combined into a single object Generated from method MR.ObjectMesh.xfsForAllViewports.


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