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

Public Member Functions

 MeshOrPoints_ProjectionResult (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MeshOrPoints_ProjectionResult ()
 MeshOrPoints_ProjectionResult (meshlib.Vector3f point, meshlib.Vector3f normal, boolean isBd, float distSq, meshlib.VertId closestVert)
 MeshOrPoints_ProjectionResult (meshlib.MeshOrPoints_ProjectionResult _other)
boolean convertTo_bool ()
meshlib.MeshOrPoints_ProjectionResult assignFromAnother (meshlib.MeshOrPoints_ProjectionResult _other)
boolean valid ()
meshlib.Vector3f point ()
void setPoint (meshlib.Vector3f value)
meshlib.std_optional_MR_Vector3f normal ()
void setNormal (meshlib.Vector3f value)
boolean isBd ()
void setIsBd (boolean value)
float distSq ()
void setDistSq (float value)
meshlib.VertId closestVert ()
void setClosestVert (meshlib.VertId 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::MeshOrPoints::ProjectionResult.

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

Constructor & Destructor Documentation

◆ MeshOrPoints_ProjectionResult() [1/4]

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

◆ MeshOrPoints_ProjectionResult() [2/4]

meshlib.MeshOrPoints_ProjectionResult.MeshOrPoints_ProjectionResult ( )

Constructs an empty (default-constructed) instance.

Calls MR_MeshOrPoints_ProjectionResult_DefaultConstruct().

◆ MeshOrPoints_ProjectionResult() [3/4]

meshlib.MeshOrPoints_ProjectionResult.MeshOrPoints_ProjectionResult ( meshlib.Vector3f point,
meshlib.Vector3f normal,
boolean isBd,
float distSq,
meshlib.VertId closestVert )

Constructs MR::MeshOrPoints::ProjectionResult elementwise. The reference to the parameter point might be preserved in the constructed object. The reference to the parameter normal might be preserved in the constructed object. The reference to the parameter closestVert might be preserved in the constructed object.

Calls MR_MeshOrPoints_ProjectionResult_ConstructFrom().

◆ MeshOrPoints_ProjectionResult() [4/4]

meshlib.MeshOrPoints_ProjectionResult.MeshOrPoints_ProjectionResult ( meshlib.MeshOrPoints_ProjectionResult _other)

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

Calls MR_MeshOrPoints_ProjectionResult_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.MeshOrPoints_ProjectionResult meshlib.MeshOrPoints_ProjectionResult.assignFromAnother ( meshlib.MeshOrPoints_ProjectionResult _other)

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

Calls MR_MeshOrPoints_ProjectionResult_AssignFromAnother().

◆ closestVert()

meshlib.VertId meshlib.MeshOrPoints_ProjectionResult.closestVert ( )

for point clouds it is the closest vertex, for meshes it is the closest vertex of the triangle with the closest point Returns a pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named closestVert. The reference to this object might be preserved as the return value.

Calls MR_MeshOrPoints_ProjectionResult_Get_closestVert().

◆ convertTo_bool()

boolean meshlib.MeshOrPoints_ProjectionResult.convertTo_bool ( )

Generated from conversion operator MR::MeshOrPoints::ProjectionResult::operator bool.

Calls MR_MeshOrPoints_ProjectionResult_ConvertTo_bool().

◆ distSq()

float meshlib.MeshOrPoints_ProjectionResult.distSq ( )

squared distance from query point to the closest point Returns a pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named distSq. The reference to this object might be preserved as the return value.

Calls MR_MeshOrPoints_ProjectionResult_Get_distSq().

◆ isBd()

boolean meshlib.MeshOrPoints_ProjectionResult.isBd ( )

can be true only for meshes, if the closest point is located on the boundary of the mesh (or the current region) Returns a pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named isBd. The reference to this object might be preserved as the return value.

Calls MR_MeshOrPoints_ProjectionResult_Get_isBd().

◆ normal()

meshlib.std_optional_MR_Vector3f meshlib.MeshOrPoints_ProjectionResult.normal ( )

normal at the closest point; for meshes it will be pseudonormal with the differentiation depending on closest point location (face/edge/vertex) Returns a pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named normal. The reference to this object might be preserved as the return value.

Calls MR_MeshOrPoints_ProjectionResult_Get_normal().

◆ point()

meshlib.Vector3f meshlib.MeshOrPoints_ProjectionResult.point ( )

found closest point Returns a pointer to a member variable of class MR::MeshOrPoints::ProjectionResult named point. The reference to this object might be preserved as the return value.

Calls MR_MeshOrPoints_ProjectionResult_Get_point().

◆ setClosestVert()

void meshlib.MeshOrPoints_ProjectionResult.setClosestVert ( meshlib.VertId value)

for point clouds it is the closest vertex, for meshes it is the closest vertex of the triangle with the closest point Modifies a member variable of class MR::MeshOrPoints::ProjectionResult named closestVert. The reference to the parameter value might be preserved in this object in element closestVert.

Calls MR_MeshOrPoints_ProjectionResult_Set_closestVert().

◆ setDistSq()

void meshlib.MeshOrPoints_ProjectionResult.setDistSq ( float value)

squared distance from query point to the closest point Modifies a member variable of class MR::MeshOrPoints::ProjectionResult named distSq.

Calls MR_MeshOrPoints_ProjectionResult_Set_distSq().

◆ setIsBd()

void meshlib.MeshOrPoints_ProjectionResult.setIsBd ( boolean value)

can be true only for meshes, if the closest point is located on the boundary of the mesh (or the current region) Modifies a member variable of class MR::MeshOrPoints::ProjectionResult named isBd.

Calls MR_MeshOrPoints_ProjectionResult_Set_isBd().

◆ setNormal()

void meshlib.MeshOrPoints_ProjectionResult.setNormal ( meshlib.Vector3f value)

normal at the closest point; for meshes it will be pseudonormal with the differentiation depending on closest point location (face/edge/vertex) Modifies a member variable of class MR::MeshOrPoints::ProjectionResult named normal. The reference to the parameter value might be preserved in this object in element normal.

Calls MR_MeshOrPoints_ProjectionResult_Set_normal().

◆ setPoint()

void meshlib.MeshOrPoints_ProjectionResult.setPoint ( meshlib.Vector3f value)

found closest point Modifies a member variable of class MR::MeshOrPoints::ProjectionResult named point. The reference to the parameter value might be preserved in this object in element point.

Calls MR_MeshOrPoints_ProjectionResult_Set_point().

◆ valid()

boolean meshlib.MeshOrPoints_ProjectionResult.valid ( )

Generated from method MR::MeshOrPoints::ProjectionResult::valid.

Calls MR_MeshOrPoints_ProjectionResult_valid().


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