MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::MeshOrPoints_ProjectionResult Struct Reference
Inheritance diagram for meshlib::MeshOrPoints_ProjectionResult:

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::MeshOrPoints_ProjectionResult) -> &mut meshlib::MeshOrPoints_ProjectionResult
auto valid () const -> bool
auto point () const -> &meshlib::Vector3f
auto point_mut () -> &mut meshlib::Vector3f
void set_point (value:meshlib::Vector3f)
auto normal () const -> &meshlib::std_optional_MR_Vector3f
auto normal_mut () -> &mut meshlib::std_optional_MR_Vector3f
void set_normal (value:Option<&meshlib::Vector3f >)
auto is_bd () const -> &bool
auto is_bd_mut () -> &mut bool
void set_is_bd (value:bool)
auto dist_sq () const -> &f32
auto dist_sq_mut () -> &mut f32
void set_dist_sq (value:f32)
auto closest_vert () const -> &meshlib::VertId
auto closest_vert_mut () -> &mut meshlib::VertId
void set_closest_vert (value:meshlib::VertId)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MeshOrPoints_ProjectionResult >
static auto construct_from (point:meshlib::Vector3f, normal:Option<&meshlib::Vector3f >, isBd:bool, distSq:f32, closestVert:meshlib::VertId) -> meshlib::Owned< meshlib::MeshOrPoints_ProjectionResult >
static auto construct_from_another (_other:&meshlib::MeshOrPoints_ProjectionResult) -> meshlib::Owned< meshlib::MeshOrPoints_ProjectionResult >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

Generated from class MR::MeshOrPoints::ProjectionResult.

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::MeshOrPoints_ProjectionResult::assign_from_another ( _other:&meshlib::MeshOrPoints_ProjectionResult ) -> &mut meshlib::MeshOrPoints_ProjectionResult

Generated from method MR::MeshOrPoints::ProjectionResult::operator=.

Calls MR_MeshOrPoints_ProjectionResult_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ closest_vert()

auto meshlib::MeshOrPoints_ProjectionResult::closest_vert ( ) const -> &meshlib::VertId

for point clouds it is the closest vertex, for meshes it is the closest vertex of the triangle with the closest point Returns a pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named closestVert.

Calls MR_MeshOrPoints_ProjectionResult_Get_closestVert(). The reference to this object might be preserved as the return value.

◆ closest_vert_mut()

auto meshlib::MeshOrPoints_ProjectionResult::closest_vert_mut ( ) -> &mut meshlib::VertId

for point clouds it is the closest vertex, for meshes it is the closest vertex of the triangle with the closest point Returns a mutable pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named closestVert.

Calls MR_MeshOrPoints_ProjectionResult_GetMutable_closestVert(). The reference to this object might be preserved as the return value.

◆ construct_from()

auto meshlib::MeshOrPoints_ProjectionResult::construct_from ( point:meshlib::Vector3f ,
normal:Option<&meshlib::Vector3f > ,
isBd:bool ,
distSq:f32 ,
closestVert:meshlib::VertId  ) -> meshlib::Owned< meshlib::MeshOrPoints_ProjectionResult >
static

Constructs MR::MeshOrPoints::ProjectionResult elementwise.

Calls MR_MeshOrPoints_ProjectionResult_ConstructFrom(). The reference to the parameter point might be preserved in the constructed object. The reference to the parameter normal might be preserved in the constructed object. The reference to the parameter closestVert might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::MeshOrPoints_ProjectionResult::construct_from_another ( _other:&meshlib::MeshOrPoints_ProjectionResult ) -> meshlib::Owned< meshlib::MeshOrPoints_ProjectionResult >
static

Generated from constructor MR::MeshOrPoints::ProjectionResult::ProjectionResult.

Calls MR_MeshOrPoints_ProjectionResult_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ convert_to_bool()

auto meshlib::MeshOrPoints_ProjectionResult::convert_to_bool ( ) const -> bool

Generated from conversion operator MR::MeshOrPoints::ProjectionResult::operator bool.

Calls MR_MeshOrPoints_ProjectionResult_ConvertTo_bool().

◆ dist_sq()

auto meshlib::MeshOrPoints_ProjectionResult::dist_sq ( ) const -> &f32

squared distance from query point to the closest point Returns a pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named distSq.

Calls MR_MeshOrPoints_ProjectionResult_Get_distSq(). The reference to this object might be preserved as the return value.

◆ dist_sq_mut()

auto meshlib::MeshOrPoints_ProjectionResult::dist_sq_mut ( ) -> &mut f32

squared distance from query point to the closest point Returns a mutable pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named distSq.

Calls MR_MeshOrPoints_ProjectionResult_GetMutable_distSq(). The reference to this object might be preserved as the return value.

◆ is_bd()

auto meshlib::MeshOrPoints_ProjectionResult::is_bd ( ) const -> &bool

can be true only for meshes, if the closest point is located on the boundary of the mesh (or the current region) Returns a pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named isBd.

Calls MR_MeshOrPoints_ProjectionResult_Get_isBd(). The reference to this object might be preserved as the return value.

◆ is_bd_mut()

auto meshlib::MeshOrPoints_ProjectionResult::is_bd_mut ( ) -> &mut bool

can be true only for meshes, if the closest point is located on the boundary of the mesh (or the current region) Returns a mutable pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named isBd.

Calls MR_MeshOrPoints_ProjectionResult_GetMutable_isBd(). The reference to this object might be preserved as the return value.

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_MeshOrPoints_ProjectionResult_DefaultConstruct().

◆ normal()

auto meshlib::MeshOrPoints_ProjectionResult::normal ( ) const -> &meshlib::std_optional_MR_Vector3f

normal at the closest point; for meshes it will be pseudonormal with the differentiation depending on closest point location (face/edge/vertex) Returns a pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named normal.

Calls MR_MeshOrPoints_ProjectionResult_Get_normal(). The reference to this object might be preserved as the return value.

◆ normal_mut()

auto meshlib::MeshOrPoints_ProjectionResult::normal_mut ( ) -> &mut meshlib::std_optional_MR_Vector3f

normal at the closest point; for meshes it will be pseudonormal with the differentiation depending on closest point location (face/edge/vertex) Returns a mutable pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named normal.

Calls MR_MeshOrPoints_ProjectionResult_GetMutable_normal(). The reference to this object might be preserved as the return value.

◆ point()

auto meshlib::MeshOrPoints_ProjectionResult::point ( ) const -> &meshlib::Vector3f

found closest point Returns a pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named point.

Calls MR_MeshOrPoints_ProjectionResult_Get_point(). The reference to this object might be preserved as the return value.

◆ point_mut()

auto meshlib::MeshOrPoints_ProjectionResult::point_mut ( ) -> &mut meshlib::Vector3f

found closest point Returns a mutable pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named point.

Calls MR_MeshOrPoints_ProjectionResult_GetMutable_point(). The reference to this object might be preserved as the return value.

◆ set_closest_vert()

void meshlib::MeshOrPoints_ProjectionResult::set_closest_vert ( value:meshlib::VertId )

for point clouds it is the closest vertex, for meshes it is the closest vertex of the triangle with the closest point Modifies a member variable of class MR::MeshOrPoints::ProjectionResult named closestVert.

Calls MR_MeshOrPoints_ProjectionResult_Set_closestVert(). The reference to the parameter value might be preserved in this object in element closestVert.

◆ set_dist_sq()

void meshlib::MeshOrPoints_ProjectionResult::set_dist_sq ( value:f32 )

squared distance from query point to the closest point Modifies a member variable of class MR::MeshOrPoints::ProjectionResult named distSq.

Calls MR_MeshOrPoints_ProjectionResult_Set_distSq().

◆ set_is_bd()

void meshlib::MeshOrPoints_ProjectionResult::set_is_bd ( value:bool )

can be true only for meshes, if the closest point is located on the boundary of the mesh (or the current region) Modifies a member variable of class MR::MeshOrPoints::ProjectionResult named isBd.

Calls MR_MeshOrPoints_ProjectionResult_Set_isBd().

◆ set_normal()

void meshlib::MeshOrPoints_ProjectionResult::set_normal ( value:Option<&meshlib::Vector3f > )

normal at the closest point; for meshes it will be pseudonormal with the differentiation depending on closest point location (face/edge/vertex) Modifies a member variable of class MR::MeshOrPoints::ProjectionResult named normal.

Calls MR_MeshOrPoints_ProjectionResult_Set_normal(). The reference to the parameter value might be preserved in this object in element normal.

◆ set_point()

void meshlib::MeshOrPoints_ProjectionResult::set_point ( value:meshlib::Vector3f )

found closest point Modifies a member variable of class MR::MeshOrPoints::ProjectionResult named point.

Calls MR_MeshOrPoints_ProjectionResult_Set_point(). The reference to the parameter value might be preserved in this object in element point.

◆ valid()

auto meshlib::MeshOrPoints_ProjectionResult::valid ( ) const -> bool

Generated from method MR::MeshOrPoints::ProjectionResult::valid.

Calls MR_MeshOrPoints_ProjectionResult_valid().


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