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

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::MeshIntersectionResult) -> &mut meshlib::MeshIntersectionResult
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)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MeshIntersectionResult >
static auto construct_from (proj:&meshlib::PointOnFace, mtp:&meshlib::MeshTriPoint, distanceAlongLine:f32) -> meshlib::Owned< meshlib::MeshIntersectionResult >
static auto construct_from_another (_other:&meshlib::MeshIntersectionResult) -> meshlib::Owned< meshlib::MeshIntersectionResult >
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::MeshIntersectionResult. Derived classes: Direct: (non-virtual) MR::MultiMeshIntersectionResult

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::MeshIntersectionResult::construct_from ( proj:&meshlib::PointOnFace ,
mtp:&meshlib::MeshTriPoint ,
distanceAlongLine:f32  ) -> meshlib::Owned< meshlib::MeshIntersectionResult >
static

Constructs MR::MeshIntersectionResult elementwise.

Calls MR_MeshIntersectionResult_ConstructFrom(). The reference to the parameter proj might be preserved in the constructed object. The reference to the parameter mtp might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::MeshIntersectionResult::MeshIntersectionResult.

Calls MR_MeshIntersectionResult_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::MeshIntersectionResult::convert_to_bool ( ) const -> bool

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

Calls MR_MeshIntersectionResult_ConvertTo_bool().

◆ distance_along_line()

auto meshlib::MeshIntersectionResult::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::MeshIntersectionResult named distanceAlongLine.

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

◆ distance_along_line_mut()

auto meshlib::MeshIntersectionResult::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::MeshIntersectionResult named distanceAlongLine.

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

◆ mtp()

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

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

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

◆ mtp_mut()

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

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

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_MeshIntersectionResult_DefaultConstruct().

◆ proj()

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

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

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

◆ proj_mut()

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

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

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

◆ set_distance_along_line()

void meshlib::MeshIntersectionResult::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::MeshIntersectionResult named distanceAlongLine.

Calls MR_MeshIntersectionResult_Set_distanceAlongLine().

◆ set_mtp()

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

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

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

◆ set_proj()

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

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

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


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