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

Public Member Functions

auto assign_from_another (_other:&meshlib::MovementBuildBodyParams) -> &mut meshlib::MovementBuildBodyParams
auto allow_rotation () const -> &bool
auto allow_rotation_mut () -> &mut bool
void set_allow_rotation (value:bool)
auto center () const -> &meshlib::std_optional_MR_Vector3f
auto center_mut () -> &mut meshlib::std_optional_MR_Vector3f
void set_center (value:Option<&meshlib::Vector3f >)
auto body_normal () const -> &meshlib::std_optional_MR_Vector3f
auto body_normal_mut () -> &mut meshlib::std_optional_MR_Vector3f
void set_body_normal (value:Option<&meshlib::Vector3f >)
auto body_up_dir () const -> &meshlib::std_optional_MR_Vector3f
auto body_up_dir_mut () -> &mut meshlib::std_optional_MR_Vector3f
void set_body_up_dir (value:Option<&meshlib::Vector3f >)
auto trajectory_normals () const -> *const *const meshlib::ffi::MR_std_vector_std_vector_MR_Vector3f
auto trajectory_normals_mut () -> *mut *const meshlib::ffi::MR_std_vector_std_vector_MR_Vector3f
void set_trajectory_normals (value:Option<&meshlib::std_vector_std_vector_MR_Vector3f >)
auto b2t_xf () const -> *const *const meshlib::AffineXf3f
auto b2t_xf_mut () -> *mut *const meshlib::AffineXf3f
void set_b2t_xf (value:Option<&meshlib::AffineXf3f >)
auto start_mesh_from_body () const -> &bool
auto start_mesh_from_body_mut () -> &mut bool
void set_start_mesh_from_body (value:bool)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MovementBuildBodyParams >
static auto construct_from (allowRotation:bool, center:Option<&meshlib::Vector3f >, bodyNormal:Option<&meshlib::Vector3f >, bodyUpDir:Option<&meshlib::Vector3f >, trajectoryNormals:Option<&meshlib::std_vector_std_vector_MR_Vector3f >, b2tXf:Option<&meshlib::AffineXf3f >, startMeshFromBody:bool) -> meshlib::Owned< meshlib::MovementBuildBodyParams >
static auto construct_from_another (_other:&meshlib::MovementBuildBodyParams) -> meshlib::Owned< meshlib::MovementBuildBodyParams >
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::MovementBuildBodyParams.

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

Member Function Documentation

◆ allow_rotation()

auto meshlib::MovementBuildBodyParams::allow_rotation ( ) const -> &bool

if this flag is set, rotate body in trajectory vertices according to its rotation otherwise body movement will be done without any rotation Returns a pointer to a member variable of class MR::MovementBuildBodyParams named allowRotation.

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

◆ allow_rotation_mut()

auto meshlib::MovementBuildBodyParams::allow_rotation_mut ( ) -> &mut bool

if this flag is set, rotate body in trajectory vertices according to its rotation otherwise body movement will be done without any rotation Returns a mutable pointer to a member variable of class MR::MovementBuildBodyParams named allowRotation.

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

◆ assign_from_another()

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

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

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

◆ b2t_xf()

auto meshlib::MovementBuildBodyParams::b2t_xf ( ) const -> *const *const meshlib::AffineXf3f

optional transform body space to trajectory space Returns a pointer to a member variable of class MR::MovementBuildBodyParams named b2tXf.

Calls MR_MovementBuildBodyParams_Get_b2tXf(). 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.

◆ b2t_xf_mut()

auto meshlib::MovementBuildBodyParams::b2t_xf_mut ( ) -> *mut *const meshlib::AffineXf3f

optional transform body space to trajectory space Returns a mutable pointer to a member variable of class MR::MovementBuildBodyParams named b2tXf.

Calls MR_MovementBuildBodyParams_GetMutable_b2tXf(). 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.

◆ body_normal()

auto meshlib::MovementBuildBodyParams::body_normal ( ) const -> &meshlib::std_optional_MR_Vector3f

facing direction of body, used for initial rotation (if allowRotation) if not set body accumulative normal is used Returns a pointer to a member variable of class MR::MovementBuildBodyParams named bodyNormal.

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

◆ body_normal_mut()

auto meshlib::MovementBuildBodyParams::body_normal_mut ( ) -> &mut meshlib::std_optional_MR_Vector3f

facing direction of body, used for initial rotation (if allowRotation) if not set body accumulative normal is used Returns a mutable pointer to a member variable of class MR::MovementBuildBodyParams named bodyNormal.

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

◆ body_up_dir()

auto meshlib::MovementBuildBodyParams::body_up_dir ( ) const -> &meshlib::std_optional_MR_Vector3f

up direction of body contours corresponds with trajectoryNormals if both are present and allowRotation is set Returns a pointer to a member variable of class MR::MovementBuildBodyParams named bodyUpDir.

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

◆ body_up_dir_mut()

auto meshlib::MovementBuildBodyParams::body_up_dir_mut ( ) -> &mut meshlib::std_optional_MR_Vector3f

up direction of body contours corresponds with trajectoryNormals if both are present and allowRotation is set Returns a mutable pointer to a member variable of class MR::MovementBuildBodyParams named bodyUpDir.

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

◆ center()

auto meshlib::MovementBuildBodyParams::center ( ) const -> &meshlib::std_optional_MR_Vector3f

point in body space that follows trajectory if not set body bounding box center is used Returns a pointer to a member variable of class MR::MovementBuildBodyParams named center.

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

◆ center_mut()

auto meshlib::MovementBuildBodyParams::center_mut ( ) -> &mut meshlib::std_optional_MR_Vector3f

point in body space that follows trajectory if not set body bounding box center is used Returns a mutable pointer to a member variable of class MR::MovementBuildBodyParams named center.

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

◆ construct_from()

auto meshlib::MovementBuildBodyParams::construct_from ( allowRotation:bool ,
center:Option<&meshlib::Vector3f > ,
bodyNormal:Option<&meshlib::Vector3f > ,
bodyUpDir:Option<&meshlib::Vector3f > ,
trajectoryNormals:Option<&meshlib::std_vector_std_vector_MR_Vector3f > ,
b2tXf:Option<&meshlib::AffineXf3f > ,
startMeshFromBody:bool  ) -> meshlib::Owned< meshlib::MovementBuildBodyParams >
static

Constructs MR::MovementBuildBodyParams elementwise.

Calls MR_MovementBuildBodyParams_ConstructFrom(). The reference to the parameter center might be preserved in the constructed object. The reference to the parameter bodyNormal might be preserved in the constructed object. The reference to the parameter bodyUpDir might be preserved in the constructed object. The reference to the parameter trajectoryNormals might be preserved in the constructed object. The reference to the parameter b2tXf might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::MovementBuildBodyParams::MovementBuildBodyParams.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_MovementBuildBodyParams_DefaultConstruct().

◆ set_allow_rotation()

void meshlib::MovementBuildBodyParams::set_allow_rotation ( value:bool )

if this flag is set, rotate body in trajectory vertices according to its rotation otherwise body movement will be done without any rotation Modifies a member variable of class MR::MovementBuildBodyParams named allowRotation.

Calls MR_MovementBuildBodyParams_Set_allowRotation().

◆ set_b2t_xf()

void meshlib::MovementBuildBodyParams::set_b2t_xf ( value:Option<&meshlib::AffineXf3f > )

optional transform body space to trajectory space Modifies a member variable of class MR::MovementBuildBodyParams named b2tXf.

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

◆ set_body_normal()

void meshlib::MovementBuildBodyParams::set_body_normal ( value:Option<&meshlib::Vector3f > )

facing direction of body, used for initial rotation (if allowRotation) if not set body accumulative normal is used Modifies a member variable of class MR::MovementBuildBodyParams named bodyNormal.

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

◆ set_body_up_dir()

void meshlib::MovementBuildBodyParams::set_body_up_dir ( value:Option<&meshlib::Vector3f > )

up direction of body contours corresponds with trajectoryNormals if both are present and allowRotation is set Modifies a member variable of class MR::MovementBuildBodyParams named bodyUpDir.

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

◆ set_center()

void meshlib::MovementBuildBodyParams::set_center ( value:Option<&meshlib::Vector3f > )

point in body space that follows trajectory if not set body bounding box center is used Modifies a member variable of class MR::MovementBuildBodyParams named center.

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

◆ set_start_mesh_from_body()

void meshlib::MovementBuildBodyParams::set_start_mesh_from_body ( value:bool )

if true, then body-contours will be located exactly on resulting mesh Modifies a member variable of class MR::MovementBuildBodyParams named startMeshFromBody.

Calls MR_MovementBuildBodyParams_Set_startMeshFromBody().

◆ set_trajectory_normals()

void meshlib::MovementBuildBodyParams::set_trajectory_normals ( value:Option<&meshlib::std_vector_std_vector_MR_Vector3f > )

optional normal directions in each trajectory point bodyUpDir corresponds to it if both are present and allowRotation is set Modifies a member variable of class MR::MovementBuildBodyParams named trajectoryNormals.

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

◆ start_mesh_from_body()

auto meshlib::MovementBuildBodyParams::start_mesh_from_body ( ) const -> &bool

if true, then body-contours will be located exactly on resulting mesh Returns a pointer to a member variable of class MR::MovementBuildBodyParams named startMeshFromBody.

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

◆ start_mesh_from_body_mut()

auto meshlib::MovementBuildBodyParams::start_mesh_from_body_mut ( ) -> &mut bool

if true, then body-contours will be located exactly on resulting mesh Returns a mutable pointer to a member variable of class MR::MovementBuildBodyParams named startMeshFromBody.

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

◆ trajectory_normals()

auto meshlib::MovementBuildBodyParams::trajectory_normals ( ) const -> *const *const meshlib::ffi::MR_std_vector_std_vector_MR_Vector3f

optional normal directions in each trajectory point bodyUpDir corresponds to it if both are present and allowRotation is set Returns a pointer to a member variable of class MR::MovementBuildBodyParams named trajectoryNormals.

Calls MR_MovementBuildBodyParams_Get_trajectoryNormals(). 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.

◆ trajectory_normals_mut()

auto meshlib::MovementBuildBodyParams::trajectory_normals_mut ( ) -> *mut *const meshlib::ffi::MR_std_vector_std_vector_MR_Vector3f

optional normal directions in each trajectory point bodyUpDir corresponds to it if both are present and allowRotation is set Returns a mutable pointer to a member variable of class MR::MovementBuildBodyParams named trajectoryNormals.

Calls MR_MovementBuildBodyParams_GetMutable_trajectoryNormals(). 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.


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