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

Public Member Functions

auto convert_to_mr_affine_xf3f () const -> meshlib::AffineXf3f
auto assign_from_another (_other:&meshlib::MeshToDistanceMapParams) -> &mut meshlib::MeshToDistanceMapParams
auto xf () const -> meshlib::AffineXf3f
void set_distance_limits (min:f32, max:f32)
auto x_range () const -> &meshlib::Vector3f
auto x_range_mut () -> &mut meshlib::Vector3f
void set_x_range (value:meshlib::Vector3f)
auto y_range () const -> &meshlib::Vector3f
auto y_range_mut () -> &mut meshlib::Vector3f
void set_y_range (value:meshlib::Vector3f)
auto direction () const -> &meshlib::Vector3f
auto direction_mut () -> &mut meshlib::Vector3f
void set_direction (value:meshlib::Vector3f)
auto org_point () const -> &meshlib::Vector3f
auto org_point_mut () -> &mut meshlib::Vector3f
void set_org_point (value:meshlib::Vector3f)
auto use_distance_limits () const -> &bool
auto use_distance_limits_mut () -> &mut bool
void set_use_distance_limits (value:bool)
auto allow_negative_values () const -> &bool
auto allow_negative_values_mut () -> &mut bool
void set_allow_negative_values (value:bool)
auto min_value () const -> &f32
auto min_value_mut () -> &mut f32
void set_min_value (value:f32)
auto max_value () const -> &f32
auto max_value_mut () -> &mut f32
void set_max_value (value:f32)
auto resolution () const -> &meshlib::Vector2i
auto resolution_mut () -> &mut meshlib::Vector2i
void set_resolution (value:meshlib::Vector2i)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static auto construct_from_another (_other:&meshlib::MeshToDistanceMapParams) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static auto construct_4_const_mr_vector3f_ref_mr_vector2i (direction:&meshlib::Vector3f, resolution:&meshlib::Vector2i, mp:&meshlib::MeshPart, usePreciseBoundingBox:Option< bool >) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static auto construct_4_const_mr_vector3f_ref_mr_vector2f (direction:&meshlib::Vector3f, pixelSize:&meshlib::Vector2f, mp:&meshlib::MeshPart, usePreciseBoundingBox:Option< bool >) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static auto construct_4_const_mr_matrix3f_ref_const_mr_vector3f_ref_mr_vector2i (rotation:&meshlib::Matrix3f, origin:&meshlib::Vector3f, resolution:&meshlib::Vector2i, size:&meshlib::Vector2f) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static auto construct_4_const_mr_matrix3f_ref_const_mr_vector3f_ref_mr_vector2f (rotation:&meshlib::Matrix3f, origin:&meshlib::Vector3f, pixelSize:&meshlib::Vector2f, resolution:&meshlib::Vector2i) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static auto construct_4_const_mr_matrix3f_ref_const_mr_vector2i_ref (rotation:&meshlib::Matrix3f, resolution:&meshlib::Vector2i, mp:&meshlib::MeshPart, usePreciseBoundingBox:Option< bool >) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static auto construct_3_mr_vector2i (xf:&meshlib::AffineXf3f, resolution:&meshlib::Vector2i, size:&meshlib::Vector2f) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static auto construct_3_mr_vector2f (xf:&meshlib::AffineXf3f, pixelSize:&meshlib::Vector2f, resolution:&meshlib::Vector2i) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
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::MeshToDistanceMapParams.

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

Member Function Documentation

◆ allow_negative_values()

auto meshlib::MeshToDistanceMapParams::allow_negative_values ( ) const -> &bool

< allows to find intersections in backward to direction vector with negative values Returns a pointer to a member variable of class MR::MeshToDistanceMapParams named allowNegativeValues.

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

◆ allow_negative_values_mut()

auto meshlib::MeshToDistanceMapParams::allow_negative_values_mut ( ) -> &mut bool

< allows to find intersections in backward to direction vector with negative values Returns a mutable pointer to a member variable of class MR::MeshToDistanceMapParams named allowNegativeValues.

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

◆ assign_from_another()

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

Generated from method MR::MeshToDistanceMapParams::operator=.

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

◆ construct_3_mr_vector2f()

auto meshlib::MeshToDistanceMapParams::construct_3_mr_vector2f ( xf:&meshlib::AffineXf3f ,
pixelSize:&meshlib::Vector2f ,
resolution:&meshlib::Vector2i  ) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static

Generated from constructor MR::MeshToDistanceMapParams::MeshToDistanceMapParams.

Calls MR_MeshToDistanceMapParams_Construct_3_MR_Vector2f(). The reference to the parameter xf might be preserved in the constructed object. The reference to the parameter pixelSize might be preserved in the constructed object. The reference to the parameter resolution might be preserved in the constructed object.

◆ construct_3_mr_vector2i()

auto meshlib::MeshToDistanceMapParams::construct_3_mr_vector2i ( xf:&meshlib::AffineXf3f ,
resolution:&meshlib::Vector2i ,
size:&meshlib::Vector2f  ) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static

The most general constructor. Use it if you have to find special view, resolution, distance map with visual the part of the model etc. All params match is in the user responsibility xf.b - origin point: pixel(0,0) with value 0. xf.A.z - direction xf.A.x - xRange xf.A.y - yRange All Output Distance map values could be positive and negative by default. Set allowNegativeValues to false if negative values are not required Generated from constructor MR::MeshToDistanceMapParams::MeshToDistanceMapParams.

Calls MR_MeshToDistanceMapParams_Construct_3_MR_Vector2i(). The reference to the parameter xf might be preserved in the constructed object. The reference to the parameter resolution might be preserved in the constructed object. The reference to the parameter size might be preserved in the constructed object.

◆ construct_4_const_mr_matrix3f_ref_const_mr_vector2i_ref()

auto meshlib::MeshToDistanceMapParams::construct_4_const_mr_matrix3f_ref_const_mr_vector2i_ref ( rotation:&meshlib::Matrix3f ,
resolution:&meshlib::Vector2i ,
mp:&meshlib::MeshPart ,
usePreciseBoundingBox:Option< bool >  ) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static

input matrix should be orthonormal! rotation.z - direction rotation.x * (box X length) - xRange rotation.y * (box Y length) - yRange All Output Distance map values will be positive usePreciseBoundingBox false (fast): use general (cached) bounding box with applied rotation usePreciseBoundingBox true (slow): compute bounding box from points with respect to rotation Generated from constructor MR::MeshToDistanceMapParams::MeshToDistanceMapParams.

Calls MR_MeshToDistanceMapParams_Construct_4_const_MR_Matrix3f_ref_const_MR_Vector2i_ref(). The reference to the parameter rotation might be preserved in the constructed object. The reference to the parameter resolution might be preserved in the constructed object. The reference to the parameter mp might be preserved in the constructed object.

◆ construct_4_const_mr_matrix3f_ref_const_mr_vector3f_ref_mr_vector2f()

auto meshlib::MeshToDistanceMapParams::construct_4_const_mr_matrix3f_ref_const_mr_vector3f_ref_mr_vector2f ( rotation:&meshlib::Matrix3f ,
origin:&meshlib::Vector3f ,
pixelSize:&meshlib::Vector2f ,
resolution:&meshlib::Vector2i  ) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static

Generated from constructor MR::MeshToDistanceMapParams::MeshToDistanceMapParams.

Calls MR_MeshToDistanceMapParams_Construct_4_const_MR_Matrix3f_ref_const_MR_Vector3f_ref_MR_Vector2f(). The reference to the parameter rotation might be preserved in the constructed object. The reference to the parameter origin might be preserved in the constructed object. The reference to the parameter pixelSize might be preserved in the constructed object. The reference to the parameter resolution might be preserved in the constructed object.

◆ construct_4_const_mr_matrix3f_ref_const_mr_vector3f_ref_mr_vector2i()

auto meshlib::MeshToDistanceMapParams::construct_4_const_mr_matrix3f_ref_const_mr_vector3f_ref_mr_vector2i ( rotation:&meshlib::Matrix3f ,
origin:&meshlib::Vector3f ,
resolution:&meshlib::Vector2i ,
size:&meshlib::Vector2f  ) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static

input matrix should be orthonormal! rotation.z - direction rotation.x * (box X length) - xRange rotation.y * (box Y length) - yRange All Output Distance map values will be positive Generated from constructor MR::MeshToDistanceMapParams::MeshToDistanceMapParams.

Calls MR_MeshToDistanceMapParams_Construct_4_const_MR_Matrix3f_ref_const_MR_Vector3f_ref_MR_Vector2i(). The reference to the parameter rotation might be preserved in the constructed object. The reference to the parameter origin might be preserved in the constructed object. The reference to the parameter resolution might be preserved in the constructed object. The reference to the parameter size might be preserved in the constructed object.

◆ construct_4_const_mr_vector3f_ref_mr_vector2f()

auto meshlib::MeshToDistanceMapParams::construct_4_const_mr_vector3f_ref_mr_vector2f ( direction:&meshlib::Vector3f ,
pixelSize:&meshlib::Vector2f ,
mp:&meshlib::MeshPart ,
usePreciseBoundingBox:Option< bool >  ) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static

Generated from constructor MR::MeshToDistanceMapParams::MeshToDistanceMapParams.

Calls MR_MeshToDistanceMapParams_Construct_4_const_MR_Vector3f_ref_MR_Vector2f(). The reference to the parameter direction might be preserved in the constructed object. The reference to the parameter pixelSize might be preserved in the constructed object. The reference to the parameter mp might be preserved in the constructed object.

◆ construct_4_const_mr_vector3f_ref_mr_vector2i()

auto meshlib::MeshToDistanceMapParams::construct_4_const_mr_vector3f_ref_mr_vector2i ( direction:&meshlib::Vector3f ,
resolution:&meshlib::Vector2i ,
mp:&meshlib::MeshPart ,
usePreciseBoundingBox:Option< bool >  ) -> meshlib::Owned< meshlib::MeshToDistanceMapParams >
static

direction vector shows the projections vector to the distance map for points on model yRange and xRange directions make orthonormal basis with direction see Vector3<T>::perpendicular() for more details All Output Distance map values will be positive usePreciseBoundingBox false (fast): use general (cached) bounding box with applied rotation usePreciseBoundingBox true (slow): compute bounding box from points with respect to rotation Generated from constructor MR::MeshToDistanceMapParams::MeshToDistanceMapParams.

Calls MR_MeshToDistanceMapParams_Construct_4_const_MR_Vector3f_ref_MR_Vector2i(). The reference to the parameter direction might be preserved in the constructed object. The reference to the parameter resolution might be preserved in the constructed object. The reference to the parameter mp might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::MeshToDistanceMapParams::MeshToDistanceMapParams.

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

◆ convert_to_mr_affine_xf3f()

auto meshlib::MeshToDistanceMapParams::convert_to_mr_affine_xf3f ( ) const -> meshlib::AffineXf3f

converts in transformation Generated from conversion operator MR::MeshToDistanceMapParams::operator MR::AffineXf3f.

Calls MR_MeshToDistanceMapParams_ConvertTo_MR_AffineXf3f().

◆ direction()

auto meshlib::MeshToDistanceMapParams::direction ( ) const -> &meshlib::Vector3f

< direction of intersection ray Returns a pointer to a member variable of class MR::MeshToDistanceMapParams named direction.

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

◆ direction_mut()

auto meshlib::MeshToDistanceMapParams::direction_mut ( ) -> &mut meshlib::Vector3f

< direction of intersection ray Returns a mutable pointer to a member variable of class MR::MeshToDistanceMapParams named direction.

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

◆ max_value()

auto meshlib::MeshToDistanceMapParams::max_value ( ) const -> &f32

< Using of this parameter depends on useDistanceLimits Returns a pointer to a member variable of class MR::MeshToDistanceMapParams named maxValue.

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

◆ max_value_mut()

auto meshlib::MeshToDistanceMapParams::max_value_mut ( ) -> &mut f32

< Using of this parameter depends on useDistanceLimits Returns a mutable pointer to a member variable of class MR::MeshToDistanceMapParams named maxValue.

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

◆ min_value()

auto meshlib::MeshToDistanceMapParams::min_value ( ) const -> &f32

< Using of this parameter depends on useDistanceLimits Returns a pointer to a member variable of class MR::MeshToDistanceMapParams named minValue.

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

◆ min_value_mut()

auto meshlib::MeshToDistanceMapParams::min_value_mut ( ) -> &mut f32

< Using of this parameter depends on useDistanceLimits Returns a mutable pointer to a member variable of class MR::MeshToDistanceMapParams named minValue.

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

◆ new()

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

default constructor. Manual params initialization is required:

Calls MR_MeshToDistanceMapParams_DefaultConstruct().

◆ org_point()

auto meshlib::MeshToDistanceMapParams::org_point ( ) const -> &meshlib::Vector3f

< location of (0,0) pixel with value 0.f Returns a pointer to a member variable of class MR::MeshToDistanceMapParams named orgPoint.

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

◆ org_point_mut()

auto meshlib::MeshToDistanceMapParams::org_point_mut ( ) -> &mut meshlib::Vector3f

< location of (0,0) pixel with value 0.f Returns a mutable pointer to a member variable of class MR::MeshToDistanceMapParams named orgPoint.

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

◆ resolution()

auto meshlib::MeshToDistanceMapParams::resolution ( ) const -> &meshlib::Vector2i

< resolution of distance map Returns a pointer to a member variable of class MR::MeshToDistanceMapParams named resolution.

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

◆ resolution_mut()

auto meshlib::MeshToDistanceMapParams::resolution_mut ( ) -> &mut meshlib::Vector2i

< resolution of distance map Returns a mutable pointer to a member variable of class MR::MeshToDistanceMapParams named resolution.

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

◆ set_allow_negative_values()

void meshlib::MeshToDistanceMapParams::set_allow_negative_values ( value:bool )

< allows to find intersections in backward to direction vector with negative values Modifies a member variable of class MR::MeshToDistanceMapParams named allowNegativeValues.

Calls MR_MeshToDistanceMapParams_Set_allowNegativeValues().

◆ set_direction()

void meshlib::MeshToDistanceMapParams::set_direction ( value:meshlib::Vector3f )

< direction of intersection ray Modifies a member variable of class MR::MeshToDistanceMapParams named direction.

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

◆ set_distance_limits()

void meshlib::MeshToDistanceMapParams::set_distance_limits ( min:f32 ,
max:f32  )

if distance is not in set range, pixel became invalid default value: false. Any distance will be applied (include negative) Generated from method MR::MeshToDistanceMapParams::setDistanceLimits.

Calls MR_MeshToDistanceMapParams_setDistanceLimits().

◆ set_max_value()

void meshlib::MeshToDistanceMapParams::set_max_value ( value:f32 )

< Using of this parameter depends on useDistanceLimits Modifies a member variable of class MR::MeshToDistanceMapParams named maxValue.

Calls MR_MeshToDistanceMapParams_Set_maxValue().

◆ set_min_value()

void meshlib::MeshToDistanceMapParams::set_min_value ( value:f32 )

< Using of this parameter depends on useDistanceLimits Modifies a member variable of class MR::MeshToDistanceMapParams named minValue.

Calls MR_MeshToDistanceMapParams_Set_minValue().

◆ set_org_point()

void meshlib::MeshToDistanceMapParams::set_org_point ( value:meshlib::Vector3f )

< location of (0,0) pixel with value 0.f Modifies a member variable of class MR::MeshToDistanceMapParams named orgPoint.

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

◆ set_resolution()

void meshlib::MeshToDistanceMapParams::set_resolution ( value:meshlib::Vector2i )

< resolution of distance map Modifies a member variable of class MR::MeshToDistanceMapParams named resolution.

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

◆ set_use_distance_limits()

void meshlib::MeshToDistanceMapParams::set_use_distance_limits ( value:bool )

< out of limits intersections will be set to non-valid Modifies a member variable of class MR::MeshToDistanceMapParams named useDistanceLimits.

Calls MR_MeshToDistanceMapParams_Set_useDistanceLimits().

◆ set_x_range()

void meshlib::MeshToDistanceMapParams::set_x_range ( value:meshlib::Vector3f )

< Cartesian range vector between distance map borders in X direction Modifies a member variable of class MR::MeshToDistanceMapParams named xRange.

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

◆ set_y_range()

void meshlib::MeshToDistanceMapParams::set_y_range ( value:meshlib::Vector3f )

< Cartesian range vector between distance map borders in Y direction Modifies a member variable of class MR::MeshToDistanceMapParams named yRange.

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

◆ use_distance_limits()

auto meshlib::MeshToDistanceMapParams::use_distance_limits ( ) const -> &bool

< out of limits intersections will be set to non-valid Returns a pointer to a member variable of class MR::MeshToDistanceMapParams named useDistanceLimits.

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

◆ use_distance_limits_mut()

auto meshlib::MeshToDistanceMapParams::use_distance_limits_mut ( ) -> &mut bool

< out of limits intersections will be set to non-valid Returns a mutable pointer to a member variable of class MR::MeshToDistanceMapParams named useDistanceLimits.

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

◆ x_range()

auto meshlib::MeshToDistanceMapParams::x_range ( ) const -> &meshlib::Vector3f

< Cartesian range vector between distance map borders in X direction Returns a pointer to a member variable of class MR::MeshToDistanceMapParams named xRange.

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

◆ x_range_mut()

auto meshlib::MeshToDistanceMapParams::x_range_mut ( ) -> &mut meshlib::Vector3f

< Cartesian range vector between distance map borders in X direction Returns a mutable pointer to a member variable of class MR::MeshToDistanceMapParams named xRange.

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

◆ xf()

auto meshlib::MeshToDistanceMapParams::xf ( ) const -> meshlib::AffineXf3f

Generated from method MR::MeshToDistanceMapParams::xf.

Calls MR_MeshToDistanceMapParams_xf().

◆ y_range()

auto meshlib::MeshToDistanceMapParams::y_range ( ) const -> &meshlib::Vector3f

< Cartesian range vector between distance map borders in Y direction Returns a pointer to a member variable of class MR::MeshToDistanceMapParams named yRange.

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

◆ y_range_mut()

auto meshlib::MeshToDistanceMapParams::y_range_mut ( ) -> &mut meshlib::Vector3f

< Cartesian range vector between distance map borders in Y direction Returns a mutable pointer to a member variable of class MR::MeshToDistanceMapParams named yRange.

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


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