MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ObjectComparableWithReference Class Reference
Inheritance diagram for mrmeshpy.ObjectComparableWithReference:

Classes

class  ComparableProperty
class  ComparisonReferenceValue
class  ComparisonTolerance
class  ConstComparableProperty
class  ConstComparisonReferenceValue
class  ConstComparisonTolerance

Public Member Functions

None setComparisonReferenceVal (self, int i, ObjectComparableWithReference.ConstComparisonReferenceValue value)
None setComparisonReferenceValue (self, int i, Const_std_variant_float_Vector3_float|None value)
None setComparisonTolerance (self, int i, Const_std_optional_ObjectComparableWithReference_ComparisonTolerance newTolerance)
Public Member Functions inherited from mrmeshpy.ConstObjectComparableWithReference
bool comparisonToleranceIsAlwaysOnlyPositive (self, int i)
ObjectComparableWithReference.ComparableProperty computeComparableProperty (self, int i)
str getComparablePropertyName (self, int i)
ObjectComparableWithReference.ComparisonReferenceValue getComparisonReferenceValue (self, int i)
str getComparisonReferenceValueName (self, int i)
ObjectComparableWithReference.ComparisonTolerance getComparisonTolerence (self, int i)
int numComparableProperties (self)
int numComparisonReferenceValues (self)

Detailed Description

Generated from:  MR::ObjectComparableWithReference

A base class for a data-model object that is a feature/measurement that can be compared between two models.

Member Function Documentation

◆ setComparisonReferenceVal()

None mrmeshpy.ObjectComparableWithReference.setComparisonReferenceVal ( self,
int i,
ObjectComparableWithReference.ConstComparisonReferenceValue value )

◆ setComparisonReferenceValue()

None mrmeshpy.ObjectComparableWithReference.setComparisonReferenceValue ( self,
int i,
Const_std_variant_float_Vector3_float | None value )
Sets the internal reference value. Makes `hasComparisonReferenceValue()` return true.
If you pass nullopt, removes this reference value.
Only a certain variant type is legal to pass, depending on the derived class and the index. Use `getComparisonReferenceValue()` to determine that type.
`i` goes up to `numComparisonReferenceValues()`, exclusive.

Reimplemented in mrmeshpy.DistanceMeasurementObject, and mrmeshpy.PointMeasurementObject.

◆ setComparisonTolerance()

None mrmeshpy.ObjectComparableWithReference.setComparisonTolerance ( self,
int i,
Const_std_optional_ObjectComparableWithReference_ComparisonTolerance newTolerance )
Sets the tolerance for a specific comparable property.
`i` goes up to `numComparableProperties()`, exclusive.

Reimplemented in mrmeshpy.DistanceMeasurementObject, and mrmeshpy.PointMeasurementObject.


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