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

Public Member Functions

 MeasureResult (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 MeasureResult ()
 MeasureResult (meshlib.features.MeasureResult_Distance distance, meshlib.features.MeasureResult_Distance centerDistance, meshlib.features.MeasureResult_Angle angle, meshlib.std_vector_std_variant_MR_Sphere3f_MR_Features_Primitives_ConeSegment_MR_Features_Primitives_Plane intersections)
 MeasureResult (meshlib.features.MeasureResult _other)
meshlib.features.MeasureResult assignFromAnother (meshlib.features.MeasureResult _other)
void swapObjects ()
meshlib.features.MeasureResult_Distance distance ()
void setDistance (meshlib.features.MeasureResult_Distance value)
meshlib.features.MeasureResult_Distance centerDistance ()
void setCenterDistance (meshlib.features.MeasureResult_Distance value)
meshlib.features.MeasureResult_Angle angle ()
void setAngle (meshlib.features.MeasureResult_Angle value)
meshlib.std_vector_std_variant_MR_Sphere3f_MR_Features_Primitives_ConeSegment_MR_Features_Primitives_Plane intersections ()
void setIntersections (meshlib.std_vector_std_variant_MR_Sphere3f_MR_Features_Primitives_ConeSegment_MR_Features_Primitives_Plane 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

Stores the results of measuring two objects relative to one another. Generated from class MR::Features::MeasureResult.

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

Constructor & Destructor Documentation

◆ MeasureResult() [1/4]

meshlib.features.MeasureResult.MeasureResult ( 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.

◆ MeasureResult() [2/4]

meshlib.features.MeasureResult.MeasureResult ( )

Constructs an empty (default-constructed) instance.

Calls MR_Features_MeasureResult_DefaultConstruct().

◆ MeasureResult() [3/4]

Constructs MR::Features::MeasureResult elementwise. The reference to the parameter distance might be preserved in the constructed object. The reference to the parameter centerDistance might be preserved in the constructed object. The reference to the parameter angle might be preserved in the constructed object. The reference to the parameter intersections might be preserved in the constructed object.

Calls MR_Features_MeasureResult_ConstructFrom().

◆ MeasureResult() [4/4]

meshlib.features.MeasureResult.MeasureResult ( meshlib.features.MeasureResult _other)

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

Calls MR_Features_MeasureResult_ConstructFromAnother().

Member Function Documentation

◆ angle()

meshlib.features.MeasureResult_Angle meshlib.features.MeasureResult.angle ( )

Returns a pointer to a member variable of class MR::Features::MeasureResult named angle. The reference to this object might be preserved as the return value.

Calls MR_Features_MeasureResult_Get_angle().

◆ assignFromAnother()

meshlib.features.MeasureResult meshlib.features.MeasureResult.assignFromAnother ( meshlib.features.MeasureResult _other)

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

Calls MR_Features_MeasureResult_AssignFromAnother().

◆ centerDistance()

meshlib.features.MeasureResult_Distance meshlib.features.MeasureResult.centerDistance ( )

Some approximation of the distance. For planes and lines, this expects them to be mostly parallel. For everything else, it just takes the feature center. Returns a pointer to a member variable of class MR::Features::MeasureResult named centerDistance. The reference to this object might be preserved as the return value.

Calls MR_Features_MeasureResult_Get_centerDistance().

◆ distance()

meshlib.features.MeasureResult_Distance meshlib.features.MeasureResult.distance ( )

Exact distance. Returns a pointer to a member variable of class MR::Features::MeasureResult named distance. The reference to this object might be preserved as the return value.

Calls MR_Features_MeasureResult_Get_distance().

◆ intersections()

The primitives obtained from intersecting those two. Returns a pointer to a member variable of class MR::Features::MeasureResult named intersections. The reference to this object might be preserved as the return value.

Calls MR_Features_MeasureResult_Get_intersections().

◆ setAngle()

void meshlib.features.MeasureResult.setAngle ( meshlib.features.MeasureResult_Angle value)

Modifies a member variable of class MR::Features::MeasureResult named angle. The reference to the parameter value might be preserved in this object in element angle.

Calls MR_Features_MeasureResult_Set_angle().

◆ setCenterDistance()

void meshlib.features.MeasureResult.setCenterDistance ( meshlib.features.MeasureResult_Distance value)

Some approximation of the distance. For planes and lines, this expects them to be mostly parallel. For everything else, it just takes the feature center. Modifies a member variable of class MR::Features::MeasureResult named centerDistance. The reference to the parameter value might be preserved in this object in element centerDistance.

Calls MR_Features_MeasureResult_Set_centerDistance().

◆ setDistance()

void meshlib.features.MeasureResult.setDistance ( meshlib.features.MeasureResult_Distance value)

Exact distance. Modifies a member variable of class MR::Features::MeasureResult named distance. The reference to the parameter value might be preserved in this object in element distance.

Calls MR_Features_MeasureResult_Set_distance().

◆ setIntersections()

The primitives obtained from intersecting those two. Modifies a member variable of class MR::Features::MeasureResult named intersections. The reference to the parameter value might be preserved in this object in element intersections.

Calls MR_Features_MeasureResult_Set_intersections().

◆ swapObjects()

void meshlib.features.MeasureResult.swapObjects ( )

Modifies the object to swap A and B; Generated from method MR::Features::MeasureResult::swapObjects.

Calls MR_Features_MeasureResult_swapObjects().


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