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

Public Member Functions

auto assign_from_another (_other:&meshlib::BendContoursAlongCurveParams) -> &mut meshlib::BendContoursAlongCurveParams
auto pivot_curve_time () const -> &f32
auto pivot_curve_time_mut () -> &mut f32
void set_pivot_curve_time (value:f32)
auto pivot_box_point () const -> &meshlib::Vector2f
auto pivot_box_point_mut () -> &mut meshlib::Vector2f
void set_pivot_box_point (value:meshlib::Vector2f)
auto periodic_curve () const -> &bool
auto periodic_curve_mut () -> &mut bool
void set_periodic_curve (value:bool)
auto stretch () const -> &bool
auto stretch_mut () -> &mut bool
void set_stretch (value:bool)
auto extrusion () const -> &f32
auto extrusion_mut () -> &mut f32
void set_extrusion (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::BendContoursAlongCurveParams >
static auto construct_from (pivotCurveTime:f32, pivotBoxPoint:meshlib::Vector2f, periodicCurve:bool, stretch:bool, extrusion:f32) -> meshlib::Owned< meshlib::BendContoursAlongCurveParams >
static auto construct_from_another (_other:&meshlib::BendContoursAlongCurveParams) -> meshlib::Owned< meshlib::BendContoursAlongCurveParams >
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

Parameters for aligning 2d contours along given curve Generated from class MR::BendContoursAlongCurveParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::BendContoursAlongCurveParams::construct_from ( pivotCurveTime:f32 ,
pivotBoxPoint:meshlib::Vector2f ,
periodicCurve:bool ,
stretch:bool ,
extrusion:f32  ) -> meshlib::Owned< meshlib::BendContoursAlongCurveParams >
static

Constructs MR::BendContoursAlongCurveParams elementwise.

Calls MR_BendContoursAlongCurveParams_ConstructFrom(). The reference to the parameter pivotBoxPoint might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::BendContoursAlongCurveParams::BendContoursAlongCurveParams.

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

◆ extrusion()

auto meshlib::BendContoursAlongCurveParams::extrusion ( ) const -> &f32

Contours extrusion outside of curve level Returns a pointer to a member variable of class MR::BendContoursAlongCurveParams named extrusion.

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

◆ extrusion_mut()

auto meshlib::BendContoursAlongCurveParams::extrusion_mut ( ) -> &mut f32

Contours extrusion outside of curve level Returns a mutable pointer to a member variable of class MR::BendContoursAlongCurveParams named extrusion.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_BendContoursAlongCurveParams_DefaultConstruct().

◆ periodic_curve()

auto meshlib::BendContoursAlongCurveParams::periodic_curve ( ) const -> &bool

if true, curve parameter will be always within [0,curve.totalLength) with repetition: xr := mod( x, curve.totalLength ) Returns a pointer to a member variable of class MR::BendContoursAlongCurveParams named periodicCurve.

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

◆ periodic_curve_mut()

auto meshlib::BendContoursAlongCurveParams::periodic_curve_mut ( ) -> &mut bool

if true, curve parameter will be always within [0,curve.totalLength) with repetition: xr := mod( x, curve.totalLength ) Returns a mutable pointer to a member variable of class MR::BendContoursAlongCurveParams named periodicCurve.

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

◆ pivot_box_point()

auto meshlib::BendContoursAlongCurveParams::pivot_box_point ( ) const -> &meshlib::Vector2f

Position of the curve(pivotCurveTime) in the contours' bounding box: (0, 0) - bottom left, (0, 1) - bottom right, (0.5, 0.5) - center, (1, 1) - top right Returns a pointer to a member variable of class MR::BendContoursAlongCurveParams named pivotBoxPoint.

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

◆ pivot_box_point_mut()

auto meshlib::BendContoursAlongCurveParams::pivot_box_point_mut ( ) -> &mut meshlib::Vector2f

Position of the curve(pivotCurveTime) in the contours' bounding box: (0, 0) - bottom left, (0, 1) - bottom right, (0.5, 0.5) - center, (1, 1) - top right Returns a mutable pointer to a member variable of class MR::BendContoursAlongCurveParams named pivotBoxPoint.

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

◆ pivot_curve_time()

auto meshlib::BendContoursAlongCurveParams::pivot_curve_time ( ) const -> &f32

Position on the curve, where bounding box's pivot point is mapped (0) - start of the curve, (1) - end of the curve Returns a pointer to a member variable of class MR::BendContoursAlongCurveParams named pivotCurveTime.

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

◆ pivot_curve_time_mut()

auto meshlib::BendContoursAlongCurveParams::pivot_curve_time_mut ( ) -> &mut f32

Position on the curve, where bounding box's pivot point is mapped (0) - start of the curve, (1) - end of the curve Returns a mutable pointer to a member variable of class MR::BendContoursAlongCurveParams named pivotCurveTime.

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

◆ set_extrusion()

void meshlib::BendContoursAlongCurveParams::set_extrusion ( value:f32 )

Contours extrusion outside of curve level Modifies a member variable of class MR::BendContoursAlongCurveParams named extrusion.

Calls MR_BendContoursAlongCurveParams_Set_extrusion().

◆ set_periodic_curve()

void meshlib::BendContoursAlongCurveParams::set_periodic_curve ( value:bool )

if true, curve parameter will be always within [0,curve.totalLength) with repetition: xr := mod( x, curve.totalLength ) Modifies a member variable of class MR::BendContoursAlongCurveParams named periodicCurve.

Calls MR_BendContoursAlongCurveParams_Set_periodicCurve().

◆ set_pivot_box_point()

void meshlib::BendContoursAlongCurveParams::set_pivot_box_point ( value:meshlib::Vector2f )

Position of the curve(pivotCurveTime) in the contours' bounding box: (0, 0) - bottom left, (0, 1) - bottom right, (0.5, 0.5) - center, (1, 1) - top right Modifies a member variable of class MR::BendContoursAlongCurveParams named pivotBoxPoint.

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

◆ set_pivot_curve_time()

void meshlib::BendContoursAlongCurveParams::set_pivot_curve_time ( value:f32 )

Position on the curve, where bounding box's pivot point is mapped (0) - start of the curve, (1) - end of the curve Modifies a member variable of class MR::BendContoursAlongCurveParams named pivotCurveTime.

Calls MR_BendContoursAlongCurveParams_Set_pivotCurveTime().

◆ set_stretch()

void meshlib::BendContoursAlongCurveParams::set_stretch ( value:bool )

stretch all contours along curve to fit in curve.totalLength Modifies a member variable of class MR::BendContoursAlongCurveParams named stretch.

Calls MR_BendContoursAlongCurveParams_Set_stretch().

◆ stretch()

auto meshlib::BendContoursAlongCurveParams::stretch ( ) const -> &bool

stretch all contours along curve to fit in curve.totalLength Returns a pointer to a member variable of class MR::BendContoursAlongCurveParams named stretch.

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

◆ stretch_mut()

auto meshlib::BendContoursAlongCurveParams::stretch_mut ( ) -> &mut bool

stretch all contours along curve to fit in curve.totalLength Returns a mutable pointer to a member variable of class MR::BendContoursAlongCurveParams named stretch.

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


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