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

Public Member Functions

auto assign_from_another (_other:&meshlib::SplineSettings) -> &mut meshlib::SplineSettings
auto sampling_step () const -> &f32
auto sampling_step_mut () -> &mut f32
void set_sampling_step (value:f32)
auto control_stability () const -> &f32
auto control_stability_mut () -> &mut f32
void set_control_stability (value:f32)
auto iterations () const -> &core::ffi::c_int
auto iterations_mut () -> &mut core::ffi::c_int
void set_iterations (value:core::ffi::c_int)
auto normals () const -> *const *mut meshlib::ffi::MR_std_vector_MR_Vector3f
auto normals_mut () -> *mut *mut meshlib::ffi::MR_std_vector_MR_Vector3f
void set_normals (value:Option<&mut meshlib::std_vector_MR_Vector3f >)
auto normals_affect_shape () const -> &bool
auto normals_affect_shape_mut () -> &mut bool
void set_normals_affect_shape (value:bool)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::SplineSettings >
static auto construct_from (samplingStep:f32, controlStability:f32, iterations:core::ffi::c_int, normals:Option<&mut meshlib::std_vector_MR_Vector3f >, normalsAffectShape:bool) -> meshlib::Owned< meshlib::SplineSettings >
static auto construct_from_another (_other:&meshlib::SplineSettings) -> meshlib::Owned< meshlib::SplineSettings >
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::SplineSettings.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::SplineSettings::construct_from ( samplingStep:f32 ,
controlStability:f32 ,
iterations:core::ffi::c_int ,
normals:Option<&mut meshlib::std_vector_MR_Vector3f > ,
normalsAffectShape:bool  ) -> meshlib::Owned< meshlib::SplineSettings >
static

Constructs MR::SplineSettings elementwise.

Calls MR_SplineSettings_ConstructFrom(). The reference to the parameter normals might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::SplineSettings::SplineSettings.

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

◆ control_stability()

auto meshlib::SplineSettings::control_stability ( ) const -> &f32

a positive value, the more the value the closer resulting spline will be to given control points Returns a pointer to a member variable of class MR::SplineSettings named controlStability.

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

◆ control_stability_mut()

auto meshlib::SplineSettings::control_stability_mut ( ) -> &mut f32

a positive value, the more the value the closer resulting spline will be to given control points Returns a mutable pointer to a member variable of class MR::SplineSettings named controlStability.

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

◆ iterations()

auto meshlib::SplineSettings::iterations ( ) const -> &core::ffi::c_int

the shape of resulting spline depends on the total number of points in the contour, which in turn depends on the length of input contour being sampled; setting iterations greater than one allows you to pass a constructed spline as a better input contour to the next run of the algorithm Returns a pointer to a member variable of class MR::SplineSettings named iterations.

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

◆ iterations_mut()

auto meshlib::SplineSettings::iterations_mut ( ) -> &mut core::ffi::c_int

the shape of resulting spline depends on the total number of points in the contour, which in turn depends on the length of input contour being sampled; setting iterations greater than one allows you to pass a constructed spline as a better input contour to the next run of the algorithm Returns a mutable pointer to a member variable of class MR::SplineSettings named iterations.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_SplineSettings_DefaultConstruct().

◆ normals()

auto meshlib::SplineSettings::normals ( ) const -> *const *mut meshlib::ffi::MR_std_vector_MR_Vector3f

optional parameter with the normals of input points that will be resampled to become normals of output points Returns a pointer to a member variable of class MR::SplineSettings named normals.

Calls MR_SplineSettings_Get_normals(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ normals_affect_shape()

auto meshlib::SplineSettings::normals_affect_shape ( ) const -> &bool

if true and normals are provided, then the curve at marked points will try to be orthogonal to given normal there Returns a pointer to a member variable of class MR::SplineSettings named normalsAffectShape.

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

◆ normals_affect_shape_mut()

auto meshlib::SplineSettings::normals_affect_shape_mut ( ) -> &mut bool

if true and normals are provided, then the curve at marked points will try to be orthogonal to given normal there Returns a mutable pointer to a member variable of class MR::SplineSettings named normalsAffectShape.

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

◆ normals_mut()

auto meshlib::SplineSettings::normals_mut ( ) -> *mut *mut meshlib::ffi::MR_std_vector_MR_Vector3f

optional parameter with the normals of input points that will be resampled to become normals of output points Returns a mutable pointer to a member variable of class MR::SplineSettings named normals.

Calls MR_SplineSettings_GetMutable_normals(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ sampling_step()

auto meshlib::SplineSettings::sampling_step ( ) const -> &f32

additional points will be added between each pair of control points, until the distance between neighbor points becomes less than this distance Returns a pointer to a member variable of class MR::SplineSettings named samplingStep.

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

◆ sampling_step_mut()

auto meshlib::SplineSettings::sampling_step_mut ( ) -> &mut f32

additional points will be added between each pair of control points, until the distance between neighbor points becomes less than this distance Returns a mutable pointer to a member variable of class MR::SplineSettings named samplingStep.

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

◆ set_control_stability()

void meshlib::SplineSettings::set_control_stability ( value:f32 )

a positive value, the more the value the closer resulting spline will be to given control points Modifies a member variable of class MR::SplineSettings named controlStability.

Calls MR_SplineSettings_Set_controlStability().

◆ set_iterations()

void meshlib::SplineSettings::set_iterations ( value:core::ffi::c_int )

the shape of resulting spline depends on the total number of points in the contour, which in turn depends on the length of input contour being sampled; setting iterations greater than one allows you to pass a constructed spline as a better input contour to the next run of the algorithm Modifies a member variable of class MR::SplineSettings named iterations.

Calls MR_SplineSettings_Set_iterations().

◆ set_normals()

void meshlib::SplineSettings::set_normals ( value:Option<&mut meshlib::std_vector_MR_Vector3f > )

optional parameter with the normals of input points that will be resampled to become normals of output points Modifies a member variable of class MR::SplineSettings named normals.

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

◆ set_normals_affect_shape()

void meshlib::SplineSettings::set_normals_affect_shape ( value:bool )

if true and normals are provided, then the curve at marked points will try to be orthogonal to given normal there Modifies a member variable of class MR::SplineSettings named normalsAffectShape.

Calls MR_SplineSettings_Set_normalsAffectShape().

◆ set_sampling_step()

void meshlib::SplineSettings::set_sampling_step ( value:f32 )

additional points will be added between each pair of control points, until the distance between neighbor points becomes less than this distance Modifies a member variable of class MR::SplineSettings named samplingStep.

Calls MR_SplineSettings_Set_samplingStep().


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