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

Public Member Functions

auto assign_from_another (_other:&meshlib::TrimWithPlaneParams) -> &mut meshlib::TrimWithPlaneParams
auto plane () const -> &meshlib::Plane3f
auto plane_mut () -> &mut meshlib::Plane3f
void set_plane (value:&meshlib::Plane3f)
auto eps () const -> &f32
auto eps_mut () -> &mut f32
void set_eps (value:f32)
auto on_edge_split_callback () const -> &meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId_float
auto on_edge_split_callback_mut () -> &mut meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId_float
void set_on_edge_split_callback (value:&meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId_float)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::TrimWithPlaneParams >
static auto construct_from (plane:&meshlib::Plane3f, eps:f32, onEdgeSplitCallback:&meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId_float) -> meshlib::Owned< meshlib::TrimWithPlaneParams >
static auto construct_from_another (_other:&meshlib::TrimWithPlaneParams) -> meshlib::Owned< meshlib::TrimWithPlaneParams >
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 basic params for trimWithPlane function Generated from class MR::TrimWithPlaneParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::TrimWithPlaneParams::construct_from ( plane:&meshlib::Plane3f ,
eps:f32 ,
onEdgeSplitCallback:&meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId_float  ) -> meshlib::Owned< meshlib::TrimWithPlaneParams >
static

Constructs MR::TrimWithPlaneParams elementwise.

Calls MR_TrimWithPlaneParams_ConstructFrom(). The reference to the parameter plane might be preserved in the constructed object. The reference to the parameter onEdgeSplitCallback might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::TrimWithPlaneParams::TrimWithPlaneParams.

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

◆ eps()

auto meshlib::TrimWithPlaneParams::eps ( ) const -> &f32

if existing vertex is within eps distance from the plane, then move the vertex not introducing new ones Returns a pointer to a member variable of class MR::TrimWithPlaneParams named eps.

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

◆ eps_mut()

auto meshlib::TrimWithPlaneParams::eps_mut ( ) -> &mut f32

if existing vertex is within eps distance from the plane, then move the vertex not introducing new ones Returns a mutable pointer to a member variable of class MR::TrimWithPlaneParams named eps.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_TrimWithPlaneParams_DefaultConstruct().

◆ on_edge_split_callback()

auto meshlib::TrimWithPlaneParams::on_edge_split_callback ( ) const -> &meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId_float

is invoked each time when an edge is split. Receives edge ID before split, edge ID after split, and weight of the origin vertex Returns a pointer to a member variable of class MR::TrimWithPlaneParams named onEdgeSplitCallback.

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

◆ on_edge_split_callback_mut()

auto meshlib::TrimWithPlaneParams::on_edge_split_callback_mut ( ) -> &mut meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId_float

is invoked each time when an edge is split. Receives edge ID before split, edge ID after split, and weight of the origin vertex Returns a mutable pointer to a member variable of class MR::TrimWithPlaneParams named onEdgeSplitCallback.

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

◆ plane()

auto meshlib::TrimWithPlaneParams::plane ( ) const -> &meshlib::Plane3f

Input plane to cut mesh with Returns a pointer to a member variable of class MR::TrimWithPlaneParams named plane.

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

◆ plane_mut()

auto meshlib::TrimWithPlaneParams::plane_mut ( ) -> &mut meshlib::Plane3f

Input plane to cut mesh with Returns a mutable pointer to a member variable of class MR::TrimWithPlaneParams named plane.

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

◆ set_eps()

void meshlib::TrimWithPlaneParams::set_eps ( value:f32 )

if existing vertex is within eps distance from the plane, then move the vertex not introducing new ones Modifies a member variable of class MR::TrimWithPlaneParams named eps.

Calls MR_TrimWithPlaneParams_Set_eps().

◆ set_on_edge_split_callback()

void meshlib::TrimWithPlaneParams::set_on_edge_split_callback ( value:&meshlib::std_function_void_from_MR_EdgeId_MR_EdgeId_float )

is invoked each time when an edge is split. Receives edge ID before split, edge ID after split, and weight of the origin vertex Modifies a member variable of class MR::TrimWithPlaneParams named onEdgeSplitCallback.

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

◆ set_plane()

void meshlib::TrimWithPlaneParams::set_plane ( value:&meshlib::Plane3f )

Input plane to cut mesh with Modifies a member variable of class MR::TrimWithPlaneParams named plane.

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


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