BH.oM.Base.NamedNumericTolerance¶
Tolerance used for specific numerical objects or properties with a specific name.When computing Hash or the property Diffing, if the analysed object or property name is found in this collection, the corresponding tolerance is considered.
Class structure¶
Implemented interfaces and base types¶
The NamedNumericTolerance is inheriting from the following base type(s) and implements the following interfaces:
- BH.oM.Base.IObject
Properties¶
Defining properties¶
The following properties are defined on the class
Name | Type | Description | Quantity |
---|---|---|---|
Name | string | When computing Hash or the property Diffing, if the analysed object name or property name is found in this collection, the corresponding tolerance is applied. Supports * wildcard in the property name matching. Examples: - BH.oM.Geometry.Vector : applies the corresponding tolerance to all numerical properties of Vectors, i.e. X, Y, Z;- BH.oM.Structure.Elements.*.Position : applies the corresponding tolerance to all numerical properties of properties named Position under any Structural Element,e.g. Bar.Position.X, Bar.Position.Y, Bar.Position.Z. and at the same time also Node.Position.X, Node.Position.Y, Node.Position.Z. |
- |
Tolerance | double | Numeric tolerance. Applies rounding for numbers smaller than this. Defaults to 1E-12. | - |
Code and Schema¶
C# implementation¶
Assembly: BHoM.dll
The C# class definition is available on github:
All history and changes of the class can be found by inspection the history.
JSON Schema implementation¶
The object is defined as a JSON schema. You can validate a JSON instance against this schema by reference. To do this, use the schema reference below in a validator like this one.
JSON Schema
{
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/BHoM/NamedNumericTolerance.json"
}
The JSON Schema is available on github here: