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

Public Member Functions

 MeshPointAndDistance (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MeshPointAndDistance ()
 MeshPointAndDistance (meshlib.Vector3f loc, meshlib.MeshTriPoint mtp, float eucledeanDist, float w, boolean bidirectionalOrOutside)
 MeshPointAndDistance (meshlib.MeshPointAndDistance _other)
boolean convertTo_bool ()
meshlib.MeshPointAndDistance assignFromAnother (meshlib.MeshPointAndDistance _other)
float bidirDist ()
float dist ()
meshlib.std_partial_ordering opCompareThreeWay (meshlib.MeshPointAndDistance other)
boolean opLess (meshlib.MeshPointAndDistance other)
boolean opGreater (meshlib.MeshPointAndDistance other)
boolean opLessEqual (meshlib.MeshPointAndDistance other)
boolean opGreaterEqual (meshlib.MeshPointAndDistance other)
boolean valid ()
meshlib.Vector3f loc ()
void setLoc (meshlib.Vector3f value)
meshlib.MeshTriPoint mtp ()
void setMtp (meshlib.MeshTriPoint value)
float eucledeanDist ()
void setEucledeanDist (float value)
float w ()
void setW (float value)
boolean bidirectionalOrOutside ()
void setBidirectionalOrOutside (boolean 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::MeshPointAndDistance.

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

Constructor & Destructor Documentation

◆ MeshPointAndDistance() [1/4]

meshlib.MeshPointAndDistance.MeshPointAndDistance ( 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.

◆ MeshPointAndDistance() [2/4]

meshlib.MeshPointAndDistance.MeshPointAndDistance ( )

Constructs an empty (default-constructed) instance.

Calls MR_MeshPointAndDistance_DefaultConstruct().

◆ MeshPointAndDistance() [3/4]

meshlib.MeshPointAndDistance.MeshPointAndDistance ( meshlib.Vector3f loc,
meshlib.MeshTriPoint mtp,
float eucledeanDist,
float w,
boolean bidirectionalOrOutside )

Constructs MR::MeshPointAndDistance elementwise. The reference to the parameter loc might be preserved in the constructed object. The reference to the parameter mtp might be preserved in the constructed object.

Calls MR_MeshPointAndDistance_ConstructFrom().

◆ MeshPointAndDistance() [4/4]

meshlib.MeshPointAndDistance.MeshPointAndDistance ( meshlib.MeshPointAndDistance _other)

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

Calls MR_MeshPointAndDistance_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.MeshPointAndDistance meshlib.MeshPointAndDistance.assignFromAnother ( meshlib.MeshPointAndDistance _other)

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

Calls MR_MeshPointAndDistance_AssignFromAnother().

◆ bidirDist()

float meshlib.MeshPointAndDistance.bidirDist ( )

bidirectional distance from input location to mtp considering point's weight Generated from method MR::MeshPointAndDistance::bidirDist.

Calls MR_MeshPointAndDistance_bidirDist().

◆ bidirectionalOrOutside()

boolean meshlib.MeshPointAndDistance.bidirectionalOrOutside ( )

either 1) bidirectional distances are computed, or 2) input location is locally outside of the surface (by pseudonormal) used for optimization Returns a pointer to a member variable of class MR::MeshPointAndDistance named bidirectionalOrOutside. The reference to this object might be preserved as the return value.

Calls MR_MeshPointAndDistance_Get_bidirectionalOrOutside().

◆ convertTo_bool()

boolean meshlib.MeshPointAndDistance.convertTo_bool ( )

Generated from conversion operator MR::MeshPointAndDistance::operator bool.

Calls MR_MeshPointAndDistance_ConvertTo_bool().

◆ dist()

float meshlib.MeshPointAndDistance.dist ( )

the distance from input location to mtp considering point's weight and location inside/outside; dist() is continuous function of location unlike innerDist(), which makes 2*weight jump if the location moves through the surface Generated from method MR::MeshPointAndDistance::dist.

Calls MR_MeshPointAndDistance_dist().

◆ eucledeanDist()

float meshlib.MeshPointAndDistance.eucledeanDist ( )

euclidean distance from input location to mtp Returns a pointer to a member variable of class MR::MeshPointAndDistance named eucledeanDist. The reference to this object might be preserved as the return value.

Calls MR_MeshPointAndDistance_Get_eucledeanDist().

◆ loc()

meshlib.Vector3f meshlib.MeshPointAndDistance.loc ( )

point location Returns a pointer to a member variable of class MR::MeshPointAndDistance named loc. The reference to this object might be preserved as the return value.

Calls MR_MeshPointAndDistance_Get_loc().

◆ mtp()

meshlib.MeshTriPoint meshlib.MeshPointAndDistance.mtp ( )

the corresponding point on mesh in barycentric representation Returns a pointer to a member variable of class MR::MeshPointAndDistance named mtp. The reference to this object might be preserved as the return value.

Calls MR_MeshPointAndDistance_Get_mtp().

◆ opCompareThreeWay()

meshlib.std_partial_ordering meshlib.MeshPointAndDistance.opCompareThreeWay ( meshlib.MeshPointAndDistance other)

comparison telling which point is closer to the location Generated from method MR::MeshPointAndDistance::operator<=>.

Calls MR_compare_three_way_MR_MeshPointAndDistance().

◆ opGreater()

boolean meshlib.MeshPointAndDistance.opGreater ( meshlib.MeshPointAndDistance other)

comparison telling which point is closer to the location Generated from method MR::MeshPointAndDistance::operator>.

Calls MR_greater_MR_MeshPointAndDistance().

◆ opGreaterEqual()

boolean meshlib.MeshPointAndDistance.opGreaterEqual ( meshlib.MeshPointAndDistance other)

comparison telling which point is closer to the location Generated from method MR::MeshPointAndDistance::operator>=.

Calls MR_greater_equal_MR_MeshPointAndDistance().

◆ opLess()

boolean meshlib.MeshPointAndDistance.opLess ( meshlib.MeshPointAndDistance other)

comparison telling which point is closer to the location Generated from method MR::MeshPointAndDistance::operator<.

Calls MR_less_MR_MeshPointAndDistance().

◆ opLessEqual()

boolean meshlib.MeshPointAndDistance.opLessEqual ( meshlib.MeshPointAndDistance other)

comparison telling which point is closer to the location Generated from method MR::MeshPointAndDistance::operator<=.

Calls MR_less_equal_MR_MeshPointAndDistance().

◆ setBidirectionalOrOutside()

void meshlib.MeshPointAndDistance.setBidirectionalOrOutside ( boolean value)

either 1) bidirectional distances are computed, or 2) input location is locally outside of the surface (by pseudonormal) used for optimization Modifies a member variable of class MR::MeshPointAndDistance named bidirectionalOrOutside.

Calls MR_MeshPointAndDistance_Set_bidirectionalOrOutside().

◆ setEucledeanDist()

void meshlib.MeshPointAndDistance.setEucledeanDist ( float value)

euclidean distance from input location to mtp Modifies a member variable of class MR::MeshPointAndDistance named eucledeanDist.

Calls MR_MeshPointAndDistance_Set_eucledeanDist().

◆ setLoc()

void meshlib.MeshPointAndDistance.setLoc ( meshlib.Vector3f value)

point location Modifies a member variable of class MR::MeshPointAndDistance named loc. The reference to the parameter value might be preserved in this object in element loc.

Calls MR_MeshPointAndDistance_Set_loc().

◆ setMtp()

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

the corresponding point on mesh in barycentric representation Modifies a member variable of class MR::MeshPointAndDistance named mtp. The reference to the parameter value might be preserved in this object in element mtp.

Calls MR_MeshPointAndDistance_Set_mtp().

◆ setW()

void meshlib.MeshPointAndDistance.setW ( float value)

point's weight Modifies a member variable of class MR::MeshPointAndDistance named w.

Calls MR_MeshPointAndDistance_Set_w().

◆ valid()

boolean meshlib.MeshPointAndDistance.valid ( )

check for validity, otherwise there is no point closer than maxBidirDist Generated from method MR::MeshPointAndDistance::valid.

Calls MR_MeshPointAndDistance_valid().

◆ w()

float meshlib.MeshPointAndDistance.w ( )

point's weight Returns a pointer to a member variable of class MR::MeshPointAndDistance named w. The reference to this object might be preserved as the return value.

Calls MR_MeshPointAndDistance_Get_w().


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