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

Public Member Functions

auto assign_from_another (_other:meshlib::Owned< meshlib::ObjectMesh >) -> &mut meshlib::ObjectMesh
auto type_name () const -> Option<&core::ffi::c_char >
auto class_name () const -> meshlib::Owned< meshlib::std_string >
auto class_name_in_plural () const -> meshlib::Owned< meshlib::std_string >
auto var_mesh () -> &meshlib::std_shared_ptr_MR_Mesh
void set_mesh (mesh:&meshlib::std_shared_ptr_MR_Mesh)
auto update_mesh (mesh:&meshlib::std_shared_ptr_MR_Mesh) -> meshlib::Owned< meshlib::std_shared_ptr_MR_Mesh >
auto get_info_lines () const -> meshlib::Owned< meshlib::std_vector_std_string >
auto clone () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto shallow_clone () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto world_ray_intersection (worldRay:&meshlib::Line3f, region:Option<&meshlib::FaceBitSet >) const -> meshlib::Owned< meshlib::MeshIntersectionResult >
void apply_scale (scaleFactor:f32)
auto has_visual_representation () const -> bool
auto has_model () const -> bool
auto var_mesh_ptr () -> Option<&mut meshlib::Mesh >
auto mesh_ptr () const -> Option<&meshlib::Mesh >
auto mesh () const -> &meshlib::std_shared_ptr_const_MR_Mesh
auto mesh_part () const -> meshlib::Owned< meshlib::MeshPart >
void set_dirty_flags (mask:core::ffi::c_uint, invalidateCaches:Option< bool >)
void set_dirty_flags_fast (mask:core::ffi::c_uint)
void invalidate_metrics_cache (mask:core::ffi::c_uint)
auto get_selected_faces () const -> &meshlib::FaceBitSet
void select_faces (newSelection:&meshlib::FaceBitSet)
auto get_selected_faces_color (id:Option<&meshlib::ViewportId >) const -> &meshlib::Color
void set_selected_faces_color (color:&meshlib::Color, id:Option<&meshlib::ViewportId >)
auto get_selected_edges () const -> &meshlib::UndirectedEdgeBitSet
void select_edges (newSelection:&meshlib::UndirectedEdgeBitSet)
auto get_selected_edges_color (id:Option<&meshlib::ViewportId >) const -> &meshlib::Color
void set_selected_edges_color (color:&meshlib::Color, id:Option<&meshlib::ViewportId >)
auto get_selected_edges_colors_for_all_viewports () const -> &meshlib::ViewportProperty_MR_Color
void set_selected_edges_colors_for_all_viewports (val:&meshlib::ViewportProperty_MR_Color)
auto get_selected_faces_colors_for_all_viewports () const -> &meshlib::ViewportProperty_MR_Color
void set_selected_faces_colors_for_all_viewports (val:&meshlib::ViewportProperty_MR_Color)
auto get_edges_colors_for_all_viewports () const -> &meshlib::ViewportProperty_MR_Color
void set_edges_colors_for_all_viewports (val:&meshlib::ViewportProperty_MR_Color)
auto get_points_colors_for_all_viewports () const -> &meshlib::ViewportProperty_MR_Color
void set_points_colors_for_all_viewports (val:&meshlib::ViewportProperty_MR_Color)
auto get_borders_colors_for_all_viewports () const -> &meshlib::ViewportProperty_MR_Color
void set_borders_colors_for_all_viewports (val:&meshlib::ViewportProperty_MR_Color)
void copy_all_solid_colors (other:&meshlib::ObjectMeshHolder)
auto creases () const -> &meshlib::UndirectedEdgeBitSet
void set_creases (creases:&meshlib::UndirectedEdgeBitSet)
void set_flat_shading (on:bool)
auto flat_shading () const -> bool
auto supports_visualize_property (type:&meshlib::AnyVisualizeMaskEnum) const -> bool
auto get_all_visualize_properties () const -> meshlib::Owned< meshlib::std_vector_MR_ViewportMask >
auto get_visualize_property_mask (type:&meshlib::AnyVisualizeMaskEnum) const -> &meshlib::ViewportMask
auto data () const -> &meshlib::ObjectMeshData
void set_data (data:&mut meshlib::ObjectMeshData)
void update_data (data:&mut meshlib::ObjectMeshData)
auto get_verts_color_map () const -> &meshlib::VertColors
void set_verts_color_map (vertsColorMap:&meshlib::VertColors)
void update_verts_color_map (vertsColorMap:&mut meshlib::VertColors)
auto get_faces_color_map () const -> &meshlib::FaceColors
void set_faces_color_map (facesColorMap:&meshlib::FaceColors)
void update_faces_color_map (updated:&mut meshlib::FaceColors)
void set_edge_width (edgeWidth:f32)
auto get_edge_width () const -> f32
void set_point_size (size:f32)
auto get_point_size () const -> f32
auto get_edges_color (id:Option<&meshlib::ViewportId >) const -> &meshlib::Color
void set_edges_color (color:&meshlib::Color, id:Option<&meshlib::ViewportId >)
auto get_points_color (id:Option<&meshlib::ViewportId >) const -> &meshlib::Color
void set_points_color (color:&meshlib::Color, id:Option<&meshlib::ViewportId >)
auto get_borders_color (id:Option<&meshlib::ViewportId >) const -> &meshlib::Color
void set_borders_color (color:&meshlib::Color, id:Option<&meshlib::ViewportId >)
auto get_texture () const -> &meshlib::MeshTexture
auto get_textures () const -> &meshlib::Vector_MR_MeshTexture_MR_TextureId
void set_textures (texture:&meshlib::Vector_MR_MeshTexture_MR_TextureId)
void update_textures (updated:&mut meshlib::Vector_MR_MeshTexture_MR_TextureId)
void set_texture_per_face (texturePerFace:&meshlib::TexturePerFace)
void update_texture_per_face (texturePerFace:&mut meshlib::TexturePerFace)
void add_texture (texture:&meshlib::MeshTexture)
auto get_texture_per_face () const -> &meshlib::TexturePerFace
auto get_uv_coords () const -> &meshlib::VertCoords2
void set_uv_coords (uvCoordinates:&meshlib::VertCoords2)
void update_uv_coords (updated:&mut meshlib::VertCoords2)
void copy_texture_and_colors (src:&meshlib::ObjectMeshHolder, thisToSrc:&meshlib::VertMap, thisToSrcFaces:Option<&meshlib::FaceMap >)
void copy_colors (src:&meshlib::ObjectMeshHolder, thisToSrc:&meshlib::VertMap, thisToSrcFaces:Option<&meshlib::FaceMap >)
auto get_ancillary_texture () const -> &meshlib::MeshTexture
void set_ancillary_texture (texture:&meshlib::MeshTexture)
auto get_ancillary_uv_coords () const -> &meshlib::VertCoords2
void set_ancillary_uv_coords (uvCoordinates:&meshlib::VertCoords2)
void update_ancillary_uv_coords (updated:&mut meshlib::VertCoords2)
auto has_ancillary_texture () const -> bool
void clear_ancillary_texture ()
auto get_redraw_flag (viewportMask:&meshlib::ViewportMask) const -> bool
auto is_mesh_closed () const -> bool
auto get_world_box (_1:Option<&meshlib::ViewportId >) const -> meshlib::Box3f
auto num_selected_faces () const -> usize
auto num_selected_edges () const -> usize
auto num_crease_edges () const -> usize
auto total_area () const -> f64
auto selected_area () const -> f64
auto volume () const -> f64
auto avg_edge_len () const -> f32
auto num_undirected_edges () const -> usize
auto num_holes () const -> usize
auto num_components () const -> usize
auto num_handles () const -> usize
auto heap_bytes () const -> usize
auto serialize_format () const -> Option<&core::ffi::c_char >
auto actual_serialize_format () const -> Option<&core::ffi::c_char >
void set_serialize_format (newFormat:Option<&core::ffi::c_char >)
void reset_front_color ()
void reset_colors ()
auto get_model_hash () const -> usize
auto same_models (other:&meshlib::Object) const -> bool
void set_visualize_property (value:bool, type:&meshlib::AnyVisualizeMaskEnum, viewportMask:&meshlib::ViewportMask)
void set_visualize_property_mask (type:&meshlib::AnyVisualizeMaskEnum, viewportMask:&meshlib::ViewportMask)
auto get_visualize_property (type:&meshlib::AnyVisualizeMaskEnum, viewportMask:&meshlib::ViewportMask) const -> bool
void toggle_visualize_property (type:&meshlib::AnyVisualizeMaskEnum, viewportMask:&meshlib::ViewportMask)
void set_all_visualize_properties (properties:&meshlib::std_vector_MR_ViewportMask)
auto global_clipped_by_plane_mask () const -> meshlib::Owned< meshlib::ViewportMask >
auto global_clipped_by_plane (viewportMask:Option<&meshlib::ViewportMask >) const -> bool
void set_global_clipped_by_plane (on:bool, viewportMask:Option<&meshlib::ViewportMask >)
auto get_front_color (selected:Option< bool >, viewportId:Option<&meshlib::ViewportId >) const -> &meshlib::Color
void set_front_color (color:&meshlib::Color, selected:bool, viewportId:Option<&meshlib::ViewportId >)
auto get_front_colors_for_all_viewports (selected:Option< bool >) const -> &meshlib::ViewportProperty_MR_Color
void set_front_colors_for_all_viewports (val:&meshlib::ViewportProperty_MR_Color, selected:Option< bool >)
auto get_back_colors_for_all_viewports () const -> &meshlib::ViewportProperty_MR_Color
void set_back_colors_for_all_viewports (val:&meshlib::ViewportProperty_MR_Color)
auto get_back_color (viewportId:Option<&meshlib::ViewportId >) const -> &meshlib::Color
void set_back_color (color:&meshlib::Color, viewportId:Option<&meshlib::ViewportId >)
auto get_global_alpha (viewportId:Option<&meshlib::ViewportId >) const -> &core::ffi::c_uchar
void set_global_alpha (alpha:core::ffi::c_uchar, viewportId:Option<&meshlib::ViewportId >)
auto get_global_alpha_for_all_viewports () const -> &meshlib::ViewportProperty_unsigned_char
void set_global_alpha_for_all_viewports (val:&meshlib::ViewportProperty_unsigned_char)
auto get_dirty_flags () const -> core::ffi::c_uint
void reset_dirty () const
void reset_dirty_except_mask (mask:core::ffi::c_uint) const
auto get_bounding_box () const -> meshlib::Box3f
auto is_pickable (viewportMask:Option<&meshlib::ViewportMask >) const -> bool
void set_pickable (on:bool, viewportMask:Option<&meshlib::ViewportMask >)
auto get_coloring_type () const -> meshlib::ColoringType
void set_coloring_type (coloringType:meshlib::ColoringType)
auto get_shininess () const -> f32
void set_shininess (shininess:f32)
auto get_specular_strength () const -> f32
void set_specular_strength (specularStrength:f32)
auto get_ambient_strength () const -> f32
void set_ambient_strength (ambientStrength:f32)
auto render (_1:&meshlib::ModelRenderParams) const -> bool
void render_for_picker (_1:&meshlib::ModelBaseRenderParams, _2:core::ffi::c_uint) const
void render_ui (params:&meshlib::UiRenderParams) const
auto use_default_scene_properties_on_deserialization () const -> bool
void set_use_default_scene_properties_on_deserialization (useDefaultScenePropertiesOnDeserialization:bool)
auto name () const -> &meshlib::std_string
void set_name (name:&str)
auto xf (id:Option<&meshlib::ViewportId >, isDef:Option<&mut bool >) const -> &meshlib::AffineXf3f
void set_xf (xf:&meshlib::AffineXf3f, id:Option<&meshlib::ViewportId >)
void reset_xf (id:Option<&meshlib::ViewportId >)
auto xfs_for_all_viewports () const -> &meshlib::ViewportProperty_MR_AffineXf3f
void set_xfs_for_all_viewports (xf:&meshlib::ViewportProperty_MR_AffineXf3f)
auto world_xf (id:Option<&meshlib::ViewportId >, isDef:Option<&mut bool >) const -> meshlib::AffineXf3f
void set_world_xf (xf:&meshlib::AffineXf3f, id:Option<&meshlib::ViewportId >)
auto global_visibility_mask () const -> meshlib::Owned< meshlib::ViewportMask >
auto global_visibility (viewportMask:Option<&meshlib::ViewportMask >) const -> bool
void set_global_visibility (on:bool, viewportMask:Option<&meshlib::ViewportMask >)
auto is_locked () const -> bool
void set_locked (on:bool)
auto is_parent_locked () const -> bool
void set_parent_locked (lock:bool)
auto is_ancestor (ancestor:Option<&meshlib::Object >) const -> bool
auto detach_from_parent () -> bool
auto const_children () const -> meshlib::Owned< meshlib::ConstChildren >
auto add_child (child:&meshlib::std_shared_ptr_MR_Object, recognizedChild:Option< bool >) -> bool
auto add_child_before (newChild:&meshlib::std_shared_ptr_MR_Object, existingChild:&meshlib::std_shared_ptr_MR_Object) -> bool
void remove_all_children ()
void sort_children ()
auto select (on:bool) -> bool
auto is_selected () const -> bool
void set_ancillary (ancillary:bool)
auto is_ancillary () const -> bool
auto is_global_ancillary () const -> bool
void set_visible (on:bool, viewportMask:Option<&meshlib::ViewportMask >)
auto is_visible (viewportMask:Option<&meshlib::ViewportMask >) const -> bool
void set_visibility_mask (viewportMask:&meshlib::ViewportMask)
auto visibility_mask () const -> meshlib::Owned< meshlib::ViewportMask >
void reset_redraw_flag () const
auto clone_tree () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto shallow_clone_tree () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
void swap (other:&mut meshlib::Object)
auto get_world_tree_box (_1:Option<&meshlib::ViewportId >) const -> meshlib::Box3f
auto tags () const -> &meshlib::std_set_std_string
auto add_tag (tag:&str) -> bool
auto remove_tag (tag:&str) -> bool
auto get_shared_ptr () const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >
auto upcast_to_object_children_holder () const -> &meshlib::ObjectChildrenHolder
auto upcast_to_object_children_holder_mut () -> &mut meshlib::ObjectChildrenHolder
auto upcast_to_object () const -> &meshlib::Object
auto upcast_to_object_mut () -> &mut meshlib::Object
auto upcast_to_visual_object () const -> &meshlib::VisualObject
auto upcast_to_visual_object_mut () -> &mut meshlib::VisualObject
auto upcast_to_object_mesh_holder () const -> &meshlib::ObjectMeshHolder
auto upcast_to_object_mesh_holder_mut () -> &mut meshlib::ObjectMeshHolder

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ObjectMesh >
static auto construct_from_another (_other:meshlib::Owned< meshlib::ObjectMesh >) -> meshlib::Owned< meshlib::ObjectMesh >
static auto static_type_name () -> *const core::ffi::c_char
static auto static_class_name () -> *const core::ffi::c_char
static auto static_class_name_in_plural () -> *const core::ffi::c_char
static auto static_downcast_from_object_children_holder (object:&meshlib::ObjectChildrenHolder) -> &Self
static auto static_downcast_from_object_children_holder_mut (object:&mut meshlib::ObjectChildrenHolder) -> &mut Self
static auto static_downcast_from_object (object:&meshlib::Object) -> &Self
static auto static_downcast_from_object_mut (object:&mut meshlib::Object) -> &mut Self
static auto dynamic_downcast_from_object (object:&meshlib::Object) -> Option<&Self >
static auto dynamic_downcast_from_object_mut (object:&mut meshlib::Object) -> Option<&mut Self >
static auto static_downcast_from_visual_object (object:&meshlib::VisualObject) -> &Self
static auto static_downcast_from_visual_object_mut (object:&mut meshlib::VisualObject) -> &mut Self
static auto dynamic_downcast_from_visual_object (object:&meshlib::VisualObject) -> Option<&Self >
static auto dynamic_downcast_from_visual_object_mut (object:&mut meshlib::VisualObject) -> Option<&mut Self >
static auto static_downcast_from_object_mesh_holder (object:&meshlib::ObjectMeshHolder) -> &Self
static auto static_downcast_from_object_mesh_holder_mut (object:&mut meshlib::ObjectMeshHolder) -> &mut Self
static auto dynamic_downcast_from_object_mesh_holder (object:&meshlib::ObjectMeshHolder) -> Option<&Self >
static auto dynamic_downcast_from_object_mesh_holder_mut (object:&mut meshlib::ObjectMeshHolder) -> Option<&mut Self >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)

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

Generated from class MR::ObjectMesh. Heap-allocated instances are held in Owned<ObjectMesh>.

Member Function Documentation

◆ actual_serialize_format()

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

◆ add_child()

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;

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

◆ add_child_before()

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

◆ add_tag()

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

◆ add_texture()

void meshlib::ObjectMesh::add_texture ( texture:&meshlib::MeshTexture )

Generated from method MR::ObjectMesh::addTexture.

Calls MR_ObjectMesh_addTexture().

◆ apply_scale()

void meshlib::ObjectMesh::apply_scale ( scaleFactor:f32 )

Generated from method MR::ObjectMesh::applyScale.

Calls MR_ObjectMesh_applyScale().

◆ assign_from_another()

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.

◆ avg_edge_len()

auto meshlib::ObjectMesh::avg_edge_len ( ) const -> f32

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

Calls MR_ObjectMesh_avgEdgeLen().

◆ class_name()

auto meshlib::ObjectMesh::class_name ( ) const -> meshlib::Owned< meshlib::std_string >

Generated from method MR::ObjectMesh::className.

Calls MR_ObjectMesh_className().

◆ class_name_in_plural()

auto meshlib::ObjectMesh::class_name_in_plural ( ) const -> meshlib::Owned< meshlib::std_string >

Generated from method MR::ObjectMesh::classNameInPlural.

Calls MR_ObjectMesh_classNameInPlural().

◆ clear_ancillary_texture()

void meshlib::ObjectMesh::clear_ancillary_texture ( )

Generated from method MR::ObjectMesh::clearAncillaryTexture.

Calls MR_ObjectMesh_clearAncillaryTexture().

◆ clone()

auto meshlib::ObjectMesh::clone ( ) const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >

Generated from method MR::ObjectMesh::clone.

Calls MR_ObjectMesh_clone().

◆ clone_tree()

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

◆ const_children()

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

◆ construct_from_another()

auto meshlib::ObjectMesh::construct_from_another ( _other:meshlib::Owned< meshlib::ObjectMesh > ) -> meshlib::Owned< meshlib::ObjectMesh >
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.

◆ copy_all_solid_colors()

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

◆ copy_colors()

void meshlib::ObjectMesh::copy_colors ( src:&meshlib::ObjectMeshHolder ,
thisToSrc:&meshlib::VertMap ,
thisToSrcFaces:Option<&meshlib::FaceMap >  )

copies vertex colors from given source object

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

Calls MR_ObjectMesh_copyColors().

◆ copy_texture_and_colors()

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

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

Calls MR_ObjectMesh_copyTextureAndColors().

◆ creases()

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

◆ data()

auto meshlib::ObjectMesh::data ( ) const -> &meshlib::ObjectMeshData

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

Calls MR_ObjectMesh_data().

◆ detach_from_parent()

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

◆ dynamic_downcast_from_object()

auto meshlib::ObjectMesh::dynamic_downcast_from_object ( object:&meshlib::Object ) -> Option<&Self >
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().

◆ dynamic_downcast_from_object_mesh_holder()

auto meshlib::ObjectMesh::dynamic_downcast_from_object_mesh_holder ( object:&meshlib::ObjectMeshHolder ) -> Option<&Self >
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().

◆ dynamic_downcast_from_object_mesh_holder_mut()

auto meshlib::ObjectMesh::dynamic_downcast_from_object_mesh_holder_mut ( object:&mut meshlib::ObjectMeshHolder ) -> Option<&mut Self >
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().

◆ dynamic_downcast_from_object_mut()

auto meshlib::ObjectMesh::dynamic_downcast_from_object_mut ( object:&mut meshlib::Object ) -> Option<&mut Self >
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().

◆ dynamic_downcast_from_visual_object()

auto meshlib::ObjectMesh::dynamic_downcast_from_visual_object ( object:&meshlib::VisualObject ) -> Option<&Self >
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().

◆ dynamic_downcast_from_visual_object_mut()

auto meshlib::ObjectMesh::dynamic_downcast_from_visual_object_mut ( object:&mut meshlib::VisualObject ) -> Option<&mut Self >
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().

◆ flat_shading()

auto meshlib::ObjectMesh::flat_shading ( ) const -> bool

Generated from method MR::ObjectMesh::flatShading.

Calls MR_ObjectMesh_flatShading().

◆ get_all_visualize_properties()

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

◆ get_ambient_strength()

auto meshlib::ObjectMesh::get_ambient_strength ( ) const -> f32

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

Calls MR_ObjectMesh_getAmbientStrength().

◆ get_ancillary_texture()

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

◆ get_ancillary_uv_coords()

auto meshlib::ObjectMesh::get_ancillary_uv_coords ( ) const -> &meshlib::VertCoords2

Generated from method MR::ObjectMesh::getAncillaryUVCoords.

Calls MR_ObjectMesh_getAncillaryUVCoords().

◆ get_back_color()

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

◆ get_back_colors_for_all_viewports()

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

◆ get_borders_color()

auto meshlib::ObjectMesh::get_borders_color ( id:Option<&meshlib::ViewportId > ) const -> &meshlib::Color

Generated from method MR::ObjectMesh::getBordersColor.

Calls MR_ObjectMesh_getBordersColor().

◆ get_borders_colors_for_all_viewports()

auto meshlib::ObjectMesh::get_borders_colors_for_all_viewports ( ) const -> &meshlib::ViewportProperty_MR_Color

Generated from method MR::ObjectMesh::getBordersColorsForAllViewports.

Calls MR_ObjectMesh_getBordersColorsForAllViewports().

◆ get_bounding_box()

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

◆ get_coloring_type()

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

◆ get_dirty_flags()

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

◆ get_edge_width()

auto meshlib::ObjectMesh::get_edge_width ( ) const -> f32

Generated from method MR::ObjectMesh::getEdgeWidth.

Calls MR_ObjectMesh_getEdgeWidth().

◆ get_edges_color()

auto meshlib::ObjectMesh::get_edges_color ( id:Option<&meshlib::ViewportId > ) const -> &meshlib::Color

Generated from method MR::ObjectMesh::getEdgesColor.

Calls MR_ObjectMesh_getEdgesColor().

◆ get_edges_colors_for_all_viewports()

auto meshlib::ObjectMesh::get_edges_colors_for_all_viewports ( ) const -> &meshlib::ViewportProperty_MR_Color

Generated from method MR::ObjectMesh::getEdgesColorsForAllViewports.

Calls MR_ObjectMesh_getEdgesColorsForAllViewports().

◆ get_faces_color_map()

auto meshlib::ObjectMesh::get_faces_color_map ( ) const -> &meshlib::FaceColors

Generated from method MR::ObjectMesh::getFacesColorMap.

Calls MR_ObjectMesh_getFacesColorMap().

◆ get_front_color()

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

◆ get_front_colors_for_all_viewports()

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

◆ get_global_alpha()

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

◆ get_global_alpha_for_all_viewports()

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

◆ get_info_lines()

auto meshlib::ObjectMesh::get_info_lines ( ) const -> meshlib::Owned< meshlib::std_vector_std_string >

Generated from method MR::ObjectMesh::getInfoLines.

Calls MR_ObjectMesh_getInfoLines().

◆ get_model_hash()

auto meshlib::ObjectMesh::get_model_hash ( ) const -> usize

Generated from method MR::ObjectMesh::getModelHash.

Calls MR_ObjectMesh_getModelHash().

◆ get_point_size()

auto meshlib::ObjectMesh::get_point_size ( ) const -> f32

Generated from method MR::ObjectMesh::getPointSize.

Calls MR_ObjectMesh_getPointSize().

◆ get_points_color()

auto meshlib::ObjectMesh::get_points_color ( id:Option<&meshlib::ViewportId > ) const -> &meshlib::Color

Generated from method MR::ObjectMesh::getPointsColor.

Calls MR_ObjectMesh_getPointsColor().

◆ get_points_colors_for_all_viewports()

auto meshlib::ObjectMesh::get_points_colors_for_all_viewports ( ) const -> &meshlib::ViewportProperty_MR_Color

Generated from method MR::ObjectMesh::getPointsColorsForAllViewports.

Calls MR_ObjectMesh_getPointsColorsForAllViewports().

◆ get_redraw_flag()

auto meshlib::ObjectMesh::get_redraw_flag ( viewportMask:&meshlib::ViewportMask ) const -> bool

Generated from method MR::ObjectMesh::getRedrawFlag.

Calls MR_ObjectMesh_getRedrawFlag().

◆ get_selected_edges()

auto meshlib::ObjectMesh::get_selected_edges ( ) const -> &meshlib::UndirectedEdgeBitSet

Generated from method MR::ObjectMesh::getSelectedEdges.

Calls MR_ObjectMesh_getSelectedEdges().

◆ get_selected_edges_color()

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

◆ get_selected_edges_colors_for_all_viewports()

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

◆ get_selected_faces()

auto meshlib::ObjectMesh::get_selected_faces ( ) const -> &meshlib::FaceBitSet

Generated from method MR::ObjectMesh::getSelectedFaces.

Calls MR_ObjectMesh_getSelectedFaces().

◆ get_selected_faces_color()

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

◆ get_selected_faces_colors_for_all_viewports()

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

◆ get_shared_ptr()

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

◆ get_shininess()

auto meshlib::ObjectMesh::get_shininess ( ) const -> f32

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

Calls MR_ObjectMesh_getShininess().

◆ get_specular_strength()

auto meshlib::ObjectMesh::get_specular_strength ( ) const -> f32

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

Calls MR_ObjectMesh_getSpecularStrength().

◆ get_texture()

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

◆ get_texture_per_face()

auto meshlib::ObjectMesh::get_texture_per_face ( ) const -> &meshlib::TexturePerFace

Generated from method MR::ObjectMesh::getTexturePerFace.

Calls MR_ObjectMesh_getTexturePerFace().

◆ get_textures()

auto meshlib::ObjectMesh::get_textures ( ) const -> &meshlib::Vector_MR_MeshTexture_MR_TextureId

Generated from method MR::ObjectMesh::getTextures.

Calls MR_ObjectMesh_getTextures().

◆ get_uv_coords()

auto meshlib::ObjectMesh::get_uv_coords ( ) const -> &meshlib::VertCoords2

Generated from method MR::ObjectMesh::getUVCoords.

Calls MR_ObjectMesh_getUVCoords().

◆ get_verts_color_map()

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

◆ get_visualize_property()

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

◆ get_visualize_property_mask()

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

◆ get_world_box()

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

◆ get_world_tree_box()

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

◆ global_clipped_by_plane()

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

◆ global_clipped_by_plane_mask()

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

◆ global_visibility()

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

◆ global_visibility_mask()

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

◆ has_ancillary_texture()

auto meshlib::ObjectMesh::has_ancillary_texture ( ) const -> bool

Generated from method MR::ObjectMesh::hasAncillaryTexture.

Calls MR_ObjectMesh_hasAncillaryTexture().

◆ has_model()

auto meshlib::ObjectMesh::has_model ( ) const -> bool

Generated from method MR::ObjectMesh::hasModel.

Calls MR_ObjectMesh_hasModel().

◆ has_visual_representation()

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

◆ heap_bytes()

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

◆ invalidate_metrics_cache()

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

◆ is_ancestor()

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

◆ is_ancillary()

auto meshlib::ObjectMesh::is_ancillary ( ) const -> bool

Generated from method MR::ObjectMesh::isAncillary.

Calls MR_ObjectMesh_isAncillary().

◆ is_global_ancillary()

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

◆ is_locked()

auto meshlib::ObjectMesh::is_locked ( ) const -> bool

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

Calls MR_ObjectMesh_isLocked().

◆ is_mesh_closed()

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

◆ is_parent_locked()

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

◆ is_pickable()

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

◆ is_selected()

auto meshlib::ObjectMesh::is_selected ( ) const -> bool

Generated from method MR::ObjectMesh::isSelected.

Calls MR_ObjectMesh_isSelected().

◆ is_visible()

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

◆ mesh()

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

Calls MR_ObjectMesh_mesh().

Deprecated
use meshPtr() instead

◆ mesh_part()

auto meshlib::ObjectMesh::mesh_part ( ) const -> meshlib::Owned< meshlib::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().

◆ mesh_ptr()

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

◆ name()

auto meshlib::ObjectMesh::name ( ) const -> &meshlib::std_string

Generated from method MR::ObjectMesh::name.

Calls MR_ObjectMesh_name().

◆ new()

auto meshlib::ObjectMesh::new ( ) -> meshlib::Owned< meshlib::ObjectMesh >
static

Constructs an empty (default-constructed) instance.

Calls MR_ObjectMesh_DefaultConstruct().

◆ num_components()

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

◆ num_crease_edges()

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

◆ num_handles()

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

◆ num_holes()

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

◆ num_selected_edges()

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

◆ num_selected_faces()

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

◆ num_undirected_edges()

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

◆ remove_all_children()

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

◆ remove_tag()

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

◆ render()

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

◆ render_for_picker()

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

◆ render_ui()

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

◆ reset_colors()

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

◆ reset_dirty()

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

◆ reset_dirty_except_mask()

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

◆ reset_front_color()

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

◆ reset_redraw_flag()

void meshlib::ObjectMesh::reset_redraw_flag ( ) const

Generated from method MR::ObjectMesh::resetRedrawFlag.

Calls MR_ObjectMesh_resetRedrawFlag().

◆ reset_xf()

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

◆ same_models()

auto meshlib::ObjectMesh::same_models ( other:&meshlib::Object ) const -> bool

Generated from method MR::ObjectMesh::sameModels.

Calls MR_ObjectMesh_sameModels().

◆ select()

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

◆ select_edges()

void meshlib::ObjectMesh::select_edges ( newSelection:&meshlib::UndirectedEdgeBitSet )

Generated from method MR::ObjectMesh::selectEdges.

Calls MR_ObjectMesh_selectEdges().

◆ select_faces()

void meshlib::ObjectMesh::select_faces ( newSelection:&meshlib::FaceBitSet )

Generated from method MR::ObjectMesh::selectFaces.

Calls MR_ObjectMesh_selectFaces().

◆ selected_area()

auto meshlib::ObjectMesh::selected_area ( ) const -> f64

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

Calls MR_ObjectMesh_selectedArea().

◆ serialize_format()

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

◆ set_all_visualize_properties()

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

◆ set_ambient_strength()

void meshlib::ObjectMesh::set_ambient_strength ( ambientStrength:f32 )

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

Calls MR_ObjectMesh_setAmbientStrength().

◆ set_ancillary()

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

◆ set_ancillary_texture()

void meshlib::ObjectMesh::set_ancillary_texture ( texture:&meshlib::MeshTexture )

Generated from method MR::ObjectMesh::setAncillaryTexture.

Calls MR_ObjectMesh_setAncillaryTexture().

◆ set_ancillary_uv_coords()

void meshlib::ObjectMesh::set_ancillary_uv_coords ( uvCoordinates:&meshlib::VertCoords2 )

Generated from method MR::ObjectMesh::setAncillaryUVCoords.

Calls MR_ObjectMesh_setAncillaryUVCoords().

◆ set_back_color()

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

◆ set_back_colors_for_all_viewports()

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

◆ set_borders_color()

void meshlib::ObjectMesh::set_borders_color ( color:&meshlib::Color ,
id:Option<&meshlib::ViewportId >  )

Generated from method MR::ObjectMesh::setBordersColor.

Calls MR_ObjectMesh_setBordersColor().

◆ set_borders_colors_for_all_viewports()

void meshlib::ObjectMesh::set_borders_colors_for_all_viewports ( val:&meshlib::ViewportProperty_MR_Color )

Generated from method MR::ObjectMesh::setBordersColorsForAllViewports.

Calls MR_ObjectMesh_setBordersColorsForAllViewports().

◆ set_coloring_type()

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

◆ set_creases()

void meshlib::ObjectMesh::set_creases ( creases:&meshlib::UndirectedEdgeBitSet )

Generated from method MR::ObjectMesh::setCreases.

Calls MR_ObjectMesh_setCreases().

◆ set_data()

void meshlib::ObjectMesh::set_data ( data:&mut meshlib::ObjectMeshData )

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

Calls MR_ObjectMesh_setData().

◆ set_dirty_flags()

void meshlib::ObjectMesh::set_dirty_flags ( mask:core::ffi::c_uint ,
invalidateCaches:Option< bool >  )

Generated from method MR::ObjectMesh::setDirtyFlags.

Calls MR_ObjectMesh_setDirtyFlags().

◆ set_dirty_flags_fast()

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

◆ set_edge_width()

void meshlib::ObjectMesh::set_edge_width ( edgeWidth:f32 )

Generated from method MR::ObjectMesh::setEdgeWidth.

Calls MR_ObjectMesh_setEdgeWidth().

◆ set_edges_color()

void meshlib::ObjectMesh::set_edges_color ( color:&meshlib::Color ,
id:Option<&meshlib::ViewportId >  )

Generated from method MR::ObjectMesh::setEdgesColor.

Calls MR_ObjectMesh_setEdgesColor().

◆ set_edges_colors_for_all_viewports()

void meshlib::ObjectMesh::set_edges_colors_for_all_viewports ( val:&meshlib::ViewportProperty_MR_Color )

Generated from method MR::ObjectMesh::setEdgesColorsForAllViewports.

Calls MR_ObjectMesh_setEdgesColorsForAllViewports().

◆ set_faces_color_map()

void meshlib::ObjectMesh::set_faces_color_map ( facesColorMap:&meshlib::FaceColors )

Generated from method MR::ObjectMesh::setFacesColorMap.

Calls MR_ObjectMesh_setFacesColorMap().

◆ set_flat_shading()

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

◆ set_front_color()

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

◆ set_front_colors_for_all_viewports()

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

◆ set_global_alpha()

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

◆ set_global_alpha_for_all_viewports()

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

◆ set_global_clipped_by_plane()

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

◆ set_global_visibility()

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

◆ set_locked()

void meshlib::ObjectMesh::set_locked ( on:bool )

Generated from method MR::ObjectMesh::setLocked.

Calls MR_ObjectMesh_setLocked().

◆ set_mesh()

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

◆ set_name()

void meshlib::ObjectMesh::set_name ( name:& str)

Generated from method MR::ObjectMesh::setName.

Calls MR_ObjectMesh_setName().

◆ set_parent_locked()

void meshlib::ObjectMesh::set_parent_locked ( lock:bool )

Generated from method MR::ObjectMesh::setParentLocked.

Calls MR_ObjectMesh_setParentLocked().

◆ set_pickable()

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

◆ set_point_size()

void meshlib::ObjectMesh::set_point_size ( size:f32 )

Generated from method MR::ObjectMesh::setPointSize.

Calls MR_ObjectMesh_setPointSize().

◆ set_points_color()

void meshlib::ObjectMesh::set_points_color ( color:&meshlib::Color ,
id:Option<&meshlib::ViewportId >  )

Generated from method MR::ObjectMesh::setPointsColor.

Calls MR_ObjectMesh_setPointsColor().

◆ set_points_colors_for_all_viewports()

void meshlib::ObjectMesh::set_points_colors_for_all_viewports ( val:&meshlib::ViewportProperty_MR_Color )

Generated from method MR::ObjectMesh::setPointsColorsForAllViewports.

Calls MR_ObjectMesh_setPointsColorsForAllViewports().

◆ set_selected_edges_color()

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

◆ set_selected_edges_colors_for_all_viewports()

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

◆ set_selected_faces_color()

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

◆ set_selected_faces_colors_for_all_viewports()

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

◆ set_serialize_format()

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

◆ set_shininess()

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

◆ set_specular_strength()

void meshlib::ObjectMesh::set_specular_strength ( specularStrength:f32 )

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

Calls MR_ObjectMesh_setSpecularStrength().

◆ set_texture_per_face()

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

◆ set_textures()

void meshlib::ObjectMesh::set_textures ( texture:&meshlib::Vector_MR_MeshTexture_MR_TextureId )

Generated from method MR::ObjectMesh::setTextures.

Calls MR_ObjectMesh_setTextures().

◆ set_use_default_scene_properties_on_deserialization()

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

◆ set_uv_coords()

void meshlib::ObjectMesh::set_uv_coords ( uvCoordinates:&meshlib::VertCoords2 )

Generated from method MR::ObjectMesh::setUVCoords.

Calls MR_ObjectMesh_setUVCoords().

◆ set_verts_color_map()

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

◆ set_visibility_mask()

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

◆ set_visible()

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

◆ set_visualize_property()

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

◆ set_visualize_property_mask()

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

◆ set_world_xf()

void meshlib::ObjectMesh::set_world_xf ( xf:&meshlib::AffineXf3f ,
id:Option<&meshlib::ViewportId >  )

Generated from method MR::ObjectMesh::setWorldXf.

Calls MR_ObjectMesh_setWorldXf().

◆ set_xf()

void meshlib::ObjectMesh::set_xf ( xf:&meshlib::AffineXf3f ,
id:Option<&meshlib::ViewportId >  )

Generated from method MR::ObjectMesh::setXf.

Calls MR_ObjectMesh_setXf().

◆ set_xfs_for_all_viewports()

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

◆ shallow_clone()

auto meshlib::ObjectMesh::shallow_clone ( ) const -> meshlib::Owned< meshlib::std_shared_ptr_MR_Object >

Generated from method MR::ObjectMesh::shallowClone.

Calls MR_ObjectMesh_shallowClone().

◆ shallow_clone_tree()

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

◆ sort_children()

void meshlib::ObjectMesh::sort_children ( )

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

Calls MR_ObjectMesh_sortChildren().

◆ static_class_name()

auto meshlib::ObjectMesh::static_class_name ( ) -> *const core::ffi::c_char
static

Generated from method MR::ObjectMesh::StaticClassName.

Calls MR_ObjectMesh_StaticClassName().

◆ static_class_name_in_plural()

auto meshlib::ObjectMesh::static_class_name_in_plural ( ) -> *const core::ffi::c_char
static

Generated from method MR::ObjectMesh::StaticClassNameInPlural.

Calls MR_ObjectMesh_StaticClassNameInPlural().

◆ static_downcast_from_object()

auto meshlib::ObjectMesh::static_downcast_from_object ( object:&meshlib::Object ) -> &Self
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.

Note
This function is unsafe.

◆ static_downcast_from_object_children_holder()

auto meshlib::ObjectMesh::static_downcast_from_object_children_holder ( object:&meshlib::ObjectChildrenHolder ) -> &Self
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.

Note
This function is unsafe.

◆ static_downcast_from_object_children_holder_mut()

auto meshlib::ObjectMesh::static_downcast_from_object_children_holder_mut ( object:&mut meshlib::ObjectChildrenHolder ) -> &mut Self
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.

Note
This function is unsafe.

◆ static_downcast_from_object_mesh_holder()

auto meshlib::ObjectMesh::static_downcast_from_object_mesh_holder ( object:&meshlib::ObjectMeshHolder ) -> &Self
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.

Note
This function is unsafe.

◆ static_downcast_from_object_mesh_holder_mut()

auto meshlib::ObjectMesh::static_downcast_from_object_mesh_holder_mut ( object:&mut meshlib::ObjectMeshHolder ) -> &mut Self
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.

Note
This function is unsafe.

◆ static_downcast_from_object_mut()

auto meshlib::ObjectMesh::static_downcast_from_object_mut ( object:&mut meshlib::Object ) -> &mut Self
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.

Note
This function is unsafe.

◆ static_downcast_from_visual_object()

auto meshlib::ObjectMesh::static_downcast_from_visual_object ( object:&meshlib::VisualObject ) -> &Self
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.

Note
This function is unsafe.

◆ static_downcast_from_visual_object_mut()

auto meshlib::ObjectMesh::static_downcast_from_visual_object_mut ( object:&mut meshlib::VisualObject ) -> &mut Self
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.

Note
This function is unsafe.

◆ static_type_name()

auto meshlib::ObjectMesh::static_type_name ( ) -> *const core::ffi::c_char
static

Generated from method MR::ObjectMesh::StaticTypeName.

Calls MR_ObjectMesh_StaticTypeName().

◆ supports_visualize_property()

auto meshlib::ObjectMesh::supports_visualize_property ( type:&meshlib::AnyVisualizeMaskEnum ) const -> bool

Generated from method MR::ObjectMesh::supportsVisualizeProperty.

Calls MR_ObjectMesh_supportsVisualizeProperty().

◆ swap()

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

◆ tags()

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

◆ toggle_visualize_property()

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

◆ total_area()

auto meshlib::ObjectMesh::total_area ( ) const -> f64

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

Calls MR_ObjectMesh_totalArea().

◆ type_name()

auto meshlib::ObjectMesh::type_name ( ) const -> Option<&core::ffi::c_char >

Generated from method MR::ObjectMesh::typeName.

Calls MR_ObjectMesh_typeName().

◆ upcast_to_object()

auto meshlib::ObjectMesh::upcast_to_object ( ) const -> &meshlib::Object

Upcasts to the base class MR::Object.

Calls MR_ObjectMesh_UpcastTo_MR_Object().

◆ upcast_to_object_children_holder()

auto meshlib::ObjectMesh::upcast_to_object_children_holder ( ) const -> &meshlib::ObjectChildrenHolder

Upcasts to the base class MR::ObjectChildrenHolder.

Calls MR_ObjectMesh_UpcastTo_MR_ObjectChildrenHolder().

◆ upcast_to_object_children_holder_mut()

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

◆ upcast_to_object_mesh_holder()

auto meshlib::ObjectMesh::upcast_to_object_mesh_holder ( ) const -> &meshlib::ObjectMeshHolder

Upcasts to the base class MR::ObjectMeshHolder.

Calls MR_ObjectMesh_UpcastTo_MR_ObjectMeshHolder().

◆ upcast_to_object_mesh_holder_mut()

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

◆ upcast_to_object_mut()

auto meshlib::ObjectMesh::upcast_to_object_mut ( ) -> &mut meshlib::Object

Upcasts to the base class MR::Object.

Calls MR_ObjectMesh_MutableUpcastTo_MR_Object().

◆ upcast_to_visual_object()

auto meshlib::ObjectMesh::upcast_to_visual_object ( ) const -> &meshlib::VisualObject

Upcasts to the base class MR::VisualObject.

Calls MR_ObjectMesh_UpcastTo_MR_VisualObject().

◆ upcast_to_visual_object_mut()

auto meshlib::ObjectMesh::upcast_to_visual_object_mut ( ) -> &mut meshlib::VisualObject

Upcasts to the base class MR::VisualObject.

Calls MR_ObjectMesh_MutableUpcastTo_MR_VisualObject().

◆ update_ancillary_uv_coords()

void meshlib::ObjectMesh::update_ancillary_uv_coords ( updated:&mut meshlib::VertCoords2 )

Generated from method MR::ObjectMesh::updateAncillaryUVCoords.

Calls MR_ObjectMesh_updateAncillaryUVCoords().

◆ update_data()

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

◆ update_faces_color_map()

void meshlib::ObjectMesh::update_faces_color_map ( updated:&mut meshlib::FaceColors )

Generated from method MR::ObjectMesh::updateFacesColorMap.

Calls MR_ObjectMesh_updateFacesColorMap().

◆ update_mesh()

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

◆ update_texture_per_face()

void meshlib::ObjectMesh::update_texture_per_face ( texturePerFace:&mut meshlib::TexturePerFace )

Generated from method MR::ObjectMesh::updateTexturePerFace.

Calls MR_ObjectMesh_updateTexturePerFace().

◆ update_textures()

void meshlib::ObjectMesh::update_textures ( updated:&mut meshlib::Vector_MR_MeshTexture_MR_TextureId )

Generated from method MR::ObjectMesh::updateTextures.

Calls MR_ObjectMesh_updateTextures().

◆ update_uv_coords()

void meshlib::ObjectMesh::update_uv_coords ( updated:&mut meshlib::VertCoords2 )

Generated from method MR::ObjectMesh::updateUVCoords.

Calls MR_ObjectMesh_updateUVCoords().

◆ update_verts_color_map()

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

◆ use_default_scene_properties_on_deserialization()

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

◆ var_mesh()

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

◆ var_mesh_ptr()

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

◆ visibility_mask()

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

◆ volume()

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

◆ world_ray_intersection()

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

◆ world_xf()

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

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

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

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

◆ xfs_for_all_viewports()

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


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