MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.MeshIntersectionResult Class Reference
Inheritance diagram for meshlib.MeshIntersectionResult:

Public Member Functions

 MeshIntersectionResult (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MeshIntersectionResult ()
 MeshIntersectionResult (meshlib.PointOnFace proj, meshlib.MeshTriPoint mtp, float distanceAlongLine)
 MeshIntersectionResult (meshlib.MeshIntersectionResult _other)
boolean convertTo_bool ()
meshlib.MeshIntersectionResult assignFromAnother (meshlib.MeshIntersectionResult _other)
meshlib.PointOnFace proj ()
void setProj (meshlib.PointOnFace value)
meshlib.MeshTriPoint mtp ()
void setMtp (meshlib.MeshTriPoint value)
float distanceAlongLine ()
void setDistanceAlongLine (float value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Generated from class MR::MeshIntersectionResult. Derived classes: Direct: (non-virtual) MR::MultiMeshIntersectionResult

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ MeshIntersectionResult() [1/4]

meshlib.MeshIntersectionResult.MeshIntersectionResult ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ MeshIntersectionResult() [2/4]

meshlib.MeshIntersectionResult.MeshIntersectionResult ( )

Constructs an empty (default-constructed) instance.

Calls MR_MeshIntersectionResult_DefaultConstruct().

◆ MeshIntersectionResult() [3/4]

meshlib.MeshIntersectionResult.MeshIntersectionResult ( meshlib.PointOnFace proj,
meshlib.MeshTriPoint mtp,
float distanceAlongLine )

Constructs MR::MeshIntersectionResult elementwise. 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.

Calls MR_MeshIntersectionResult_ConstructFrom().

◆ MeshIntersectionResult() [4/4]

meshlib.MeshIntersectionResult.MeshIntersectionResult ( meshlib.MeshIntersectionResult _other)

Generated from constructor MR::MeshIntersectionResult::MeshIntersectionResult. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_MeshIntersectionResult_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.MeshIntersectionResult meshlib.MeshIntersectionResult.assignFromAnother ( meshlib.MeshIntersectionResult _other)

Generated from method MR::MeshIntersectionResult::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_MeshIntersectionResult_AssignFromAnother().

◆ convertTo_bool()

boolean meshlib.MeshIntersectionResult.convertTo_bool ( )

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

Calls MR_MeshIntersectionResult_ConvertTo_bool().

◆ distanceAlongLine()

float meshlib.MeshIntersectionResult.distanceAlongLine ( )

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. The reference to this object might be preserved as the return value.

Calls MR_MeshIntersectionResult_Get_distanceAlongLine().

◆ mtp()

meshlib.MeshTriPoint meshlib.MeshIntersectionResult.mtp ( )

stores barycentric coordinates Returns a pointer to a member variable of class MR::MeshIntersectionResult named mtp. The reference to this object might be preserved as the return value.

Calls MR_MeshIntersectionResult_Get_mtp().

◆ proj()

meshlib.PointOnFace meshlib.MeshIntersectionResult.proj ( )

stores intersected face and global coordinates Returns a pointer to a member variable of class MR::MeshIntersectionResult named proj. The reference to this object might be preserved as the return value.

Calls MR_MeshIntersectionResult_Get_proj().

◆ setDistanceAlongLine()

void meshlib.MeshIntersectionResult.setDistanceAlongLine ( float value)

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

◆ setMtp()

void meshlib.MeshIntersectionResult.setMtp ( meshlib.MeshTriPoint value)

stores barycentric coordinates Modifies a member variable of class MR::MeshIntersectionResult named mtp. The reference to the parameter value might be preserved in this object in element mtp.

Calls MR_MeshIntersectionResult_Set_mtp().

◆ setProj()

void meshlib.MeshIntersectionResult.setProj ( meshlib.PointOnFace value)

stores intersected face and global coordinates Modifies a member variable of class MR::MeshIntersectionResult named proj. The reference to the parameter value might be preserved in this object in element proj.

Calls MR_MeshIntersectionResult_Set_proj().


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