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
Generated from class MR::ObjectMesh. Heap-allocated instances are held in Owned<ObjectMesh>.
| auto meshlib::ObjectMesh::actual_serialize_format | ( | ) | const -> Option<&core::ffi::c_char > |
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().
| auto meshlib::ObjectMesh::add_child | ( | child:&meshlib::std_shared_ptr_MR_Object | , |
| recognizedChild:Option< bool > | ) -> bool |
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;
| recognizedChild | if 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().
| auto meshlib::ObjectMesh::add_child_before | ( | newChild:&meshlib::std_shared_ptr_MR_Object | , |
| existingChild:&meshlib::std_shared_ptr_MR_Object | ) -> bool |
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().
| auto meshlib::ObjectMesh::add_tag | ( | tag:& | str | ) | -> bool |
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().
| void meshlib::ObjectMesh::add_texture | ( | texture:&meshlib::MeshTexture | ) |
Generated from method MR::ObjectMesh::addTexture.
Calls MR_ObjectMesh_addTexture().
| void meshlib::ObjectMesh::apply_scale | ( | scaleFactor:f32 | ) |
Generated from method MR::ObjectMesh::applyScale.
Calls MR_ObjectMesh_applyScale().
| auto meshlib::ObjectMesh::assign_from_another | ( | _other:meshlib::Owned< meshlib::ObjectMesh > | ) | -> &mut meshlib::ObjectMesh |
Generated from method MR::ObjectMesh::operator=.
Calls MR_ObjectMesh_AssignFromAnother(). 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.
| auto meshlib::ObjectMesh::avg_edge_len | ( | ) | const -> f32 |
returns cached average edge length Generated from method MR::ObjectMesh::avgEdgeLen.
Calls MR_ObjectMesh_avgEdgeLen().
| auto meshlib::ObjectMesh::class_name | ( | ) | const -> meshlib::Owned< meshlib::std_string > |
Generated from method MR::ObjectMesh::className.
Calls MR_ObjectMesh_className().
| auto meshlib::ObjectMesh::class_name_in_plural | ( | ) | const -> meshlib::Owned< meshlib::std_string > |
Generated from method MR::ObjectMesh::classNameInPlural.
Calls MR_ObjectMesh_classNameInPlural().
| void meshlib::ObjectMesh::clear_ancillary_texture | ( | ) |
Generated from method MR::ObjectMesh::clearAncillaryTexture.
Calls MR_ObjectMesh_clearAncillaryTexture().
| auto meshlib::ObjectMesh::clone | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object > |
Generated from method MR::ObjectMesh::clone.
Calls MR_ObjectMesh_clone().
| auto meshlib::ObjectMesh::clone_tree | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object > |
clones all tree of this object (except ancillary and unrecognized children) Generated from method MR::ObjectMesh::cloneTree.
Calls MR_ObjectMesh_cloneTree().
| auto meshlib::ObjectMesh::const_children | ( | ) | const -> meshlib::Owned< meshlib::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().
|
static |
Generated from constructor MR::ObjectMesh::ObjectMesh.
Calls MR_ObjectMesh_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| void meshlib::ObjectMesh::copy_all_solid_colors | ( | other:&meshlib::ObjectMeshHolder | ) |
set all object solid colors (front/back/etc.) from other object for all viewports Generated from method MR::ObjectMesh::copyAllSolidColors.
Calls MR_ObjectMesh_copyAllSolidColors().
| void meshlib::ObjectMesh::copy_colors | ( | src:&meshlib::ObjectMeshHolder | , |
| thisToSrc:&meshlib::VertMap | , | ||
| thisToSrcFaces:Option<&meshlib::FaceMap > | ) |
copies vertex colors from given source object
| src | using given map |
| thisToSrc | Generated from method MR::ObjectMesh::copyColors. |
Calls MR_ObjectMesh_copyColors().
| void meshlib::ObjectMesh::copy_texture_and_colors | ( | src:&meshlib::ObjectMeshHolder | , |
| thisToSrc:&meshlib::VertMap | , | ||
| thisToSrcFaces:Option<&meshlib::FaceMap > | ) |
copies texture, UV-coordinates and vertex colors from given source object
| src | using given map |
| thisToSrc | Generated from method MR::ObjectMesh::copyTextureAndColors. |
Calls MR_ObjectMesh_copyTextureAndColors().
| auto meshlib::ObjectMesh::creases | ( | ) | const -> &meshlib::UndirectedEdgeBitSet |
Edges on mesh, that will have sharp visualization even with smooth shading Generated from method MR::ObjectMesh::creases.
Calls MR_ObjectMesh_creases().
| auto meshlib::ObjectMesh::data | ( | ) | const -> &meshlib::ObjectMeshData |
provides read-only access to whole ObjectMeshData Generated from method MR::ObjectMesh::data.
Calls MR_ObjectMesh_data().
| auto meshlib::ObjectMesh::detach_from_parent | ( | ) | -> bool |
removes this from its parent children list returns false if it was already orphan Generated from method MR::ObjectMesh::detachFromParent.
Calls MR_ObjectMesh_detachFromParent().
|
static |
Dynamic downcast from the base class MR::Object. Returns None if the object isn't actually a ObjectMesh.
Calls MR_ObjectMesh_DynamicDowncastFrom_MR_Object().
|
static |
Dynamic downcast from the base class MR::ObjectMeshHolder. Returns None if the object isn't actually a ObjectMesh.
Calls MR_ObjectMesh_DynamicDowncastFrom_MR_ObjectMeshHolder().
|
static |
Dynamic downcast from the base class MR::ObjectMeshHolder. Returns None if the object isn't actually a ObjectMesh.
Calls MR_ObjectMesh_MutableDynamicDowncastFrom_MR_ObjectMeshHolder().
|
static |
Dynamic downcast from the base class MR::Object. Returns None if the object isn't actually a ObjectMesh.
Calls MR_ObjectMesh_MutableDynamicDowncastFrom_MR_Object().
|
static |
Dynamic downcast from the base class MR::VisualObject. Returns None if the object isn't actually a ObjectMesh.
Calls MR_ObjectMesh_DynamicDowncastFrom_MR_VisualObject().
|
static |
Dynamic downcast from the base class MR::VisualObject. Returns None if the object isn't actually a ObjectMesh.
Calls MR_ObjectMesh_MutableDynamicDowncastFrom_MR_VisualObject().
| auto meshlib::ObjectMesh::flat_shading | ( | ) | const -> bool |
Generated from method MR::ObjectMesh::flatShading.
Calls MR_ObjectMesh_flatShading().
| auto meshlib::ObjectMesh::get_all_visualize_properties | ( | ) | const -> meshlib::Owned< meshlib::std_vector_MR_ViewportMask > |
get all visualize properties masks Generated from method MR::ObjectMesh::getAllVisualizeProperties.
Calls MR_ObjectMesh_getAllVisualizeProperties().
| auto meshlib::ObjectMesh::get_ambient_strength | ( | ) | const -> f32 |
returns intensity of non-directional light Generated from method MR::ObjectMesh::getAmbientStrength.
Calls MR_ObjectMesh_getAmbientStrength().
| auto meshlib::ObjectMesh::get_ancillary_texture | ( | ) | const -> &meshlib::MeshTexture |
ancillary texture can be used to have custom features visualization without affecting real one Generated from method MR::ObjectMesh::getAncillaryTexture.
Calls MR_ObjectMesh_getAncillaryTexture().
| auto meshlib::ObjectMesh::get_ancillary_uv_coords | ( | ) | const -> &meshlib::VertCoords2 |
Generated from method MR::ObjectMesh::getAncillaryUVCoords.
Calls MR_ObjectMesh_getAncillaryUVCoords().
| auto meshlib::ObjectMesh::get_back_color | ( | viewportId:Option<&meshlib::ViewportId > | ) | const -> &meshlib::Color |
returns backward color of object in given viewport Generated from method MR::ObjectMesh::getBackColor.
Calls MR_ObjectMesh_getBackColor().
| auto meshlib::ObjectMesh::get_back_colors_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_Color |
returns backward color of object in all viewports Generated from method MR::ObjectMesh::getBackColorsForAllViewports.
Calls MR_ObjectMesh_getBackColorsForAllViewports().
| auto meshlib::ObjectMesh::get_borders_color | ( | id:Option<&meshlib::ViewportId > | ) | const -> &meshlib::Color |
Generated from method MR::ObjectMesh::getBordersColor.
Calls MR_ObjectMesh_getBordersColor().
| auto meshlib::ObjectMesh::get_borders_colors_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_Color |
Generated from method MR::ObjectMesh::getBordersColorsForAllViewports.
Calls MR_ObjectMesh_getBordersColorsForAllViewports().
| auto meshlib::ObjectMesh::get_bounding_box | ( | ) | const -> meshlib::Box3f |
returns cached bounding box of this object in local coordinates Generated from method MR::ObjectMesh::getBoundingBox.
Calls MR_ObjectMesh_getBoundingBox().
| auto meshlib::ObjectMesh::get_coloring_type | ( | ) | const -> meshlib::ColoringType |
returns the current coloring mode of the object Generated from method MR::ObjectMesh::getColoringType.
Calls MR_ObjectMesh_getColoringType().
| auto meshlib::ObjectMesh::get_dirty_flags | ( | ) | const -> core::ffi::c_uint |
returns current dirty flags for the object Generated from method MR::ObjectMesh::getDirtyFlags.
Calls MR_ObjectMesh_getDirtyFlags().
| auto meshlib::ObjectMesh::get_edge_width | ( | ) | const -> f32 |
Generated from method MR::ObjectMesh::getEdgeWidth.
Calls MR_ObjectMesh_getEdgeWidth().
| auto meshlib::ObjectMesh::get_edges_color | ( | id:Option<&meshlib::ViewportId > | ) | const -> &meshlib::Color |
Generated from method MR::ObjectMesh::getEdgesColor.
Calls MR_ObjectMesh_getEdgesColor().
| auto meshlib::ObjectMesh::get_edges_colors_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_Color |
Generated from method MR::ObjectMesh::getEdgesColorsForAllViewports.
Calls MR_ObjectMesh_getEdgesColorsForAllViewports().
| auto meshlib::ObjectMesh::get_faces_color_map | ( | ) | const -> &meshlib::FaceColors |
Generated from method MR::ObjectMesh::getFacesColorMap.
Calls MR_ObjectMesh_getFacesColorMap().
| auto meshlib::ObjectMesh::get_front_color | ( | selected:Option< bool > | , |
| viewportId:Option<&meshlib::ViewportId > | ) const -> &meshlib::Color |
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().
| auto meshlib::ObjectMesh::get_front_colors_for_all_viewports | ( | selected:Option< bool > | ) | const -> &meshlib::ViewportProperty_MR_Color |
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().
| auto meshlib::ObjectMesh::get_global_alpha | ( | viewportId:Option<&meshlib::ViewportId > | ) | const -> &core::ffi::c_uchar |
returns global transparency alpha of object in given viewport Generated from method MR::ObjectMesh::getGlobalAlpha.
Calls MR_ObjectMesh_getGlobalAlpha().
| auto meshlib::ObjectMesh::get_global_alpha_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_unsigned_char |
returns global transparency alpha of object in all viewports Generated from method MR::ObjectMesh::getGlobalAlphaForAllViewports.
Calls MR_ObjectMesh_getGlobalAlphaForAllViewports().
| auto meshlib::ObjectMesh::get_info_lines | ( | ) | const -> meshlib::Owned< meshlib::std_vector_std_string > |
Generated from method MR::ObjectMesh::getInfoLines.
Calls MR_ObjectMesh_getInfoLines().
| auto meshlib::ObjectMesh::get_model_hash | ( | ) | const -> usize |
Generated from method MR::ObjectMesh::getModelHash.
Calls MR_ObjectMesh_getModelHash().
| auto meshlib::ObjectMesh::get_point_size | ( | ) | const -> f32 |
Generated from method MR::ObjectMesh::getPointSize.
Calls MR_ObjectMesh_getPointSize().
| auto meshlib::ObjectMesh::get_points_color | ( | id:Option<&meshlib::ViewportId > | ) | const -> &meshlib::Color |
Generated from method MR::ObjectMesh::getPointsColor.
Calls MR_ObjectMesh_getPointsColor().
| auto meshlib::ObjectMesh::get_points_colors_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_Color |
Generated from method MR::ObjectMesh::getPointsColorsForAllViewports.
Calls MR_ObjectMesh_getPointsColorsForAllViewports().
| auto meshlib::ObjectMesh::get_redraw_flag | ( | viewportMask:&meshlib::ViewportMask | ) | const -> bool |
Generated from method MR::ObjectMesh::getRedrawFlag.
Calls MR_ObjectMesh_getRedrawFlag().
| auto meshlib::ObjectMesh::get_selected_edges | ( | ) | const -> &meshlib::UndirectedEdgeBitSet |
Generated from method MR::ObjectMesh::getSelectedEdges.
Calls MR_ObjectMesh_getSelectedEdges().
| auto meshlib::ObjectMesh::get_selected_edges_color | ( | id:Option<&meshlib::ViewportId > | ) | const -> &meshlib::Color |
returns colors of selected edges Generated from method MR::ObjectMesh::getSelectedEdgesColor.
Calls MR_ObjectMesh_getSelectedEdgesColor().
| auto meshlib::ObjectMesh::get_selected_edges_colors_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_Color |
Generated from method MR::ObjectMesh::getSelectedEdgesColorsForAllViewports.
Calls MR_ObjectMesh_getSelectedEdgesColorsForAllViewports().
| auto meshlib::ObjectMesh::get_selected_faces | ( | ) | const -> &meshlib::FaceBitSet |
Generated from method MR::ObjectMesh::getSelectedFaces.
Calls MR_ObjectMesh_getSelectedFaces().
| auto meshlib::ObjectMesh::get_selected_faces_color | ( | id:Option<&meshlib::ViewportId > | ) | const -> &meshlib::Color |
returns colors of selected triangles Generated from method MR::ObjectMesh::getSelectedFacesColor.
Calls MR_ObjectMesh_getSelectedFacesColor().
| auto meshlib::ObjectMesh::get_selected_faces_colors_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_Color |
Generated from method MR::ObjectMesh::getSelectedFacesColorsForAllViewports.
Calls MR_ObjectMesh_getSelectedFacesColorsForAllViewports().
| auto meshlib::ObjectMesh::get_shared_ptr | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object > |
returns this Object as shared_ptr finds it among its parent's recognized children Generated from method MR::ObjectMesh::getSharedPtr.
Calls MR_ObjectMesh_getSharedPtr().
| auto meshlib::ObjectMesh::get_shininess | ( | ) | const -> f32 |
returns the current shininess visual value Generated from method MR::ObjectMesh::getShininess.
Calls MR_ObjectMesh_getShininess().
| auto meshlib::ObjectMesh::get_specular_strength | ( | ) | const -> f32 |
returns intensity of reflections Generated from method MR::ObjectMesh::getSpecularStrength.
Calls MR_ObjectMesh_getSpecularStrength().
| auto meshlib::ObjectMesh::get_texture | ( | ) | const -> &meshlib::MeshTexture |
returns first texture in the vector. If there is no textures, returns empty texture Generated from method MR::ObjectMesh::getTexture.
Calls MR_ObjectMesh_getTexture().
| auto meshlib::ObjectMesh::get_texture_per_face | ( | ) | const -> &meshlib::TexturePerFace |
Generated from method MR::ObjectMesh::getTexturePerFace.
Calls MR_ObjectMesh_getTexturePerFace().
| auto meshlib::ObjectMesh::get_textures | ( | ) | const -> &meshlib::Vector_MR_MeshTexture_MR_TextureId |
Generated from method MR::ObjectMesh::getTextures.
Calls MR_ObjectMesh_getTextures().
| auto meshlib::ObjectMesh::get_uv_coords | ( | ) | const -> &meshlib::VertCoords2 |
Generated from method MR::ObjectMesh::getUVCoords.
Calls MR_ObjectMesh_getUVCoords().
| auto meshlib::ObjectMesh::get_verts_color_map | ( | ) | const -> &meshlib::VertColors |
returns per-vertex colors of the object Generated from method MR::ObjectMesh::getVertsColorMap.
Calls MR_ObjectMesh_getVertsColorMap().
| auto meshlib::ObjectMesh::get_visualize_property | ( | type:&meshlib::AnyVisualizeMaskEnum | , |
| viewportMask:&meshlib::ViewportMask | ) const -> bool |
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().
| auto meshlib::ObjectMesh::get_visualize_property_mask | ( | type:&meshlib::AnyVisualizeMaskEnum | ) | const -> &meshlib::ViewportMask |
returns mask of viewports where given property is set Generated from method MR::ObjectMesh::getVisualizePropertyMask.
Calls MR_ObjectMesh_getVisualizePropertyMask().
| auto meshlib::ObjectMesh::get_world_box | ( | _1:Option<&meshlib::ViewportId > | ) | const -> meshlib::Box3f |
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().
| auto meshlib::ObjectMesh::get_world_tree_box | ( | _1:Option<&meshlib::ViewportId > | ) | const -> meshlib::Box3f |
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().
| auto meshlib::ObjectMesh::global_clipped_by_plane | ( | viewportMask:Option<&meshlib::ViewportMask > | ) | const -> bool |
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().
| auto meshlib::ObjectMesh::global_clipped_by_plane_mask | ( | ) | const -> meshlib::Owned< meshlib::ViewportMask > |
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().
| auto meshlib::ObjectMesh::global_visibility | ( | viewportMask:Option<&meshlib::ViewportMask > | ) | const -> bool |
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().
| auto meshlib::ObjectMesh::global_visibility_mask | ( | ) | const -> meshlib::Owned< meshlib::ViewportMask > |
returns all viewports where this object is visible together with all its parents Generated from method MR::ObjectMesh::globalVisibilityMask.
Calls MR_ObjectMesh_globalVisibilityMask().
| auto meshlib::ObjectMesh::has_ancillary_texture | ( | ) | const -> bool |
Generated from method MR::ObjectMesh::hasAncillaryTexture.
Calls MR_ObjectMesh_hasAncillaryTexture().
| auto meshlib::ObjectMesh::has_model | ( | ) | const -> bool |
Generated from method MR::ObjectMesh::hasModel.
Calls MR_ObjectMesh_hasModel().
| auto meshlib::ObjectMesh::has_visual_representation | ( | ) | const -> bool |
mesh object can be seen if the mesh has at least one edge Generated from method MR::ObjectMesh::hasVisualRepresentation.
Calls MR_ObjectMesh_hasVisualRepresentation().
| auto meshlib::ObjectMesh::heap_bytes | ( | ) | const -> usize |
returns the amount of memory this object occupies on heap Generated from method MR::ObjectMesh::heapBytes.
Calls MR_ObjectMesh_heapBytes().
| void meshlib::ObjectMesh::invalidate_metrics_cache | ( | mask:core::ffi::c_uint | ) |
invalidates same caches with mesh metrics (area, volume, ...) as by setDirtyFlags( mask ) Generated from method MR::ObjectMesh::invalidateMetricsCache.
Calls MR_ObjectMesh_invalidateMetricsCache().
| auto meshlib::ObjectMesh::is_ancestor | ( | ancestor:Option<&meshlib::Object > | ) | const -> bool |
return true if given object is ancestor of this one, false otherwise Generated from method MR::ObjectMesh::isAncestor.
Calls MR_ObjectMesh_isAncestor().
| auto meshlib::ObjectMesh::is_ancillary | ( | ) | const -> bool |
Generated from method MR::ObjectMesh::isAncillary.
Calls MR_ObjectMesh_isAncillary().
| auto meshlib::ObjectMesh::is_global_ancillary | ( | ) | const -> bool |
returns true if the object or any of its ancestors are ancillary Generated from method MR::ObjectMesh::isGlobalAncillary.
Calls MR_ObjectMesh_isGlobalAncillary().
| auto meshlib::ObjectMesh::is_locked | ( | ) | const -> bool |
object properties lock for UI Generated from method MR::ObjectMesh::isLocked.
Calls MR_ObjectMesh_isLocked().
| auto meshlib::ObjectMesh::is_mesh_closed | ( | ) | const -> bool |
returns cached information whether the mesh is closed Generated from method MR::ObjectMesh::isMeshClosed.
Calls MR_ObjectMesh_isMeshClosed().
| auto meshlib::ObjectMesh::is_parent_locked | ( | ) | const -> bool |
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().
| auto meshlib::ObjectMesh::is_pickable | ( | viewportMask:Option<&meshlib::ViewportMask > | ) | const -> bool |
whether the object can be picked (by mouse) in any of given viewports Generated from method MR::ObjectMesh::isPickable.
Calls MR_ObjectMesh_isPickable().
| auto meshlib::ObjectMesh::is_selected | ( | ) | const -> bool |
Generated from method MR::ObjectMesh::isSelected.
Calls MR_ObjectMesh_isSelected().
| auto meshlib::ObjectMesh::is_visible | ( | viewportMask:Option<&meshlib::ViewportMask > | ) | const -> bool |
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().
| auto meshlib::ObjectMesh::mesh | ( | ) | const -> &meshlib::std_shared_ptr_const_MR_Mesh |
Calls MR_ObjectMesh_mesh().
| auto meshlib::ObjectMesh::mesh_part | ( | ) | const -> meshlib::Owned< meshlib::MeshPart > |
Calls MR_ObjectMesh_meshPart().
| auto meshlib::ObjectMesh::mesh_ptr | ( | ) | const -> Option<&meshlib::Mesh > |
returns the mesh of this object, or nullptr if it is not set Generated from method MR::ObjectMesh::meshPtr.
Calls MR_ObjectMesh_meshPtr().
| auto meshlib::ObjectMesh::name | ( | ) | const -> &meshlib::std_string |
Generated from method MR::ObjectMesh::name.
Calls MR_ObjectMesh_name().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_ObjectMesh_DefaultConstruct().
| auto meshlib::ObjectMesh::num_components | ( | ) | const -> usize |
returns cached information about the number of components in the mesh Generated from method MR::ObjectMesh::numComponents.
Calls MR_ObjectMesh_numComponents().
| auto meshlib::ObjectMesh::num_crease_edges | ( | ) | const -> usize |
returns cached information about the number of crease undirected edges in the mesh Generated from method MR::ObjectMesh::numCreaseEdges.
Calls MR_ObjectMesh_numCreaseEdges().
| auto meshlib::ObjectMesh::num_handles | ( | ) | const -> usize |
returns cached information about the number of handles in the mesh Generated from method MR::ObjectMesh::numHandles.
Calls MR_ObjectMesh_numHandles().
| auto meshlib::ObjectMesh::num_holes | ( | ) | const -> usize |
returns cached information about the number of holes in the mesh Generated from method MR::ObjectMesh::numHoles.
Calls MR_ObjectMesh_numHoles().
| auto meshlib::ObjectMesh::num_selected_edges | ( | ) | const -> usize |
returns cached information about the number of selected undirected edges in the mesh Generated from method MR::ObjectMesh::numSelectedEdges.
Calls MR_ObjectMesh_numSelectedEdges().
| auto meshlib::ObjectMesh::num_selected_faces | ( | ) | const -> usize |
returns cached information about the number of selected faces in the mesh Generated from method MR::ObjectMesh::numSelectedFaces.
Calls MR_ObjectMesh_numSelectedFaces().
| auto meshlib::ObjectMesh::num_undirected_edges | ( | ) | const -> usize |
returns cached information about the number of undirected edges in the mesh Generated from method MR::ObjectMesh::numUndirectedEdges.
Calls MR_ObjectMesh_numUndirectedEdges().
| void meshlib::ObjectMesh::remove_all_children | ( | ) |
detaches all recognized children from this, keeping all unrecognized ones Generated from method MR::ObjectMesh::removeAllChildren.
Calls MR_ObjectMesh_removeAllChildren().
| auto meshlib::ObjectMesh::remove_tag | ( | tag:& | str | ) | -> bool |
removes tag from the object's tag storage additionally calls ObjectTagManager::tagRemovedSignal Generated from method MR::ObjectMesh::removeTag.
Calls MR_ObjectMesh_removeTag().
| auto meshlib::ObjectMesh::render | ( | _1:&meshlib::ModelRenderParams | ) | const -> bool |
draws this object for visualization Returns true if something was drawn. Generated from method MR::ObjectMesh::render.
Calls MR_ObjectMesh_render().
| void meshlib::ObjectMesh::render_for_picker | ( | _1:&meshlib::ModelBaseRenderParams | , |
| _2:core::ffi::c_uint | ) const |
draws this object for picking Generated from method MR::ObjectMesh::renderForPicker.
Calls MR_ObjectMesh_renderForPicker().
| void meshlib::ObjectMesh::render_ui | ( | params:&meshlib::UiRenderParams | ) | const |
draws this object for 2d UI Generated from method MR::ObjectMesh::renderUi.
Calls MR_ObjectMesh_renderUi().
| void meshlib::ObjectMesh::reset_colors | ( | ) |
reset all object colors to their default values from the current theme Generated from method MR::ObjectMesh::resetColors.
Calls MR_ObjectMesh_resetColors().
| void meshlib::ObjectMesh::reset_dirty | ( | ) | const |
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().
| void meshlib::ObjectMesh::reset_dirty_except_mask | ( | mask:core::ffi::c_uint | ) | const |
reset dirty flags without some specific bits (useful for lazy normals update) Generated from method MR::ObjectMesh::resetDirtyExceptMask.
Calls MR_ObjectMesh_resetDirtyExceptMask().
| void meshlib::ObjectMesh::reset_front_color | ( | ) |
reset basic object colors to their default values from the current theme Generated from method MR::ObjectMesh::resetFrontColor.
Calls MR_ObjectMesh_resetFrontColor().
| void meshlib::ObjectMesh::reset_redraw_flag | ( | ) | const |
Generated from method MR::ObjectMesh::resetRedrawFlag.
Calls MR_ObjectMesh_resetRedrawFlag().
| void meshlib::ObjectMesh::reset_xf | ( | id:Option<&meshlib::ViewportId > | ) |
forgets specific transform in given viewport (or forgets all specific transforms for {} input) Generated from method MR::ObjectMesh::resetXf.
Calls MR_ObjectMesh_resetXf().
| auto meshlib::ObjectMesh::same_models | ( | other:&meshlib::Object | ) | const -> bool |
Generated from method MR::ObjectMesh::sameModels.
Calls MR_ObjectMesh_sameModels().
| auto meshlib::ObjectMesh::select | ( | on:bool | ) | -> bool |
selects the object, returns true if value changed, otherwise returns false Generated from method MR::ObjectMesh::select.
Calls MR_ObjectMesh_select().
| void meshlib::ObjectMesh::select_edges | ( | newSelection:&meshlib::UndirectedEdgeBitSet | ) |
Generated from method MR::ObjectMesh::selectEdges.
Calls MR_ObjectMesh_selectEdges().
| void meshlib::ObjectMesh::select_faces | ( | newSelection:&meshlib::FaceBitSet | ) |
Generated from method MR::ObjectMesh::selectFaces.
Calls MR_ObjectMesh_selectFaces().
| auto meshlib::ObjectMesh::selected_area | ( | ) | const -> f64 |
returns cached area of selected triangles Generated from method MR::ObjectMesh::selectedArea.
Calls MR_ObjectMesh_selectedArea().
| auto meshlib::ObjectMesh::serialize_format | ( | ) | const -> Option<&core::ffi::c_char > |
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().
| void meshlib::ObjectMesh::set_all_visualize_properties | ( | properties:&meshlib::std_vector_MR_ViewportMask | ) |
set all visualize properties masks Generated from method MR::ObjectMesh::setAllVisualizeProperties.
Calls MR_ObjectMesh_setAllVisualizeProperties().
| void meshlib::ObjectMesh::set_ambient_strength | ( | ambientStrength:f32 | ) |
sets intensity of non-directional light Generated from method MR::ObjectMesh::setAmbientStrength.
Calls MR_ObjectMesh_setAmbientStrength().
| void meshlib::ObjectMesh::set_ancillary | ( | ancillary:bool | ) |
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().
| void meshlib::ObjectMesh::set_ancillary_texture | ( | texture:&meshlib::MeshTexture | ) |
Generated from method MR::ObjectMesh::setAncillaryTexture.
Calls MR_ObjectMesh_setAncillaryTexture().
| void meshlib::ObjectMesh::set_ancillary_uv_coords | ( | uvCoordinates:&meshlib::VertCoords2 | ) |
Generated from method MR::ObjectMesh::setAncillaryUVCoords.
Calls MR_ObjectMesh_setAncillaryUVCoords().
| void meshlib::ObjectMesh::set_back_color | ( | color:&meshlib::Color | , |
| viewportId:Option<&meshlib::ViewportId > | ) |
sets backward color of object in given viewport Generated from method MR::ObjectMesh::setBackColor.
Calls MR_ObjectMesh_setBackColor().
| void meshlib::ObjectMesh::set_back_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | ) |
sets backward color of object in all viewports Generated from method MR::ObjectMesh::setBackColorsForAllViewports.
Calls MR_ObjectMesh_setBackColorsForAllViewports().
| void meshlib::ObjectMesh::set_borders_color | ( | color:&meshlib::Color | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::ObjectMesh::setBordersColor.
Calls MR_ObjectMesh_setBordersColor().
| void meshlib::ObjectMesh::set_borders_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | ) |
Generated from method MR::ObjectMesh::setBordersColorsForAllViewports.
Calls MR_ObjectMesh_setBordersColorsForAllViewports().
| void meshlib::ObjectMesh::set_coloring_type | ( | coloringType:meshlib::ColoringType | ) |
sets coloring mode of the object with given argument Generated from method MR::ObjectMesh::setColoringType.
Calls MR_ObjectMesh_setColoringType().
| void meshlib::ObjectMesh::set_creases | ( | creases:&meshlib::UndirectedEdgeBitSet | ) |
Generated from method MR::ObjectMesh::setCreases.
Calls MR_ObjectMesh_setCreases().
| void meshlib::ObjectMesh::set_data | ( | data:&mut meshlib::ObjectMeshData | ) |
sets whole new ObjectMeshData Generated from method MR::ObjectMesh::setData.
Calls MR_ObjectMesh_setData().
| void meshlib::ObjectMesh::set_dirty_flags | ( | mask:core::ffi::c_uint | , |
| invalidateCaches:Option< bool > | ) |
Generated from method MR::ObjectMesh::setDirtyFlags.
Calls MR_ObjectMesh_setDirtyFlags().
| void meshlib::ObjectMesh::set_dirty_flags_fast | ( | mask:core::ffi::c_uint | ) |
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().
| void meshlib::ObjectMesh::set_edge_width | ( | edgeWidth:f32 | ) |
Generated from method MR::ObjectMesh::setEdgeWidth.
Calls MR_ObjectMesh_setEdgeWidth().
| void meshlib::ObjectMesh::set_edges_color | ( | color:&meshlib::Color | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::ObjectMesh::setEdgesColor.
Calls MR_ObjectMesh_setEdgesColor().
| void meshlib::ObjectMesh::set_edges_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | ) |
Generated from method MR::ObjectMesh::setEdgesColorsForAllViewports.
Calls MR_ObjectMesh_setEdgesColorsForAllViewports().
| void meshlib::ObjectMesh::set_faces_color_map | ( | facesColorMap:&meshlib::FaceColors | ) |
Generated from method MR::ObjectMesh::setFacesColorMap.
Calls MR_ObjectMesh_setFacesColorMap().
| void meshlib::ObjectMesh::set_flat_shading | ( | on:bool | ) |
sets flat (true) or smooth (false) shading Generated from method MR::ObjectMesh::setFlatShading.
Calls MR_ObjectMesh_setFlatShading().
| void meshlib::ObjectMesh::set_front_color | ( | color:&meshlib::Color | , |
| selected:bool | , | ||
| viewportId:Option<&meshlib::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().
| void meshlib::ObjectMesh::set_front_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | , |
| selected:Option< bool > | ) |
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().
| void meshlib::ObjectMesh::set_global_alpha | ( | alpha:core::ffi::c_uchar | , |
| viewportId:Option<&meshlib::ViewportId > | ) |
sets global transparency alpha of object in given viewport Generated from method MR::ObjectMesh::setGlobalAlpha.
Calls MR_ObjectMesh_setGlobalAlpha().
| void meshlib::ObjectMesh::set_global_alpha_for_all_viewports | ( | val:&meshlib::ViewportProperty_unsigned_char | ) |
sets global transparency alpha of object in all viewports Generated from method MR::ObjectMesh::setGlobalAlphaForAllViewports.
Calls MR_ObjectMesh_setGlobalAlphaForAllViewports().
| void meshlib::ObjectMesh::set_global_clipped_by_plane | ( | on:bool | , |
| viewportMask:Option<&meshlib::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().
| void meshlib::ObjectMesh::set_global_visibility | ( | on:bool | , |
| viewportMask:Option<&meshlib::ViewportMask > | ) |
if true sets all predecessors visible, otherwise sets this object invisible Generated from method MR::ObjectMesh::setGlobalVisibility.
Calls MR_ObjectMesh_setGlobalVisibility().
| void meshlib::ObjectMesh::set_locked | ( | on:bool | ) |
Generated from method MR::ObjectMesh::setLocked.
Calls MR_ObjectMesh_setLocked().
| void meshlib::ObjectMesh::set_mesh | ( | mesh:&meshlib::std_shared_ptr_MR_Mesh | ) |
sets given mesh to this, resets selection and creases Generated from method MR::ObjectMesh::setMesh.
Calls MR_ObjectMesh_setMesh().
| void meshlib::ObjectMesh::set_name | ( | name:& | str | ) |
Generated from method MR::ObjectMesh::setName.
Calls MR_ObjectMesh_setName().
| void meshlib::ObjectMesh::set_parent_locked | ( | lock:bool | ) |
Generated from method MR::ObjectMesh::setParentLocked.
Calls MR_ObjectMesh_setParentLocked().
| void meshlib::ObjectMesh::set_pickable | ( | on:bool | , |
| viewportMask:Option<&meshlib::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().
| void meshlib::ObjectMesh::set_point_size | ( | size:f32 | ) |
Generated from method MR::ObjectMesh::setPointSize.
Calls MR_ObjectMesh_setPointSize().
| void meshlib::ObjectMesh::set_points_color | ( | color:&meshlib::Color | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::ObjectMesh::setPointsColor.
Calls MR_ObjectMesh_setPointsColor().
| void meshlib::ObjectMesh::set_points_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | ) |
Generated from method MR::ObjectMesh::setPointsColorsForAllViewports.
Calls MR_ObjectMesh_setPointsColorsForAllViewports().
| void meshlib::ObjectMesh::set_selected_edges_color | ( | color:&meshlib::Color | , |
| id:Option<&meshlib::ViewportId > | ) |
sets colors of selected edges Generated from method MR::ObjectMesh::setSelectedEdgesColor.
Calls MR_ObjectMesh_setSelectedEdgesColor().
| void meshlib::ObjectMesh::set_selected_edges_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | ) |
Generated from method MR::ObjectMesh::setSelectedEdgesColorsForAllViewports.
Calls MR_ObjectMesh_setSelectedEdgesColorsForAllViewports().
| void meshlib::ObjectMesh::set_selected_faces_color | ( | color:&meshlib::Color | , |
| id:Option<&meshlib::ViewportId > | ) |
sets colors of selected triangles Generated from method MR::ObjectMesh::setSelectedFacesColor.
Calls MR_ObjectMesh_setSelectedFacesColor().
| void meshlib::ObjectMesh::set_selected_faces_colors_for_all_viewports | ( | val:&meshlib::ViewportProperty_MR_Color | ) |
Generated from method MR::ObjectMesh::setSelectedFacesColorsForAllViewports.
Calls MR_ObjectMesh_setSelectedFacesColorsForAllViewports().
| void meshlib::ObjectMesh::set_serialize_format | ( | newFormat:Option<&core::ffi::c_char > | ) |
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().
| void meshlib::ObjectMesh::set_shininess | ( | shininess:f32 | ) |
sets shininess visual value of the object with given argument Generated from method MR::ObjectMesh::setShininess.
Calls MR_ObjectMesh_setShininess().
| void meshlib::ObjectMesh::set_specular_strength | ( | specularStrength:f32 | ) |
sets intensity of reflections Generated from method MR::ObjectMesh::setSpecularStrength.
Calls MR_ObjectMesh_setSpecularStrength().
| void meshlib::ObjectMesh::set_texture_per_face | ( | texturePerFace:&meshlib::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().
| void meshlib::ObjectMesh::set_textures | ( | texture:&meshlib::Vector_MR_MeshTexture_MR_TextureId | ) |
Generated from method MR::ObjectMesh::setTextures.
Calls MR_ObjectMesh_setTextures().
| void meshlib::ObjectMesh::set_use_default_scene_properties_on_deserialization | ( | useDefaultScenePropertiesOnDeserialization:bool | ) |
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().
| void meshlib::ObjectMesh::set_uv_coords | ( | uvCoordinates:&meshlib::VertCoords2 | ) |
Generated from method MR::ObjectMesh::setUVCoords.
Calls MR_ObjectMesh_setUVCoords().
| void meshlib::ObjectMesh::set_verts_color_map | ( | vertsColorMap:&meshlib::VertColors | ) |
sets per-vertex colors of the object Generated from method MR::ObjectMesh::setVertsColorMap.
Calls MR_ObjectMesh_setVertsColorMap().
| void meshlib::ObjectMesh::set_visibility_mask | ( | viewportMask:&meshlib::ViewportMask | ) |
specifies object visibility as bitmask of viewports Generated from method MR::ObjectMesh::setVisibilityMask.
Calls MR_ObjectMesh_setVisibilityMask().
| void meshlib::ObjectMesh::set_visible | ( | on:bool | , |
| viewportMask:Option<&meshlib::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().
| void meshlib::ObjectMesh::set_visualize_property | ( | value:bool | , |
| type:&meshlib::AnyVisualizeMaskEnum | , | ||
| viewportMask:&meshlib::ViewportMask | ) |
set visual property in all viewports specified by the mask Generated from method MR::ObjectMesh::setVisualizeProperty.
Calls MR_ObjectMesh_setVisualizeProperty().
| void meshlib::ObjectMesh::set_visualize_property_mask | ( | type:&meshlib::AnyVisualizeMaskEnum | , |
| viewportMask:&meshlib::ViewportMask | ) |
set visual property mask Generated from method MR::ObjectMesh::setVisualizePropertyMask.
Calls MR_ObjectMesh_setVisualizePropertyMask().
| void meshlib::ObjectMesh::set_world_xf | ( | xf:&meshlib::AffineXf3f | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::ObjectMesh::setWorldXf.
Calls MR_ObjectMesh_setWorldXf().
| void meshlib::ObjectMesh::set_xf | ( | xf:&meshlib::AffineXf3f | , |
| id:Option<&meshlib::ViewportId > | ) |
Generated from method MR::ObjectMesh::setXf.
Calls MR_ObjectMesh_setXf().
| void meshlib::ObjectMesh::set_xfs_for_all_viewports | ( | xf:&meshlib::ViewportProperty_MR_AffineXf3f | ) |
modifies xfs for all viewports at once Generated from method MR::ObjectMesh::setXfsForAllViewports.
Calls MR_ObjectMesh_setXfsForAllViewports().
| auto meshlib::ObjectMesh::shallow_clone | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object > |
Generated from method MR::ObjectMesh::shallowClone.
Calls MR_ObjectMesh_shallowClone().
| auto meshlib::ObjectMesh::shallow_clone_tree | ( | ) | const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object > |
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().
| void meshlib::ObjectMesh::sort_children | ( | ) |
sort recognized children by name Generated from method MR::ObjectMesh::sortChildren.
Calls MR_ObjectMesh_sortChildren().
|
static |
Generated from method MR::ObjectMesh::StaticClassName.
Calls MR_ObjectMesh_StaticClassName().
|
static |
Generated from method MR::ObjectMesh::StaticClassNameInPlural.
Calls MR_ObjectMesh_StaticClassNameInPlural().
|
static |
Static downcast from the base class MR::Object.
Calls MR_ObjectMesh_StaticDowncastFrom_MR_Object(). Undefined behavior if the object isn't actually a ObjectMesh.
|
static |
Static downcast from the base class MR::ObjectChildrenHolder.
Calls MR_ObjectMesh_StaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a ObjectMesh.
|
static |
Static downcast from the base class MR::ObjectChildrenHolder.
Calls MR_ObjectMesh_MutableStaticDowncastFrom_MR_ObjectChildrenHolder(). Undefined behavior if the object isn't actually a ObjectMesh.
|
static |
Static downcast from the base class MR::ObjectMeshHolder.
Calls MR_ObjectMesh_StaticDowncastFrom_MR_ObjectMeshHolder(). Undefined behavior if the object isn't actually a ObjectMesh.
|
static |
Static downcast from the base class MR::ObjectMeshHolder.
Calls MR_ObjectMesh_MutableStaticDowncastFrom_MR_ObjectMeshHolder(). Undefined behavior if the object isn't actually a ObjectMesh.
|
static |
Static downcast from the base class MR::Object.
Calls MR_ObjectMesh_MutableStaticDowncastFrom_MR_Object(). Undefined behavior if the object isn't actually a ObjectMesh.
|
static |
Static downcast from the base class MR::VisualObject.
Calls MR_ObjectMesh_StaticDowncastFrom_MR_VisualObject(). Undefined behavior if the object isn't actually a ObjectMesh.
|
static |
Static downcast from the base class MR::VisualObject.
Calls MR_ObjectMesh_MutableStaticDowncastFrom_MR_VisualObject(). Undefined behavior if the object isn't actually a ObjectMesh.
|
static |
Generated from method MR::ObjectMesh::StaticTypeName.
Calls MR_ObjectMesh_StaticTypeName().
| auto meshlib::ObjectMesh::supports_visualize_property | ( | type:&meshlib::AnyVisualizeMaskEnum | ) | const -> bool |
Generated from method MR::ObjectMesh::supportsVisualizeProperty.
Calls MR_ObjectMesh_supportsVisualizeProperty().
| void meshlib::ObjectMesh::swap | ( | other:&mut meshlib::Object | ) |
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().
| auto meshlib::ObjectMesh::tags | ( | ) | const -> &meshlib::std_set_std_string |
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().
| void meshlib::ObjectMesh::toggle_visualize_property | ( | type:&meshlib::AnyVisualizeMaskEnum | , |
| viewportMask:&meshlib::ViewportMask | ) |
toggle visual property in all viewports specified by the mask Generated from method MR::ObjectMesh::toggleVisualizeProperty.
Calls MR_ObjectMesh_toggleVisualizeProperty().
| auto meshlib::ObjectMesh::total_area | ( | ) | const -> f64 |
returns cached summed area of mesh triangles Generated from method MR::ObjectMesh::totalArea.
Calls MR_ObjectMesh_totalArea().
| auto meshlib::ObjectMesh::type_name | ( | ) | const -> Option<&core::ffi::c_char > |
Generated from method MR::ObjectMesh::typeName.
Calls MR_ObjectMesh_typeName().
| auto meshlib::ObjectMesh::upcast_to_object | ( | ) | const -> &meshlib::Object |
Upcasts to the base class MR::Object.
Calls MR_ObjectMesh_UpcastTo_MR_Object().
| auto meshlib::ObjectMesh::upcast_to_object_children_holder | ( | ) | const -> &meshlib::ObjectChildrenHolder |
Upcasts to the base class MR::ObjectChildrenHolder.
Calls MR_ObjectMesh_UpcastTo_MR_ObjectChildrenHolder().
| auto meshlib::ObjectMesh::upcast_to_object_children_holder_mut | ( | ) | -> &mut meshlib::ObjectChildrenHolder |
Upcasts to the base class MR::ObjectChildrenHolder.
Calls MR_ObjectMesh_MutableUpcastTo_MR_ObjectChildrenHolder().
| auto meshlib::ObjectMesh::upcast_to_object_mesh_holder | ( | ) | const -> &meshlib::ObjectMeshHolder |
Upcasts to the base class MR::ObjectMeshHolder.
Calls MR_ObjectMesh_UpcastTo_MR_ObjectMeshHolder().
| auto meshlib::ObjectMesh::upcast_to_object_mesh_holder_mut | ( | ) | -> &mut meshlib::ObjectMeshHolder |
Upcasts to the base class MR::ObjectMeshHolder.
Calls MR_ObjectMesh_MutableUpcastTo_MR_ObjectMeshHolder().
| auto meshlib::ObjectMesh::upcast_to_object_mut | ( | ) | -> &mut meshlib::Object |
Upcasts to the base class MR::Object.
Calls MR_ObjectMesh_MutableUpcastTo_MR_Object().
| auto meshlib::ObjectMesh::upcast_to_visual_object | ( | ) | const -> &meshlib::VisualObject |
Upcasts to the base class MR::VisualObject.
Calls MR_ObjectMesh_UpcastTo_MR_VisualObject().
| auto meshlib::ObjectMesh::upcast_to_visual_object_mut | ( | ) | -> &mut meshlib::VisualObject |
Upcasts to the base class MR::VisualObject.
Calls MR_ObjectMesh_MutableUpcastTo_MR_VisualObject().
| void meshlib::ObjectMesh::update_ancillary_uv_coords | ( | updated:&mut meshlib::VertCoords2 | ) |
Generated from method MR::ObjectMesh::updateAncillaryUVCoords.
Calls MR_ObjectMesh_updateAncillaryUVCoords().
| void meshlib::ObjectMesh::update_data | ( | data:&mut meshlib::ObjectMeshData | ) |
swaps whole ObjectMeshData with given argument Generated from method MR::ObjectMesh::updateData.
Calls MR_ObjectMesh_updateData().
| void meshlib::ObjectMesh::update_faces_color_map | ( | updated:&mut meshlib::FaceColors | ) |
Generated from method MR::ObjectMesh::updateFacesColorMap.
Calls MR_ObjectMesh_updateFacesColorMap().
| auto meshlib::ObjectMesh::update_mesh | ( | mesh:&meshlib::std_shared_ptr_MR_Mesh | ) | -> meshlib::Owned< meshlib::std_shared_ptr_MR_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().
| void meshlib::ObjectMesh::update_texture_per_face | ( | texturePerFace:&mut meshlib::TexturePerFace | ) |
Generated from method MR::ObjectMesh::updateTexturePerFace.
Calls MR_ObjectMesh_updateTexturePerFace().
| void meshlib::ObjectMesh::update_textures | ( | updated:&mut meshlib::Vector_MR_MeshTexture_MR_TextureId | ) |
Generated from method MR::ObjectMesh::updateTextures.
Calls MR_ObjectMesh_updateTextures().
| void meshlib::ObjectMesh::update_uv_coords | ( | updated:&mut meshlib::VertCoords2 | ) |
Generated from method MR::ObjectMesh::updateUVCoords.
Calls MR_ObjectMesh_updateUVCoords().
| void meshlib::ObjectMesh::update_verts_color_map | ( | vertsColorMap:&mut meshlib::VertColors | ) |
swaps per-vertex colors of the object with given argument Generated from method MR::ObjectMesh::updateVertsColorMap.
Calls MR_ObjectMesh_updateVertsColorMap().
| auto meshlib::ObjectMesh::use_default_scene_properties_on_deserialization | ( | ) | const -> bool |
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().
| auto meshlib::ObjectMesh::var_mesh | ( | ) | -> &meshlib::std_shared_ptr_MR_Mesh |
returns variable mesh, if const mesh is needed use meshPtr() instead Generated from method MR::ObjectMesh::varMesh.
Calls MR_ObjectMesh_varMesh().
| auto meshlib::ObjectMesh::var_mesh_ptr | ( | ) | -> Option<&mut meshlib::Mesh > |
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().
| auto meshlib::ObjectMesh::visibility_mask | ( | ) | const -> meshlib::Owned< meshlib::ViewportMask > |
gets object visibility as bitmask of viewports Generated from method MR::ObjectMesh::visibilityMask.
Calls MR_ObjectMesh_visibilityMask().
| auto meshlib::ObjectMesh::volume | ( | ) | const -> f64 |
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().
| auto meshlib::ObjectMesh::world_ray_intersection | ( | worldRay:&meshlib::Line3f | , |
| region:Option<&meshlib::FaceBitSet > | ) const -> meshlib::Owned< meshlib::MeshIntersectionResult > |
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().
| auto meshlib::ObjectMesh::world_xf | ( | id:Option<&meshlib::ViewportId > | , |
| isDef:Option<&mut bool > | ) const -> meshlib::AffineXf3f |
this space to world space transformation for default or specific viewport
| isDef | receives true if the object has default transformation in this viewport (same as worldXf() returns) Generated from method MR::ObjectMesh::worldXf. |
Calls MR_ObjectMesh_worldXf().
| auto meshlib::ObjectMesh::xf | ( | id:Option<&meshlib::ViewportId > | , |
| isDef:Option<&mut bool > | ) const -> &meshlib::AffineXf3f |
this space to parent space transformation (to world space if no parent) for default or given viewport
| isDef | receives true if the object has default transformation in this viewport (same as xf() returns) Generated from method MR::ObjectMesh::xf. |
Calls MR_ObjectMesh_xf().
| auto meshlib::ObjectMesh::xfs_for_all_viewports | ( | ) | const -> &meshlib::ViewportProperty_MR_AffineXf3f |
returns xfs for all viewports, combined into a single object Generated from method MR::ObjectMesh::xfsForAllViewports.
Calls MR_ObjectMesh_xfsForAllViewports().