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

Public Member Functions

auto assign_from_another (_other:&meshlib::features::MeasureResult) -> &mut meshlib::features::MeasureResult
void swap_objects ()
auto distance () const -> &meshlib::features::MeasureResult_Distance
auto distance_mut () -> &mut meshlib::features::MeasureResult_Distance
void set_distance (value:&meshlib::features::MeasureResult_Distance)
auto center_distance () const -> &meshlib::features::MeasureResult_Distance
auto center_distance_mut () -> &mut meshlib::features::MeasureResult_Distance
void set_center_distance (value:&meshlib::features::MeasureResult_Distance)
auto angle () const -> &meshlib::features::MeasureResult_Angle
auto angle_mut () -> &mut meshlib::features::MeasureResult_Angle
void set_angle (value:&meshlib::features::MeasureResult_Angle)
auto intersections () const -> &meshlib::std_vector_std_variant_MR_Sphere3f_MR_Features_Primitives_ConeSegment_MR_Features_Primitives_Plane
auto intersections_mut () -> &mut meshlib::std_vector_std_variant_MR_Sphere3f_MR_Features_Primitives_ConeSegment_MR_Features_Primitives_Plane
void set_intersections (value:&meshlib::std_vector_std_variant_MR_Sphere3f_MR_Features_Primitives_ConeSegment_MR_Features_Primitives_Plane)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::features::MeasureResult >
static auto construct_from (distance:&meshlib::features::MeasureResult_Distance, centerDistance:&meshlib::features::MeasureResult_Distance, angle:&meshlib::features::MeasureResult_Angle, intersections:&meshlib::std_vector_std_variant_MR_Sphere3f_MR_Features_Primitives_ConeSegment_MR_Features_Primitives_Plane) -> meshlib::Owned< meshlib::features::MeasureResult >
static auto construct_from_another (_other:&meshlib::features::MeasureResult) -> meshlib::Owned< meshlib::features::MeasureResult >
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

Stores the results of measuring two objects relative to one another. Generated from class MR::Features::MeasureResult.

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

Member Function Documentation

◆ angle()

auto meshlib::features::MeasureResult::angle ( ) const -> &meshlib::features::MeasureResult_Angle

Returns a pointer to a member variable of class MR::Features::MeasureResult named angle.

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

◆ angle_mut()

auto meshlib::features::MeasureResult::angle_mut ( ) -> &mut meshlib::features::MeasureResult_Angle

Returns a mutable pointer to a member variable of class MR::Features::MeasureResult named angle.

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

◆ assign_from_another()

auto meshlib::features::MeasureResult::assign_from_another ( _other:&meshlib::features::MeasureResult ) -> &mut meshlib::features::MeasureResult

Generated from method MR::Features::MeasureResult::operator=.

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

◆ center_distance()

auto meshlib::features::MeasureResult::center_distance ( ) const -> &meshlib::features::MeasureResult_Distance

Some approximation of the distance. For planes and lines, this expects them to be mostly parallel. For everything else, it just takes the feature center. Returns a pointer to a member variable of class MR::Features::MeasureResult named centerDistance.

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

◆ center_distance_mut()

auto meshlib::features::MeasureResult::center_distance_mut ( ) -> &mut meshlib::features::MeasureResult_Distance

Some approximation of the distance. For planes and lines, this expects them to be mostly parallel. For everything else, it just takes the feature center. Returns a mutable pointer to a member variable of class MR::Features::MeasureResult named centerDistance.

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

◆ construct_from()

Constructs MR::Features::MeasureResult elementwise.

Calls MR_Features_MeasureResult_ConstructFrom(). The reference to the parameter distance might be preserved in the constructed object. The reference to the parameter centerDistance might be preserved in the constructed object. The reference to the parameter angle might be preserved in the constructed object. The reference to the parameter intersections might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::Features::MeasureResult::MeasureResult.

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

◆ distance()

auto meshlib::features::MeasureResult::distance ( ) const -> &meshlib::features::MeasureResult_Distance

Exact distance. Returns a pointer to a member variable of class MR::Features::MeasureResult named distance.

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

◆ distance_mut()

auto meshlib::features::MeasureResult::distance_mut ( ) -> &mut meshlib::features::MeasureResult_Distance

Exact distance. Returns a mutable pointer to a member variable of class MR::Features::MeasureResult named distance.

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

◆ intersections()

The primitives obtained from intersecting those two. Returns a pointer to a member variable of class MR::Features::MeasureResult named intersections.

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

◆ intersections_mut()

The primitives obtained from intersecting those two. Returns a mutable pointer to a member variable of class MR::Features::MeasureResult named intersections.

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

◆ new()

auto meshlib::features::MeasureResult::new ( ) -> meshlib::Owned< meshlib::features::MeasureResult >
static

Constructs an empty (default-constructed) instance.

Calls MR_Features_MeasureResult_DefaultConstruct().

◆ set_angle()

void meshlib::features::MeasureResult::set_angle ( value:&meshlib::features::MeasureResult_Angle )

Modifies a member variable of class MR::Features::MeasureResult named angle.

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

◆ set_center_distance()

void meshlib::features::MeasureResult::set_center_distance ( value:&meshlib::features::MeasureResult_Distance )

Some approximation of the distance. For planes and lines, this expects them to be mostly parallel. For everything else, it just takes the feature center. Modifies a member variable of class MR::Features::MeasureResult named centerDistance.

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

◆ set_distance()

void meshlib::features::MeasureResult::set_distance ( value:&meshlib::features::MeasureResult_Distance )

Exact distance. Modifies a member variable of class MR::Features::MeasureResult named distance.

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

◆ set_intersections()

The primitives obtained from intersecting those two. Modifies a member variable of class MR::Features::MeasureResult named intersections.

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

◆ swap_objects()

void meshlib::features::MeasureResult::swap_objects ( )

Modifies the object to swap A and B; Generated from method MR::Features::MeasureResult::swapObjects.

Calls MR_Features_MeasureResult_swapObjects().


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