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

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::MultiMeshIntersectionResult) -> &mut meshlib::MultiMeshIntersectionResult
auto mesh () const -> *const *const meshlib::ffi::MR_Mesh
auto mesh_mut () -> *mut *const meshlib::ffi::MR_Mesh
void set_mesh (value:Option<&meshlib::Mesh >)
auto proj () const -> &meshlib::PointOnFace
auto proj_mut () -> &mut meshlib::PointOnFace
void set_proj (value:&meshlib::PointOnFace)
auto mtp () const -> &meshlib::MeshTriPoint
auto mtp_mut () -> &mut meshlib::MeshTriPoint
void set_mtp (value:&meshlib::MeshTriPoint)
auto distance_along_line () const -> &f32
auto distance_along_line_mut () -> &mut f32
void set_distance_along_line (value:f32)
auto upcast_to_mesh_intersection_result () const -> &meshlib::MeshIntersectionResult
auto upcast_to_mesh_intersection_result_mut () -> &mut meshlib::MeshIntersectionResult

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MultiMeshIntersectionResult >
static auto construct_from_another (_other:&meshlib::MultiMeshIntersectionResult) -> meshlib::Owned< meshlib::MultiMeshIntersectionResult >
static auto static_downcast_from_mesh_intersection_result (object:&meshlib::MeshIntersectionResult) -> &Self
static auto static_downcast_from_mesh_intersection_result_mut (object:&mut meshlib::MeshIntersectionResult) -> &mut Self
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::MultiMeshIntersectionResult. Base classes: Direct: (non-virtual) MR::MeshIntersectionResult

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::MultiMeshIntersectionResult::MultiMeshIntersectionResult.

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

◆ convert_to_bool()

auto meshlib::MultiMeshIntersectionResult::convert_to_bool ( ) const -> bool

check for validity Generated from conversion operator MR::MultiMeshIntersectionResult::operator bool.

Calls MR_MultiMeshIntersectionResult_ConvertTo_bool().

◆ distance_along_line()

auto meshlib::MultiMeshIntersectionResult::distance_along_line ( ) const -> &f32

stores the distance from ray origin to the intersection point in direction units Returns a pointer to a member variable of class MR::MultiMeshIntersectionResult named distanceAlongLine.

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

◆ distance_along_line_mut()

auto meshlib::MultiMeshIntersectionResult::distance_along_line_mut ( ) -> &mut f32

stores the distance from ray origin to the intersection point in direction units Returns a mutable pointer to a member variable of class MR::MultiMeshIntersectionResult named distanceAlongLine.

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

◆ mesh()

auto meshlib::MultiMeshIntersectionResult::mesh ( ) const -> *const *const meshlib::ffi::MR_Mesh

the intersection found in this mesh Returns a pointer to a member variable of class MR::MultiMeshIntersectionResult named mesh.

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

◆ mesh_mut()

auto meshlib::MultiMeshIntersectionResult::mesh_mut ( ) -> *mut *const meshlib::ffi::MR_Mesh

the intersection found in this mesh Returns a mutable pointer to a member variable of class MR::MultiMeshIntersectionResult named mesh.

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

◆ mtp()

auto meshlib::MultiMeshIntersectionResult::mtp ( ) const -> &meshlib::MeshTriPoint

stores barycentric coordinates Returns a pointer to a member variable of class MR::MultiMeshIntersectionResult named mtp.

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

◆ mtp_mut()

auto meshlib::MultiMeshIntersectionResult::mtp_mut ( ) -> &mut meshlib::MeshTriPoint

stores barycentric coordinates Returns a mutable pointer to a member variable of class MR::MultiMeshIntersectionResult named mtp.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_MultiMeshIntersectionResult_DefaultConstruct().

◆ proj()

auto meshlib::MultiMeshIntersectionResult::proj ( ) const -> &meshlib::PointOnFace

stores intersected face and global coordinates Returns a pointer to a member variable of class MR::MultiMeshIntersectionResult named proj.

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

◆ proj_mut()

auto meshlib::MultiMeshIntersectionResult::proj_mut ( ) -> &mut meshlib::PointOnFace

stores intersected face and global coordinates Returns a mutable pointer to a member variable of class MR::MultiMeshIntersectionResult named proj.

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

◆ set_distance_along_line()

void meshlib::MultiMeshIntersectionResult::set_distance_along_line ( value:f32 )

stores the distance from ray origin to the intersection point in direction units Modifies a member variable of class MR::MultiMeshIntersectionResult named distanceAlongLine.

Calls MR_MultiMeshIntersectionResult_Set_distanceAlongLine().

◆ set_mesh()

void meshlib::MultiMeshIntersectionResult::set_mesh ( value:Option<&meshlib::Mesh > )

the intersection found in this mesh Modifies a member variable of class MR::MultiMeshIntersectionResult named mesh.

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

◆ set_mtp()

void meshlib::MultiMeshIntersectionResult::set_mtp ( value:&meshlib::MeshTriPoint )

stores barycentric coordinates Modifies a member variable of class MR::MultiMeshIntersectionResult named mtp.

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

◆ set_proj()

void meshlib::MultiMeshIntersectionResult::set_proj ( value:&meshlib::PointOnFace )

stores intersected face and global coordinates Modifies a member variable of class MR::MultiMeshIntersectionResult named proj.

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

◆ static_downcast_from_mesh_intersection_result()

auto meshlib::MultiMeshIntersectionResult::static_downcast_from_mesh_intersection_result ( object:&meshlib::MeshIntersectionResult ) -> &Self
static

Static downcast from the base class MR::MeshIntersectionResult.

Calls MR_MultiMeshIntersectionResult_StaticDowncastFrom_MR_MeshIntersectionResult(). Undefined behavior if the object isn't actually a MultiMeshIntersectionResult.

Note
This function is unsafe.

◆ static_downcast_from_mesh_intersection_result_mut()

auto meshlib::MultiMeshIntersectionResult::static_downcast_from_mesh_intersection_result_mut ( object:&mut meshlib::MeshIntersectionResult ) -> &mut Self
static

Static downcast from the base class MR::MeshIntersectionResult.

Calls MR_MultiMeshIntersectionResult_MutableStaticDowncastFrom_MR_MeshIntersectionResult(). Undefined behavior if the object isn't actually a MultiMeshIntersectionResult.

Note
This function is unsafe.

◆ upcast_to_mesh_intersection_result()

auto meshlib::MultiMeshIntersectionResult::upcast_to_mesh_intersection_result ( ) const -> &meshlib::MeshIntersectionResult

Upcasts to the base class MR::MeshIntersectionResult.

Calls MR_MultiMeshIntersectionResult_UpcastTo_MR_MeshIntersectionResult().

◆ upcast_to_mesh_intersection_result_mut()

auto meshlib::MultiMeshIntersectionResult::upcast_to_mesh_intersection_result_mut ( ) -> &mut meshlib::MeshIntersectionResult

Upcasts to the base class MR::MeshIntersectionResult.

Calls MR_MultiMeshIntersectionResult_MutableUpcastTo_MR_MeshIntersectionResult().


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