MeshLib Documentation
Loading...
Searching...
No Matches
MR::Features::MeasureResult Struct Reference

Stores the results of measuring two objects relative to one another. More...

#include <MRFeatures.h>

Classes

struct  Angle
 
struct  BasicPart
 
struct  Distance
 

Public Types

enum class  Status {
  ok = 0 , notImplemented , badFeaturePair , badRelativeLocation ,
  notFinite
}
 

Public Member Functions

MRMESH_API void swapObjects ()
 

Public Attributes

Distance distance
 
Distance centerDistance
 
Angle angle
 
std::vector< Primitives::Variantintersections
 

Detailed Description

Stores the results of measuring two objects relative to one another.

Member Enumeration Documentation

◆ Status

Enumerator
ok 
notImplemented 

Algorithms set this if this when something isn't yet implemented.

badFeaturePair 

Algorithms set this when the calculation doesn't make sense for those object types. This result can be based on object parameters, but not on their relative location.

badRelativeLocation 

Can't be computed because of how the objects are located relative to each other.

notFinite 

The result was not finite. This is set automatically if you return non-finite values, but you can also set this manually.

Member Function Documentation

◆ swapObjects()

MRMESH_API void MR::Features::MeasureResult::swapObjects ( )

Member Data Documentation

◆ angle

Angle MR::Features::MeasureResult::angle

◆ centerDistance

Distance MR::Features::MeasureResult::centerDistance

◆ distance

Distance MR::Features::MeasureResult::distance

◆ intersections

std::vector<Primitives::Variant> MR::Features::MeasureResult::intersections

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