MeshLib Java Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib.ObjectMesh:

Public Member Functions

 ObjectMesh (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 ObjectMesh ()
 ObjectMesh (meshlib.ObjectMesh _other)
meshlib.ObjectMesh assignFromAnother (meshlib.ObjectMesh _other)
java.lang.Byte typeName ()
meshlib.std_string className ()
meshlib.std_string classNameInPlural ()
meshlib.std_shared_ptr_MR_Mesh varMesh ()
void setMesh (meshlib.std_shared_ptr_MR_Mesh mesh)
meshlib.std_shared_ptr_MR_Mesh updateMesh (meshlib.std_shared_ptr_MR_Mesh mesh)
meshlib.std_vector_std_string getInfoLines ()
meshlib.std_shared_ptr_MR_Object clone_2 ()
meshlib.std_shared_ptr_MR_Object shallowClone ()
meshlib.MeshIntersectionResult worldRayIntersection (meshlib.Line3f worldRay, meshlib.FaceBitSet region)
void applyScale (float scaleFactor)
boolean hasVisualRepresentation ()
boolean hasModel ()
meshlib.Mesh varMeshPtr ()
meshlib.Mesh meshPtr ()
meshlib.std_shared_ptr_const_MR_Mesh mesh ()
meshlib.MeshPart meshPart ()
void setDirtyFlags (int mask, java.lang.Boolean invalidateCaches)
void setDirtyFlagsFast (int mask)
void invalidateMetricsCache (int mask)
meshlib.FaceBitSet getSelectedFaces ()
void selectFaces (meshlib.FaceBitSet newSelection)
meshlib.Color getSelectedFacesColor (meshlib.ViewportId id)
void setSelectedFacesColor (meshlib.Color color, meshlib.ViewportId id)
meshlib.UndirectedEdgeBitSet getSelectedEdges ()
void selectEdges (meshlib.UndirectedEdgeBitSet newSelection)
meshlib.Color getSelectedEdgesColor (meshlib.ViewportId id)
void setSelectedEdgesColor (meshlib.Color color, meshlib.ViewportId id)
meshlib.ViewportProperty_MR_Color getSelectedEdgesColorsForAllViewports ()
void setSelectedEdgesColorsForAllViewports (meshlib.ViewportProperty_MR_Color val)
meshlib.ViewportProperty_MR_Color getSelectedFacesColorsForAllViewports ()
void setSelectedFacesColorsForAllViewports (meshlib.ViewportProperty_MR_Color val)
meshlib.ViewportProperty_MR_Color getEdgesColorsForAllViewports ()
void setEdgesColorsForAllViewports (meshlib.ViewportProperty_MR_Color val)
meshlib.ViewportProperty_MR_Color getPointsColorsForAllViewports ()
void setPointsColorsForAllViewports (meshlib.ViewportProperty_MR_Color val)
meshlib.ViewportProperty_MR_Color getBordersColorsForAllViewports ()
void setBordersColorsForAllViewports (meshlib.ViewportProperty_MR_Color val)
void copyAllSolidColors (meshlib.ObjectMeshHolder other)
meshlib.UndirectedEdgeBitSet creases ()
void setCreases (meshlib.UndirectedEdgeBitSet creases)
void setFlatShading (boolean on)
boolean flatShading ()
boolean supportsVisualizeProperty (meshlib.AnyVisualizeMaskEnum type)
meshlib.std_vector_MR_ViewportMask getAllVisualizeProperties ()
meshlib.ViewportMask getVisualizePropertyMask (meshlib.AnyVisualizeMaskEnum type)
meshlib.ObjectMeshData data ()
void setData (meshlib.ObjectMeshData data)
void updateData (meshlib.ObjectMeshData data)
meshlib.VertColors getVertsColorMap ()
void setVertsColorMap (meshlib.VertColors vertsColorMap)
void updateVertsColorMap (meshlib.VertColors vertsColorMap)
meshlib.FaceColors getFacesColorMap ()
void setFacesColorMap (meshlib.FaceColors facesColorMap)
void updateFacesColorMap (meshlib.FaceColors updated)
void setEdgeWidth (float edgeWidth)
float getEdgeWidth ()
void setPointSize (float size)
float getPointSize ()
meshlib.Color getEdgesColor (meshlib.ViewportId id)
void setEdgesColor (meshlib.Color color, meshlib.ViewportId id)
meshlib.Color getPointsColor (meshlib.ViewportId id)
void setPointsColor (meshlib.Color color, meshlib.ViewportId id)
meshlib.Color getBordersColor (meshlib.ViewportId id)
void setBordersColor (meshlib.Color color, meshlib.ViewportId id)
meshlib.MeshTexture getTexture ()
meshlib.Vector_MR_MeshTexture_MR_TextureId getTextures ()
void setTextures (meshlib.Vector_MR_MeshTexture_MR_TextureId texture)
void updateTextures (meshlib.Vector_MR_MeshTexture_MR_TextureId updated)
void setTexturePerFace (meshlib.TexturePerFace texturePerFace)
void updateTexturePerFace (meshlib.TexturePerFace texturePerFace)
void addTexture (meshlib.MeshTexture texture)
meshlib.TexturePerFace getTexturePerFace ()
meshlib.VertCoords2 getUVCoords ()
void setUVCoords (meshlib.VertCoords2 uvCoordinates)
void updateUVCoords (meshlib.VertCoords2 updated)
void copyTextureAndColors (meshlib.ObjectMeshHolder src, meshlib.VertMap thisToSrc, meshlib.FaceMap thisToSrcFaces)
void copyColors (meshlib.ObjectMeshHolder src, meshlib.VertMap thisToSrc, meshlib.FaceMap thisToSrcFaces)
meshlib.MeshTexture getAncillaryTexture ()
void setAncillaryTexture (meshlib.MeshTexture texture)
meshlib.VertCoords2 getAncillaryUVCoords ()
void setAncillaryUVCoords (meshlib.VertCoords2 uvCoordinates)
void updateAncillaryUVCoords (meshlib.VertCoords2 updated)
boolean hasAncillaryTexture ()
void clearAncillaryTexture ()
boolean getRedrawFlag (meshlib.ViewportMask viewportMask)
boolean isMeshClosed ()
meshlib.Box3f getWorldBox (meshlib.ViewportId _1)
long numSelectedFaces ()
long numSelectedEdges ()
long numCreaseEdges ()
double totalArea ()
double selectedArea ()
double volume ()
float avgEdgeLen ()
long numUndirectedEdges ()
long numHoles ()
long numComponents ()
long numHandles ()
long heapBytes ()
java.lang.Byte serializeFormat ()
java.lang.Byte actualSerializeFormat ()
void setSerializeFormat (java.lang.Byte newFormat)
void resetFrontColor ()
void resetColors ()
long getModelHash ()
boolean sameModels (meshlib.Object other)
void setVisualizeProperty (boolean value, meshlib.AnyVisualizeMaskEnum type, meshlib.ViewportMask viewportMask)
void setVisualizePropertyMask (meshlib.AnyVisualizeMaskEnum type, meshlib.ViewportMask viewportMask)
boolean getVisualizeProperty (meshlib.AnyVisualizeMaskEnum type, meshlib.ViewportMask viewportMask)
void toggleVisualizeProperty (meshlib.AnyVisualizeMaskEnum type, meshlib.ViewportMask viewportMask)
void setAllVisualizeProperties (meshlib.std_vector_MR_ViewportMask properties)
meshlib.ViewportMask globalClippedByPlaneMask ()
boolean globalClippedByPlane (meshlib.ViewportMask viewportMask)
void setGlobalClippedByPlane (boolean on, meshlib.ViewportMask viewportMask)
meshlib.Color getFrontColor (java.lang.Boolean selected, meshlib.ViewportId viewportId)
void setFrontColor (meshlib.Color color, boolean selected, meshlib.ViewportId viewportId)
meshlib.ViewportProperty_MR_Color getFrontColorsForAllViewports (java.lang.Boolean selected)
void setFrontColorsForAllViewports (meshlib.ViewportProperty_MR_Color val, java.lang.Boolean selected)
meshlib.ViewportProperty_MR_Color getBackColorsForAllViewports ()
void setBackColorsForAllViewports (meshlib.ViewportProperty_MR_Color val)
meshlib.Color getBackColor (meshlib.ViewportId viewportId)
void setBackColor (meshlib.Color color, meshlib.ViewportId viewportId)
byte getGlobalAlpha (meshlib.ViewportId viewportId)
void setGlobalAlpha (byte alpha, meshlib.ViewportId viewportId)
meshlib.ViewportProperty_unsigned_char getGlobalAlphaForAllViewports ()
void setGlobalAlphaForAllViewports (meshlib.ViewportProperty_unsigned_char val)
int getDirtyFlags ()
void resetDirty ()
void resetDirtyExceptMask (int mask)
meshlib.Box3f getBoundingBox ()
boolean isPickable (meshlib.ViewportMask viewportMask)
void setPickable (boolean on, meshlib.ViewportMask viewportMask)
meshlib.ColoringType getColoringType ()
void setColoringType (meshlib.ColoringType coloringType)
float getShininess ()
void setShininess (float shininess)
float getSpecularStrength ()
void setSpecularStrength (float specularStrength)
float getAmbientStrength ()
void setAmbientStrength (float ambientStrength)
boolean render (meshlib.ModelRenderParams _1)
void renderForPicker (meshlib.ModelBaseRenderParams _1, int _2)
void renderUi (meshlib.UiRenderParams params)
boolean useDefaultScenePropertiesOnDeserialization ()
void setUseDefaultScenePropertiesOnDeserialization (boolean useDefaultScenePropertiesOnDeserialization)
meshlib.std_string name ()
void setName (java.lang.String name)
meshlib.AffineXf3f xf (meshlib.ViewportId id, meshlib.bool_output isDef)
void setXf (meshlib.AffineXf3f xf, meshlib.ViewportId id)
void resetXf (meshlib.ViewportId id)
meshlib.ViewportProperty_MR_AffineXf3f xfsForAllViewports ()
void setXfsForAllViewports (meshlib.ViewportProperty_MR_AffineXf3f xf)
meshlib.AffineXf3f worldXf (meshlib.ViewportId id, meshlib.bool_output isDef)
void setWorldXf (meshlib.AffineXf3f xf, meshlib.ViewportId id)
meshlib.ViewportMask globalVisibilityMask ()
boolean globalVisibility (meshlib.ViewportMask viewportMask)
void setGlobalVisibility (boolean on, meshlib.ViewportMask viewportMask)
boolean isLocked ()
void setLocked (boolean on)
boolean isParentLocked ()
void setParentLocked (boolean lock)
boolean isAncestor (meshlib.Object ancestor)
boolean detachFromParent ()
meshlib.ConstChildren constChildren ()
boolean addChild (meshlib.std_shared_ptr_MR_Object child, java.lang.Boolean recognizedChild)
boolean addChildBefore (meshlib.std_shared_ptr_MR_Object newChild, meshlib.std_shared_ptr_MR_Object existingChild)
void removeAllChildren ()
void sortChildren ()
boolean select (boolean on)
boolean isSelected ()
void setAncillary (boolean ancillary)
boolean isAncillary ()
boolean isGlobalAncillary ()
void setVisible (boolean on, meshlib.ViewportMask viewportMask)
boolean isVisible (meshlib.ViewportMask viewportMask)
void setVisibilityMask (meshlib.ViewportMask viewportMask)
meshlib.ViewportMask visibilityMask ()
void resetRedrawFlag ()
meshlib.std_shared_ptr_MR_Object cloneTree ()
meshlib.std_shared_ptr_MR_Object shallowCloneTree ()
void swap (meshlib.Object other)
meshlib.Box3f getWorldTreeBox (meshlib.ViewportId _1)
meshlib.std_set_std_string tags ()
boolean addTag (java.lang.String tag)
boolean removeTag (java.lang.String tag)
meshlib.std_shared_ptr_MR_Object getSharedPtr ()
meshlib.ObjectChildrenHolder upcastToObjectChildrenHolder ()
meshlib.Object upcastToObject ()
meshlib.VisualObject upcastToVisualObject ()
meshlib.ObjectMeshHolder upcastToObjectMeshHolder ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Static Public Member Functions

static java.lang.Byte StaticTypeName ()
static java.lang.Byte StaticClassName ()
static java.lang.Byte StaticClassNameInPlural ()
static meshlib.ObjectMesh staticDowncastFromObjectChildrenHolder (meshlib.ObjectChildrenHolder object)
static meshlib.ObjectMesh staticDowncastFromObject (meshlib.Object object)
static meshlib.ObjectMesh dynamicDowncastFromObject (meshlib.Object object)
static meshlib.ObjectMesh staticDowncastFromVisualObject (meshlib.VisualObject object)
static meshlib.ObjectMesh dynamicDowncastFromVisualObject (meshlib.VisualObject object)
static meshlib.ObjectMesh staticDowncastFromObjectMeshHolder (meshlib.ObjectMeshHolder object)
static meshlib.ObjectMesh dynamicDowncastFromObjectMeshHolder (meshlib.ObjectMeshHolder object)

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

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

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ ObjectMesh() [1/3]

meshlib.ObjectMesh.ObjectMesh ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ ObjectMesh() [2/3]

meshlib.ObjectMesh.ObjectMesh ( )

Constructs an empty (default-constructed) instance.

Calls MR_ObjectMesh_DefaultConstruct().

◆ ObjectMesh() [3/3]

meshlib.ObjectMesh.ObjectMesh ( meshlib.ObjectMesh _other)

Generated from constructor MR::ObjectMesh::ObjectMesh. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_ObjectMesh_ConstructFromAnother().

Member Function Documentation

◆ actualSerializeFormat()

java.lang.Byte meshlib.ObjectMesh.actualSerializeFormat ( )

returns overriden file extension used to serialize mesh inside this object if set, or SceneSettings::get( SceneSettings::StringType::MeshSerializeFormat ) otherwise; never returns nullptr Generated from method MR::ObjectMesh::actualSerializeFormat.

Calls MR_ObjectMesh_actualSerializeFormat().

◆ addChild()

boolean meshlib.ObjectMesh.addChild ( meshlib.std_shared_ptr_MR_Object child,
java.lang.Boolean recognizedChild )

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.

Calls MR_ObjectMesh_addChild().

◆ addChildBefore()

boolean meshlib.ObjectMesh.addChildBefore ( meshlib.std_shared_ptr_MR_Object newChild,
meshlib.std_shared_ptr_MR_Object existingChild )

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

Calls MR_ObjectMesh_addChildBefore().

◆ addTag()

boolean meshlib.ObjectMesh.addTag ( java.lang.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.

Calls MR_ObjectMesh_addTag().

◆ addTexture()

void meshlib.ObjectMesh.addTexture ( meshlib.MeshTexture texture)

Generated from method MR::ObjectMesh::addTexture.

Calls MR_ObjectMesh_addTexture().

◆ applyScale()

void meshlib.ObjectMesh.applyScale ( float scaleFactor)

Generated from method MR::ObjectMesh::applyScale.

Calls MR_ObjectMesh_applyScale().

◆ assignFromAnother()

meshlib.ObjectMesh meshlib.ObjectMesh.assignFromAnother ( meshlib.ObjectMesh _other)

Generated from method MR::ObjectMesh::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The reference to this object might be preserved in the return value.

Calls MR_ObjectMesh_AssignFromAnother().

◆ avgEdgeLen()

float meshlib.ObjectMesh.avgEdgeLen ( )

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

Calls MR_ObjectMesh_avgEdgeLen().

◆ className()

meshlib.std_string meshlib.ObjectMesh.className ( )

Generated from method MR::ObjectMesh::className.

Calls MR_ObjectMesh_className().

◆ classNameInPlural()

meshlib.std_string meshlib.ObjectMesh.classNameInPlural ( )

Generated from method MR::ObjectMesh::classNameInPlural.

Calls MR_ObjectMesh_classNameInPlural().

◆ clearAncillaryTexture()

void meshlib.ObjectMesh.clearAncillaryTexture ( )

Generated from method MR::ObjectMesh::clearAncillaryTexture.

Calls MR_ObjectMesh_clearAncillaryTexture().

◆ clone_2()

meshlib.std_shared_ptr_MR_Object meshlib.ObjectMesh.clone_2 ( )

Generated from method MR::ObjectMesh::clone.

Calls MR_ObjectMesh_clone().

◆ cloneTree()

meshlib.std_shared_ptr_MR_Object meshlib.ObjectMesh.cloneTree ( )

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

Calls MR_ObjectMesh_cloneTree().

◆ constChildren()

meshlib.ConstChildren meshlib.ObjectMesh.constChildren ( )

the same sub-objects without the ability to modify them; the returned view is invalidated by anything that changes the children of this object Generated from method MR::ObjectMesh::constChildren.

Calls MR_ObjectMesh_constChildren().

◆ copyAllSolidColors()

void meshlib.ObjectMesh.copyAllSolidColors ( meshlib.ObjectMeshHolder other)

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

Calls MR_ObjectMesh_copyAllSolidColors().

◆ copyColors()

void meshlib.ObjectMesh.copyColors ( meshlib.ObjectMeshHolder src,
meshlib.VertMap thisToSrc,
meshlib.FaceMap thisToSrcFaces )

copies vertex colors from given source object

Parameters
srcusing given map
thisToSrcGenerated from method MR::ObjectMesh::copyColors.

Calls MR_ObjectMesh_copyColors().

◆ copyTextureAndColors()

void meshlib.ObjectMesh.copyTextureAndColors ( meshlib.ObjectMeshHolder src,
meshlib.VertMap thisToSrc,
meshlib.FaceMap thisToSrcFaces )

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

Parameters
srcusing given map
thisToSrcGenerated from method MR::ObjectMesh::copyTextureAndColors.

Calls MR_ObjectMesh_copyTextureAndColors().

◆ creases()

meshlib.UndirectedEdgeBitSet meshlib.ObjectMesh.creases ( )

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

Calls MR_ObjectMesh_creases().

◆ data()

meshlib.ObjectMeshData meshlib.ObjectMesh.data ( )

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

Calls MR_ObjectMesh_data().

◆ detachFromParent()

boolean meshlib.ObjectMesh.detachFromParent ( )

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

Calls MR_ObjectMesh_detachFromParent().

◆ dynamicDowncastFromObject()

meshlib.ObjectMesh meshlib.ObjectMesh.dynamicDowncastFromObject ( meshlib.Object object)
static

Dynamic downcast from the base class MR::Object. Returns null if the object isn't actually a ObjectMesh. The result refers to object.

Calls MR_ObjectMesh_MutableDynamicDowncastFrom_MR_Object().

◆ dynamicDowncastFromObjectMeshHolder()

meshlib.ObjectMesh meshlib.ObjectMesh.dynamicDowncastFromObjectMeshHolder ( meshlib.ObjectMeshHolder object)
static

Dynamic downcast from the base class MR::ObjectMeshHolder. Returns null if the object isn't actually a ObjectMesh. The result refers to object.

Calls MR_ObjectMesh_MutableDynamicDowncastFrom_MR_ObjectMeshHolder().

◆ dynamicDowncastFromVisualObject()

meshlib.ObjectMesh meshlib.ObjectMesh.dynamicDowncastFromVisualObject ( meshlib.VisualObject object)
static

Dynamic downcast from the base class MR::VisualObject. Returns null if the object isn't actually a ObjectMesh. The result refers to object.

Calls MR_ObjectMesh_MutableDynamicDowncastFrom_MR_VisualObject().

◆ flatShading()

boolean meshlib.ObjectMesh.flatShading ( )

Generated from method MR::ObjectMesh::flatShading.

Calls MR_ObjectMesh_flatShading().

◆ getAllVisualizeProperties()

meshlib.std_vector_MR_ViewportMask meshlib.ObjectMesh.getAllVisualizeProperties ( )

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

Calls MR_ObjectMesh_getAllVisualizeProperties().

◆ getAmbientStrength()

float meshlib.ObjectMesh.getAmbientStrength ( )

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

Calls MR_ObjectMesh_getAmbientStrength().

◆ getAncillaryTexture()

meshlib.MeshTexture meshlib.ObjectMesh.getAncillaryTexture ( )

ancillary texture can be used to have custom features visualization without affecting real one Generated from method MR::ObjectMesh::getAncillaryTexture.

Calls MR_ObjectMesh_getAncillaryTexture().

◆ getAncillaryUVCoords()

meshlib.VertCoords2 meshlib.ObjectMesh.getAncillaryUVCoords ( )

Generated from method MR::ObjectMesh::getAncillaryUVCoords.

Calls MR_ObjectMesh_getAncillaryUVCoords().

◆ getBackColor()

meshlib.Color meshlib.ObjectMesh.getBackColor ( meshlib.ViewportId viewportId)

returns backward color of object in given viewport Generated from method MR::ObjectMesh::getBackColor.

Calls MR_ObjectMesh_getBackColor().

◆ getBackColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.ObjectMesh.getBackColorsForAllViewports ( )

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

Calls MR_ObjectMesh_getBackColorsForAllViewports().

◆ getBordersColor()

meshlib.Color meshlib.ObjectMesh.getBordersColor ( meshlib.ViewportId id)

Generated from method MR::ObjectMesh::getBordersColor.

Calls MR_ObjectMesh_getBordersColor().

◆ getBordersColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.ObjectMesh.getBordersColorsForAllViewports ( )

Generated from method MR::ObjectMesh::getBordersColorsForAllViewports.

Calls MR_ObjectMesh_getBordersColorsForAllViewports().

◆ getBoundingBox()

meshlib.Box3f meshlib.ObjectMesh.getBoundingBox ( )

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

Calls MR_ObjectMesh_getBoundingBox().

◆ getColoringType()

meshlib.ColoringType meshlib.ObjectMesh.getColoringType ( )

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

Calls MR_ObjectMesh_getColoringType().

◆ getDirtyFlags()

int meshlib.ObjectMesh.getDirtyFlags ( )

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

Calls MR_ObjectMesh_getDirtyFlags().

◆ getEdgesColor()

meshlib.Color meshlib.ObjectMesh.getEdgesColor ( meshlib.ViewportId id)

Generated from method MR::ObjectMesh::getEdgesColor.

Calls MR_ObjectMesh_getEdgesColor().

◆ getEdgesColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.ObjectMesh.getEdgesColorsForAllViewports ( )

Generated from method MR::ObjectMesh::getEdgesColorsForAllViewports.

Calls MR_ObjectMesh_getEdgesColorsForAllViewports().

◆ getEdgeWidth()

float meshlib.ObjectMesh.getEdgeWidth ( )

Generated from method MR::ObjectMesh::getEdgeWidth.

Calls MR_ObjectMesh_getEdgeWidth().

◆ getFacesColorMap()

meshlib.FaceColors meshlib.ObjectMesh.getFacesColorMap ( )

Generated from method MR::ObjectMesh::getFacesColorMap.

Calls MR_ObjectMesh_getFacesColorMap().

◆ getFrontColor()

meshlib.Color meshlib.ObjectMesh.getFrontColor ( java.lang.Boolean selected,
meshlib.ViewportId viewportId )

returns color of object when it is selected/not-selected (depending on argument) in given viewport Generated from method MR::ObjectMesh::getFrontColor.

Calls MR_ObjectMesh_getFrontColor().

◆ getFrontColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.ObjectMesh.getFrontColorsForAllViewports ( java.lang.Boolean selected)

returns color of object when it is selected/not-selected (depending on argument) in all viewports Generated from method MR::ObjectMesh::getFrontColorsForAllViewports.

Calls MR_ObjectMesh_getFrontColorsForAllViewports().

◆ getGlobalAlpha()

byte meshlib.ObjectMesh.getGlobalAlpha ( meshlib.ViewportId viewportId)

returns global transparency alpha of object in given viewport Generated from method MR::ObjectMesh::getGlobalAlpha.

Calls MR_ObjectMesh_getGlobalAlpha().

◆ getGlobalAlphaForAllViewports()

meshlib.ViewportProperty_unsigned_char meshlib.ObjectMesh.getGlobalAlphaForAllViewports ( )

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

Calls MR_ObjectMesh_getGlobalAlphaForAllViewports().

◆ getInfoLines()

meshlib.std_vector_std_string meshlib.ObjectMesh.getInfoLines ( )

Generated from method MR::ObjectMesh::getInfoLines.

Calls MR_ObjectMesh_getInfoLines().

◆ getModelHash()

long meshlib.ObjectMesh.getModelHash ( )

Generated from method MR::ObjectMesh::getModelHash.

Calls MR_ObjectMesh_getModelHash().

◆ getPointsColor()

meshlib.Color meshlib.ObjectMesh.getPointsColor ( meshlib.ViewportId id)

Generated from method MR::ObjectMesh::getPointsColor.

Calls MR_ObjectMesh_getPointsColor().

◆ getPointsColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.ObjectMesh.getPointsColorsForAllViewports ( )

Generated from method MR::ObjectMesh::getPointsColorsForAllViewports.

Calls MR_ObjectMesh_getPointsColorsForAllViewports().

◆ getPointSize()

float meshlib.ObjectMesh.getPointSize ( )

Generated from method MR::ObjectMesh::getPointSize.

Calls MR_ObjectMesh_getPointSize().

◆ getRedrawFlag()

boolean meshlib.ObjectMesh.getRedrawFlag ( meshlib.ViewportMask viewportMask)

Generated from method MR::ObjectMesh::getRedrawFlag.

Calls MR_ObjectMesh_getRedrawFlag().

◆ getSelectedEdges()

meshlib.UndirectedEdgeBitSet meshlib.ObjectMesh.getSelectedEdges ( )

Generated from method MR::ObjectMesh::getSelectedEdges.

Calls MR_ObjectMesh_getSelectedEdges().

◆ getSelectedEdgesColor()

meshlib.Color meshlib.ObjectMesh.getSelectedEdgesColor ( meshlib.ViewportId id)

returns colors of selected edges Generated from method MR::ObjectMesh::getSelectedEdgesColor.

Calls MR_ObjectMesh_getSelectedEdgesColor().

◆ getSelectedEdgesColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.ObjectMesh.getSelectedEdgesColorsForAllViewports ( )

Generated from method MR::ObjectMesh::getSelectedEdgesColorsForAllViewports.

Calls MR_ObjectMesh_getSelectedEdgesColorsForAllViewports().

◆ getSelectedFaces()

meshlib.FaceBitSet meshlib.ObjectMesh.getSelectedFaces ( )

Generated from method MR::ObjectMesh::getSelectedFaces.

Calls MR_ObjectMesh_getSelectedFaces().

◆ getSelectedFacesColor()

meshlib.Color meshlib.ObjectMesh.getSelectedFacesColor ( meshlib.ViewportId id)

returns colors of selected triangles Generated from method MR::ObjectMesh::getSelectedFacesColor.

Calls MR_ObjectMesh_getSelectedFacesColor().

◆ getSelectedFacesColorsForAllViewports()

meshlib.ViewportProperty_MR_Color meshlib.ObjectMesh.getSelectedFacesColorsForAllViewports ( )

Generated from method MR::ObjectMesh::getSelectedFacesColorsForAllViewports.

Calls MR_ObjectMesh_getSelectedFacesColorsForAllViewports().

◆ getSharedPtr()

meshlib.std_shared_ptr_MR_Object meshlib.ObjectMesh.getSharedPtr ( )

returns this Object as shared_ptr finds it among its parent's recognized children Generated from method MR::ObjectMesh::getSharedPtr.

Calls MR_ObjectMesh_getSharedPtr().

◆ getShininess()

float meshlib.ObjectMesh.getShininess ( )

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

Calls MR_ObjectMesh_getShininess().

◆ getSpecularStrength()

float meshlib.ObjectMesh.getSpecularStrength ( )

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

Calls MR_ObjectMesh_getSpecularStrength().

◆ getTexture()

meshlib.MeshTexture meshlib.ObjectMesh.getTexture ( )

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

Calls MR_ObjectMesh_getTexture().

◆ getTexturePerFace()

meshlib.TexturePerFace meshlib.ObjectMesh.getTexturePerFace ( )

Generated from method MR::ObjectMesh::getTexturePerFace.

Calls MR_ObjectMesh_getTexturePerFace().

◆ getTextures()

meshlib.Vector_MR_MeshTexture_MR_TextureId meshlib.ObjectMesh.getTextures ( )

Generated from method MR::ObjectMesh::getTextures.

Calls MR_ObjectMesh_getTextures().

◆ getUVCoords()

meshlib.VertCoords2 meshlib.ObjectMesh.getUVCoords ( )

Generated from method MR::ObjectMesh::getUVCoords.

Calls MR_ObjectMesh_getUVCoords().

◆ getVertsColorMap()

meshlib.VertColors meshlib.ObjectMesh.getVertsColorMap ( )

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

Calls MR_ObjectMesh_getVertsColorMap().

◆ getVisualizeProperty()

boolean meshlib.ObjectMesh.getVisualizeProperty ( meshlib.AnyVisualizeMaskEnum type,
meshlib.ViewportMask viewportMask )

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

Calls MR_ObjectMesh_getVisualizeProperty().

◆ getVisualizePropertyMask()

meshlib.ViewportMask meshlib.ObjectMesh.getVisualizePropertyMask ( meshlib.AnyVisualizeMaskEnum type)

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

Calls MR_ObjectMesh_getVisualizePropertyMask().

◆ getWorldBox()

meshlib.Box3f meshlib.ObjectMesh.getWorldBox ( meshlib.ViewportId _1)

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.

Calls MR_ObjectMesh_getWorldBox().

◆ getWorldTreeBox()

meshlib.Box3f meshlib.ObjectMesh.getWorldTreeBox ( meshlib.ViewportId _1)

returns bounding box of this object and all children visible in given (or default) viewport in world coordinates Generated from method MR::ObjectMesh::getWorldTreeBox.

Calls MR_ObjectMesh_getWorldTreeBox().

◆ globalClippedByPlane()

boolean meshlib.ObjectMesh.globalClippedByPlane ( meshlib.ViewportMask viewportMask)

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.

Calls MR_ObjectMesh_globalClippedByPlane().

◆ globalClippedByPlaneMask()

meshlib.ViewportMask meshlib.ObjectMesh.globalClippedByPlaneMask ( )

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

Calls MR_ObjectMesh_globalClippedByPlaneMask().

◆ globalVisibility()

boolean meshlib.ObjectMesh.globalVisibility ( meshlib.ViewportMask viewportMask)

returns true if this object is visible together with all its parents in any of given viewports Generated from method MR::ObjectMesh::globalVisibility.

Calls MR_ObjectMesh_globalVisibility().

◆ globalVisibilityMask()

meshlib.ViewportMask meshlib.ObjectMesh.globalVisibilityMask ( )

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

Calls MR_ObjectMesh_globalVisibilityMask().

◆ hasAncillaryTexture()

boolean meshlib.ObjectMesh.hasAncillaryTexture ( )

Generated from method MR::ObjectMesh::hasAncillaryTexture.

Calls MR_ObjectMesh_hasAncillaryTexture().

◆ hasModel()

boolean meshlib.ObjectMesh.hasModel ( )

Generated from method MR::ObjectMesh::hasModel.

Calls MR_ObjectMesh_hasModel().

◆ hasVisualRepresentation()

boolean meshlib.ObjectMesh.hasVisualRepresentation ( )

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

Calls MR_ObjectMesh_hasVisualRepresentation().

◆ heapBytes()

long meshlib.ObjectMesh.heapBytes ( )

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

Calls MR_ObjectMesh_heapBytes().

◆ invalidateMetricsCache()

void meshlib.ObjectMesh.invalidateMetricsCache ( int mask)

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

Calls MR_ObjectMesh_invalidateMetricsCache().

◆ isAncestor()

boolean meshlib.ObjectMesh.isAncestor ( meshlib.Object ancestor)

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

Calls MR_ObjectMesh_isAncestor().

◆ isAncillary()

boolean meshlib.ObjectMesh.isAncillary ( )

Generated from method MR::ObjectMesh::isAncillary.

Calls MR_ObjectMesh_isAncillary().

◆ isGlobalAncillary()

boolean meshlib.ObjectMesh.isGlobalAncillary ( )

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

Calls MR_ObjectMesh_isGlobalAncillary().

◆ isLocked()

boolean meshlib.ObjectMesh.isLocked ( )

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

Calls MR_ObjectMesh_isLocked().

◆ isMeshClosed()

boolean meshlib.ObjectMesh.isMeshClosed ( )

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

Calls MR_ObjectMesh_isMeshClosed().

◆ isParentLocked()

boolean meshlib.ObjectMesh.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.

Calls MR_ObjectMesh_isParentLocked().

◆ isPickable()

boolean meshlib.ObjectMesh.isPickable ( meshlib.ViewportMask viewportMask)

whether the object can be picked (by mouse) in any of given viewports Generated from method MR::ObjectMesh::isPickable.

Calls MR_ObjectMesh_isPickable().

◆ isSelected()

boolean meshlib.ObjectMesh.isSelected ( )

Generated from method MR::ObjectMesh::isSelected.

Calls MR_ObjectMesh_isSelected().

◆ isVisible()

boolean meshlib.ObjectMesh.isVisible ( meshlib.ViewportMask viewportMask)

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.

Calls MR_ObjectMesh_isVisible().

◆ mesh()

meshlib.std_shared_ptr_const_MR_Mesh meshlib.ObjectMesh.mesh ( )
Deprecated
the cast inside is undefined behaviour, use meshPtr() instead Generated from method MR::ObjectMesh::mesh.

Calls MR_ObjectMesh_mesh().

◆ meshPart()

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

Calls MR_ObjectMesh_meshPart().

◆ meshPtr()

meshlib.Mesh meshlib.ObjectMesh.meshPtr ( )

returns the mesh of this object, or nullptr if it is not set Generated from method MR::ObjectMesh::meshPtr.

Calls MR_ObjectMesh_meshPtr().

◆ name()

meshlib.std_string meshlib.ObjectMesh.name ( )

Generated from method MR::ObjectMesh::name.

Calls MR_ObjectMesh_name().

◆ numComponents()

long meshlib.ObjectMesh.numComponents ( )

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

Calls MR_ObjectMesh_numComponents().

◆ numCreaseEdges()

long meshlib.ObjectMesh.numCreaseEdges ( )

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

Calls MR_ObjectMesh_numCreaseEdges().

◆ numHandles()

long meshlib.ObjectMesh.numHandles ( )

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

Calls MR_ObjectMesh_numHandles().

◆ numHoles()

long meshlib.ObjectMesh.numHoles ( )

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

Calls MR_ObjectMesh_numHoles().

◆ numSelectedEdges()

long meshlib.ObjectMesh.numSelectedEdges ( )

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

Calls MR_ObjectMesh_numSelectedEdges().

◆ numSelectedFaces()

long meshlib.ObjectMesh.numSelectedFaces ( )

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

Calls MR_ObjectMesh_numSelectedFaces().

◆ numUndirectedEdges()

long meshlib.ObjectMesh.numUndirectedEdges ( )

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

Calls MR_ObjectMesh_numUndirectedEdges().

◆ removeAllChildren()

void meshlib.ObjectMesh.removeAllChildren ( )

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

Calls MR_ObjectMesh_removeAllChildren().

◆ removeTag()

boolean meshlib.ObjectMesh.removeTag ( java.lang.String tag)

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

Calls MR_ObjectMesh_removeTag().

◆ render()

boolean meshlib.ObjectMesh.render ( meshlib.ModelRenderParams _1)

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

Calls MR_ObjectMesh_render().

◆ renderForPicker()

void meshlib.ObjectMesh.renderForPicker ( meshlib.ModelBaseRenderParams _1,
int _2 )

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

Calls MR_ObjectMesh_renderForPicker().

◆ renderUi()

void meshlib.ObjectMesh.renderUi ( meshlib.UiRenderParams params)

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

Calls MR_ObjectMesh_renderUi().

◆ resetColors()

void meshlib.ObjectMesh.resetColors ( )

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

Calls MR_ObjectMesh_resetColors().

◆ resetDirty()

void meshlib.ObjectMesh.resetDirty ( )

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

Calls MR_ObjectMesh_resetDirty().

◆ resetDirtyExceptMask()

void meshlib.ObjectMesh.resetDirtyExceptMask ( int mask)

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

Calls MR_ObjectMesh_resetDirtyExceptMask().

◆ resetFrontColor()

void meshlib.ObjectMesh.resetFrontColor ( )

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

Calls MR_ObjectMesh_resetFrontColor().

◆ resetRedrawFlag()

void meshlib.ObjectMesh.resetRedrawFlag ( )

Generated from method MR::ObjectMesh::resetRedrawFlag.

Calls MR_ObjectMesh_resetRedrawFlag().

◆ resetXf()

void meshlib.ObjectMesh.resetXf ( meshlib.ViewportId id)

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

Calls MR_ObjectMesh_resetXf().

◆ sameModels()

boolean meshlib.ObjectMesh.sameModels ( meshlib.Object other)

Generated from method MR::ObjectMesh::sameModels.

Calls MR_ObjectMesh_sameModels().

◆ select()

boolean meshlib.ObjectMesh.select ( boolean on)

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

Calls MR_ObjectMesh_select().

◆ selectedArea()

double meshlib.ObjectMesh.selectedArea ( )

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

Calls MR_ObjectMesh_selectedArea().

◆ selectEdges()

void meshlib.ObjectMesh.selectEdges ( meshlib.UndirectedEdgeBitSet newSelection)

Generated from method MR::ObjectMesh::selectEdges.

Calls MR_ObjectMesh_selectEdges().

◆ selectFaces()

void meshlib.ObjectMesh.selectFaces ( meshlib.FaceBitSet newSelection)

Generated from method MR::ObjectMesh::selectFaces.

Calls MR_ObjectMesh_selectFaces().

◆ serializeFormat()

java.lang.Byte meshlib.ObjectMesh.serializeFormat ( )

returns overriden file extension used to serialize mesh inside this object, nullptr means SceneSettings::get( SceneSettings::StringType::MeshSerializeFormat ) Generated from method MR::ObjectMesh::serializeFormat.

Calls MR_ObjectMesh_serializeFormat().

◆ setAllVisualizeProperties()

void meshlib.ObjectMesh.setAllVisualizeProperties ( meshlib.std_vector_MR_ViewportMask properties)

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

Calls MR_ObjectMesh_setAllVisualizeProperties().

◆ setAmbientStrength()

void meshlib.ObjectMesh.setAmbientStrength ( float ambientStrength)

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

Calls MR_ObjectMesh_setAmbientStrength().

◆ setAncillary()

void meshlib.ObjectMesh.setAncillary ( boolean 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.

Calls MR_ObjectMesh_setAncillary().

◆ setAncillaryTexture()

void meshlib.ObjectMesh.setAncillaryTexture ( meshlib.MeshTexture texture)

Generated from method MR::ObjectMesh::setAncillaryTexture.

Calls MR_ObjectMesh_setAncillaryTexture().

◆ setAncillaryUVCoords()

void meshlib.ObjectMesh.setAncillaryUVCoords ( meshlib.VertCoords2 uvCoordinates)

Generated from method MR::ObjectMesh::setAncillaryUVCoords.

Calls MR_ObjectMesh_setAncillaryUVCoords().

◆ setBackColor()

void meshlib.ObjectMesh.setBackColor ( meshlib.Color color,
meshlib.ViewportId viewportId )

sets backward color of object in given viewport Generated from method MR::ObjectMesh::setBackColor.

Calls MR_ObjectMesh_setBackColor().

◆ setBackColorsForAllViewports()

void meshlib.ObjectMesh.setBackColorsForAllViewports ( meshlib.ViewportProperty_MR_Color val)

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

Calls MR_ObjectMesh_setBackColorsForAllViewports().

◆ setBordersColor()

void meshlib.ObjectMesh.setBordersColor ( meshlib.Color color,
meshlib.ViewportId id )

Generated from method MR::ObjectMesh::setBordersColor.

Calls MR_ObjectMesh_setBordersColor().

◆ setBordersColorsForAllViewports()

void meshlib.ObjectMesh.setBordersColorsForAllViewports ( meshlib.ViewportProperty_MR_Color val)

Generated from method MR::ObjectMesh::setBordersColorsForAllViewports.

Calls MR_ObjectMesh_setBordersColorsForAllViewports().

◆ setColoringType()

void meshlib.ObjectMesh.setColoringType ( meshlib.ColoringType coloringType)

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

Calls MR_ObjectMesh_setColoringType().

◆ setCreases()

void meshlib.ObjectMesh.setCreases ( meshlib.UndirectedEdgeBitSet creases)

Generated from method MR::ObjectMesh::setCreases.

Calls MR_ObjectMesh_setCreases().

◆ setData()

void meshlib.ObjectMesh.setData ( meshlib.ObjectMeshData data)

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

Calls MR_ObjectMesh_setData().

◆ setDirtyFlags()

void meshlib.ObjectMesh.setDirtyFlags ( int mask,
java.lang.Boolean invalidateCaches )

Generated from method MR::ObjectMesh::setDirtyFlags.

Calls MR_ObjectMesh_setDirtyFlags().

◆ setDirtyFlagsFast()

void meshlib.ObjectMesh.setDirtyFlagsFast ( int 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.

Calls MR_ObjectMesh_setDirtyFlagsFast().

◆ setEdgesColor()

void meshlib.ObjectMesh.setEdgesColor ( meshlib.Color color,
meshlib.ViewportId id )

Generated from method MR::ObjectMesh::setEdgesColor.

Calls MR_ObjectMesh_setEdgesColor().

◆ setEdgesColorsForAllViewports()

void meshlib.ObjectMesh.setEdgesColorsForAllViewports ( meshlib.ViewportProperty_MR_Color val)

Generated from method MR::ObjectMesh::setEdgesColorsForAllViewports.

Calls MR_ObjectMesh_setEdgesColorsForAllViewports().

◆ setEdgeWidth()

void meshlib.ObjectMesh.setEdgeWidth ( float edgeWidth)

Generated from method MR::ObjectMesh::setEdgeWidth.

Calls MR_ObjectMesh_setEdgeWidth().

◆ setFacesColorMap()

void meshlib.ObjectMesh.setFacesColorMap ( meshlib.FaceColors facesColorMap)

Generated from method MR::ObjectMesh::setFacesColorMap.

Calls MR_ObjectMesh_setFacesColorMap().

◆ setFlatShading()

void meshlib.ObjectMesh.setFlatShading ( boolean on)

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

Calls MR_ObjectMesh_setFlatShading().

◆ setFrontColor()

void meshlib.ObjectMesh.setFrontColor ( meshlib.Color color,
boolean selected,
meshlib.ViewportId viewportId )

sets color of object when it is selected/not-selected (depending on argument) in given viewport Generated from method MR::ObjectMesh::setFrontColor.

Calls MR_ObjectMesh_setFrontColor().

◆ setFrontColorsForAllViewports()

void meshlib.ObjectMesh.setFrontColorsForAllViewports ( meshlib.ViewportProperty_MR_Color val,
java.lang.Boolean selected )

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

Calls MR_ObjectMesh_setFrontColorsForAllViewports().

◆ setGlobalAlpha()

void meshlib.ObjectMesh.setGlobalAlpha ( byte alpha,
meshlib.ViewportId viewportId )

sets global transparency alpha of object in given viewport Generated from method MR::ObjectMesh::setGlobalAlpha.

Calls MR_ObjectMesh_setGlobalAlpha().

◆ setGlobalAlphaForAllViewports()

void meshlib.ObjectMesh.setGlobalAlphaForAllViewports ( meshlib.ViewportProperty_unsigned_char val)

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

Calls MR_ObjectMesh_setGlobalAlphaForAllViewports().

◆ setGlobalClippedByPlane()

void meshlib.ObjectMesh.setGlobalClippedByPlane ( boolean on,
meshlib.ViewportMask viewportMask )

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.

Calls MR_ObjectMesh_setGlobalClippedByPlane().

◆ setGlobalVisibility()

void meshlib.ObjectMesh.setGlobalVisibility ( boolean on,
meshlib.ViewportMask viewportMask )

if true sets all predecessors visible, otherwise sets this object invisible Generated from method MR::ObjectMesh::setGlobalVisibility.

Calls MR_ObjectMesh_setGlobalVisibility().

◆ setLocked()

void meshlib.ObjectMesh.setLocked ( boolean on)

Generated from method MR::ObjectMesh::setLocked.

Calls MR_ObjectMesh_setLocked().

◆ setMesh()

void meshlib.ObjectMesh.setMesh ( meshlib.std_shared_ptr_MR_Mesh mesh)

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

Calls MR_ObjectMesh_setMesh().

◆ setName()

void meshlib.ObjectMesh.setName ( java.lang.String name)

Generated from method MR::ObjectMesh::setName.

Calls MR_ObjectMesh_setName().

◆ setParentLocked()

void meshlib.ObjectMesh.setParentLocked ( boolean lock)

Generated from method MR::ObjectMesh::setParentLocked.

Calls MR_ObjectMesh_setParentLocked().

◆ setPickable()

void meshlib.ObjectMesh.setPickable ( boolean on,
meshlib.ViewportMask viewportMask )

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

Calls MR_ObjectMesh_setPickable().

◆ setPointsColor()

void meshlib.ObjectMesh.setPointsColor ( meshlib.Color color,
meshlib.ViewportId id )

Generated from method MR::ObjectMesh::setPointsColor.

Calls MR_ObjectMesh_setPointsColor().

◆ setPointsColorsForAllViewports()

void meshlib.ObjectMesh.setPointsColorsForAllViewports ( meshlib.ViewportProperty_MR_Color val)

Generated from method MR::ObjectMesh::setPointsColorsForAllViewports.

Calls MR_ObjectMesh_setPointsColorsForAllViewports().

◆ setPointSize()

void meshlib.ObjectMesh.setPointSize ( float size)

Generated from method MR::ObjectMesh::setPointSize.

Calls MR_ObjectMesh_setPointSize().

◆ setSelectedEdgesColor()

void meshlib.ObjectMesh.setSelectedEdgesColor ( meshlib.Color color,
meshlib.ViewportId id )

sets colors of selected edges Generated from method MR::ObjectMesh::setSelectedEdgesColor.

Calls MR_ObjectMesh_setSelectedEdgesColor().

◆ setSelectedEdgesColorsForAllViewports()

void meshlib.ObjectMesh.setSelectedEdgesColorsForAllViewports ( meshlib.ViewportProperty_MR_Color val)

Generated from method MR::ObjectMesh::setSelectedEdgesColorsForAllViewports.

Calls MR_ObjectMesh_setSelectedEdgesColorsForAllViewports().

◆ setSelectedFacesColor()

void meshlib.ObjectMesh.setSelectedFacesColor ( meshlib.Color color,
meshlib.ViewportId id )

sets colors of selected triangles Generated from method MR::ObjectMesh::setSelectedFacesColor.

Calls MR_ObjectMesh_setSelectedFacesColor().

◆ setSelectedFacesColorsForAllViewports()

void meshlib.ObjectMesh.setSelectedFacesColorsForAllViewports ( meshlib.ViewportProperty_MR_Color val)

Generated from method MR::ObjectMesh::setSelectedFacesColorsForAllViewports.

Calls MR_ObjectMesh_setSelectedFacesColorsForAllViewports().

◆ setSerializeFormat()

void meshlib.ObjectMesh.setSerializeFormat ( java.lang.Byte newFormat)

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

Calls MR_ObjectMesh_setSerializeFormat().

◆ setShininess()

void meshlib.ObjectMesh.setShininess ( float shininess)

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

Calls MR_ObjectMesh_setShininess().

◆ setSpecularStrength()

void meshlib.ObjectMesh.setSpecularStrength ( float specularStrength)

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

Calls MR_ObjectMesh_setSpecularStrength().

◆ setTexturePerFace()

void meshlib.ObjectMesh.setTexturePerFace ( meshlib.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.

Calls MR_ObjectMesh_setTexturePerFace().

◆ setTextures()

void meshlib.ObjectMesh.setTextures ( meshlib.Vector_MR_MeshTexture_MR_TextureId texture)

Generated from method MR::ObjectMesh::setTextures.

Calls MR_ObjectMesh_setTextures().

◆ setUseDefaultScenePropertiesOnDeserialization()

void meshlib.ObjectMesh.setUseDefaultScenePropertiesOnDeserialization ( boolean 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.

Calls MR_ObjectMesh_setUseDefaultScenePropertiesOnDeserialization().

◆ setUVCoords()

void meshlib.ObjectMesh.setUVCoords ( meshlib.VertCoords2 uvCoordinates)

Generated from method MR::ObjectMesh::setUVCoords.

Calls MR_ObjectMesh_setUVCoords().

◆ setVertsColorMap()

void meshlib.ObjectMesh.setVertsColorMap ( meshlib.VertColors vertsColorMap)

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

Calls MR_ObjectMesh_setVertsColorMap().

◆ setVisibilityMask()

void meshlib.ObjectMesh.setVisibilityMask ( meshlib.ViewportMask viewportMask)

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

Calls MR_ObjectMesh_setVisibilityMask().

◆ setVisible()

void meshlib.ObjectMesh.setVisible ( boolean on,
meshlib.ViewportMask viewportMask )

sets the object visible in the viewports specified by the mask (by default in all viewports) Generated from method MR::ObjectMesh::setVisible.

Calls MR_ObjectMesh_setVisible().

◆ setVisualizeProperty()

void meshlib.ObjectMesh.setVisualizeProperty ( boolean value,
meshlib.AnyVisualizeMaskEnum type,
meshlib.ViewportMask viewportMask )

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

Calls MR_ObjectMesh_setVisualizeProperty().

◆ setVisualizePropertyMask()

void meshlib.ObjectMesh.setVisualizePropertyMask ( meshlib.AnyVisualizeMaskEnum type,
meshlib.ViewportMask viewportMask )

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

Calls MR_ObjectMesh_setVisualizePropertyMask().

◆ setWorldXf()

void meshlib.ObjectMesh.setWorldXf ( meshlib.AffineXf3f xf,
meshlib.ViewportId id )

Generated from method MR::ObjectMesh::setWorldXf.

Calls MR_ObjectMesh_setWorldXf().

◆ setXf()

void meshlib.ObjectMesh.setXf ( meshlib.AffineXf3f xf,
meshlib.ViewportId id )

Generated from method MR::ObjectMesh::setXf.

Calls MR_ObjectMesh_setXf().

◆ setXfsForAllViewports()

void meshlib.ObjectMesh.setXfsForAllViewports ( meshlib.ViewportProperty_MR_AffineXf3f xf)

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

Calls MR_ObjectMesh_setXfsForAllViewports().

◆ shallowClone()

meshlib.std_shared_ptr_MR_Object meshlib.ObjectMesh.shallowClone ( )

Generated from method MR::ObjectMesh::shallowClone.

Calls MR_ObjectMesh_shallowClone().

◆ shallowCloneTree()

meshlib.std_shared_ptr_MR_Object meshlib.ObjectMesh.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.

Calls MR_ObjectMesh_shallowCloneTree().

◆ sortChildren()

void meshlib.ObjectMesh.sortChildren ( )

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

Calls MR_ObjectMesh_sortChildren().

◆ StaticClassName()

java.lang.Byte meshlib.ObjectMesh.StaticClassName ( )
static

Generated from method MR::ObjectMesh::StaticClassName.

Calls MR_ObjectMesh_StaticClassName().

◆ StaticClassNameInPlural()

java.lang.Byte meshlib.ObjectMesh.StaticClassNameInPlural ( )
static

Generated from method MR::ObjectMesh::StaticClassNameInPlural.

Calls MR_ObjectMesh_StaticClassNameInPlural().

◆ staticDowncastFromObject()

meshlib.ObjectMesh meshlib.ObjectMesh.staticDowncastFromObject ( meshlib.Object object)
static

Static downcast from the base class MR::Object. Undefined behavior if the object isn't actually a ObjectMesh. The result refers to object.

Calls MR_ObjectMesh_MutableStaticDowncastFrom_MR_Object().

◆ staticDowncastFromObjectChildrenHolder()

meshlib.ObjectMesh meshlib.ObjectMesh.staticDowncastFromObjectChildrenHolder ( meshlib.ObjectChildrenHolder object)
static

Static downcast from the base class MR::ObjectChildrenHolder. Undefined behavior if the object isn't actually a ObjectMesh. The result refers to object.

Calls MR_ObjectMesh_MutableStaticDowncastFrom_MR_ObjectChildrenHolder().

◆ staticDowncastFromObjectMeshHolder()

meshlib.ObjectMesh meshlib.ObjectMesh.staticDowncastFromObjectMeshHolder ( meshlib.ObjectMeshHolder object)
static

Static downcast from the base class MR::ObjectMeshHolder. Undefined behavior if the object isn't actually a ObjectMesh. The result refers to object.

Calls MR_ObjectMesh_MutableStaticDowncastFrom_MR_ObjectMeshHolder().

◆ staticDowncastFromVisualObject()

meshlib.ObjectMesh meshlib.ObjectMesh.staticDowncastFromVisualObject ( meshlib.VisualObject object)
static

Static downcast from the base class MR::VisualObject. Undefined behavior if the object isn't actually a ObjectMesh. The result refers to object.

Calls MR_ObjectMesh_MutableStaticDowncastFrom_MR_VisualObject().

◆ StaticTypeName()

java.lang.Byte meshlib.ObjectMesh.StaticTypeName ( )
static

Generated from method MR::ObjectMesh::StaticTypeName.

Calls MR_ObjectMesh_StaticTypeName().

◆ supportsVisualizeProperty()

boolean meshlib.ObjectMesh.supportsVisualizeProperty ( meshlib.AnyVisualizeMaskEnum type)

Generated from method MR::ObjectMesh::supportsVisualizeProperty.

Calls MR_ObjectMesh_supportsVisualizeProperty().

◆ swap()

void meshlib.ObjectMesh.swap ( meshlib.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.

Calls MR_ObjectMesh_swap().

◆ tags()

meshlib.std_set_std_string meshlib.ObjectMesh.tags ( )

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

Calls MR_ObjectMesh_tags().

◆ toggleVisualizeProperty()

void meshlib.ObjectMesh.toggleVisualizeProperty ( meshlib.AnyVisualizeMaskEnum type,
meshlib.ViewportMask viewportMask )

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

Calls MR_ObjectMesh_toggleVisualizeProperty().

◆ totalArea()

double meshlib.ObjectMesh.totalArea ( )

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

Calls MR_ObjectMesh_totalArea().

◆ typeName()

java.lang.Byte meshlib.ObjectMesh.typeName ( )

Generated from method MR::ObjectMesh::typeName.

Calls MR_ObjectMesh_typeName().

◆ upcastToObject()

meshlib.Object meshlib.ObjectMesh.upcastToObject ( )

Upcasts to the base class MR::Object. The result refers to this object.

Calls MR_ObjectMesh_MutableUpcastTo_MR_Object().

◆ upcastToObjectChildrenHolder()

meshlib.ObjectChildrenHolder meshlib.ObjectMesh.upcastToObjectChildrenHolder ( )

Upcasts to the base class MR::ObjectChildrenHolder. The result refers to this object.

Calls MR_ObjectMesh_MutableUpcastTo_MR_ObjectChildrenHolder().

◆ upcastToObjectMeshHolder()

meshlib.ObjectMeshHolder meshlib.ObjectMesh.upcastToObjectMeshHolder ( )

Upcasts to the base class MR::ObjectMeshHolder. The result refers to this object.

Calls MR_ObjectMesh_MutableUpcastTo_MR_ObjectMeshHolder().

◆ upcastToVisualObject()

meshlib.VisualObject meshlib.ObjectMesh.upcastToVisualObject ( )

Upcasts to the base class MR::VisualObject. The result refers to this object.

Calls MR_ObjectMesh_MutableUpcastTo_MR_VisualObject().

◆ updateAncillaryUVCoords()

void meshlib.ObjectMesh.updateAncillaryUVCoords ( meshlib.VertCoords2 updated)

Generated from method MR::ObjectMesh::updateAncillaryUVCoords.

Calls MR_ObjectMesh_updateAncillaryUVCoords().

◆ updateData()

void meshlib.ObjectMesh.updateData ( meshlib.ObjectMeshData data)

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

Calls MR_ObjectMesh_updateData().

◆ updateFacesColorMap()

void meshlib.ObjectMesh.updateFacesColorMap ( meshlib.FaceColors updated)

Generated from method MR::ObjectMesh::updateFacesColorMap.

Calls MR_ObjectMesh_updateFacesColorMap().

◆ updateMesh()

meshlib.std_shared_ptr_MR_Mesh meshlib.ObjectMesh.updateMesh ( meshlib.std_shared_ptr_MR_Mesh mesh)

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

Calls MR_ObjectMesh_updateMesh().

◆ updateTexturePerFace()

void meshlib.ObjectMesh.updateTexturePerFace ( meshlib.TexturePerFace texturePerFace)

Generated from method MR::ObjectMesh::updateTexturePerFace.

Calls MR_ObjectMesh_updateTexturePerFace().

◆ updateTextures()

void meshlib.ObjectMesh.updateTextures ( meshlib.Vector_MR_MeshTexture_MR_TextureId updated)

Generated from method MR::ObjectMesh::updateTextures.

Calls MR_ObjectMesh_updateTextures().

◆ updateUVCoords()

void meshlib.ObjectMesh.updateUVCoords ( meshlib.VertCoords2 updated)

Generated from method MR::ObjectMesh::updateUVCoords.

Calls MR_ObjectMesh_updateUVCoords().

◆ updateVertsColorMap()

void meshlib.ObjectMesh.updateVertsColorMap ( meshlib.VertColors vertsColorMap)

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

Calls MR_ObjectMesh_updateVertsColorMap().

◆ useDefaultScenePropertiesOnDeserialization()

boolean meshlib.ObjectMesh.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.

Calls MR_ObjectMesh_useDefaultScenePropertiesOnDeserialization().

◆ varMesh()

meshlib.std_shared_ptr_MR_Mesh meshlib.ObjectMesh.varMesh ( )

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

Calls MR_ObjectMesh_varMesh().

◆ varMeshPtr()

meshlib.Mesh meshlib.ObjectMesh.varMeshPtr ( )

returns the mesh of this object for modification, or nullptr if it is not set Generated from method MR::ObjectMesh::varMeshPtr.

Calls MR_ObjectMesh_varMeshPtr().

◆ visibilityMask()

meshlib.ViewportMask meshlib.ObjectMesh.visibilityMask ( )

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

Calls MR_ObjectMesh_visibilityMask().

◆ volume()

double meshlib.ObjectMesh.volume ( )

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

Calls MR_ObjectMesh_volume().

◆ worldRayIntersection()

meshlib.MeshIntersectionResult meshlib.ObjectMesh.worldRayIntersection ( meshlib.Line3f worldRay,
meshlib.FaceBitSet region )

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.

Calls MR_ObjectMesh_worldRayIntersection().

◆ worldXf()

meshlib.AffineXf3f meshlib.ObjectMesh.worldXf ( meshlib.ViewportId id,
meshlib.bool_output isDef )

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.

Calls MR_ObjectMesh_worldXf().

◆ xf()

meshlib.AffineXf3f meshlib.ObjectMesh.xf ( meshlib.ViewportId id,
meshlib.bool_output isDef )

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.

Calls MR_ObjectMesh_xf().

◆ xfsForAllViewports()

meshlib.ViewportProperty_MR_AffineXf3f meshlib.ObjectMesh.xfsForAllViewports ( )

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

Calls MR_ObjectMesh_xfsForAllViewports().


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