BH.oM.Geometry.IGeometry¶
The parent interface for all primative geometrical objects. IGeometry implements IObject - and not IBHoMObject. Equally primative geometrical objects do not inherit from the base BHoMObject class either. As primatives, the additional base BHoM properties are omitted for both efficency and performace.
Interface structure¶
Implemented interfaces and base types¶
The IGeometry is inheriting from the following base type(s) and implements the following interfaces:
- BH.oM.Base.IObject
Interfaces implementing this interface¶
The following interfaces are implementing this interface:
Classes implementing this interface¶
The following classes are implementing this interface:
- BH.oM.Geometry.Arc
- BH.oM.Geometry.BoundaryCurve
- BH.oM.Geometry.Circle
- BH.oM.Geometry.Ellipse
- BH.oM.Geometry.Line
- BH.oM.Geometry.NurbsCurve
- BH.oM.Geometry.PolyCurve
- BH.oM.Geometry.Polygon
- BH.oM.Geometry.Polyline
- BH.oM.Geometry.CellRelation
- BH.oM.Geometry.Face
- BH.oM.Geometry.Mesh
- BH.oM.Geometry.Mesh3D
- BH.oM.Geometry.BoundingBox
- BH.oM.Geometry.CompositeGeometry
- BH.oM.Geometry.Quaternion
- BH.oM.Geometry.SurfaceTrim
- BH.oM.Geometry.TransformMatrix
- BH.oM.Geometry.BoundaryRepresentation
- BH.oM.Geometry.Cone
- BH.oM.Geometry.Cuboid
- BH.oM.Geometry.Cylinder
- BH.oM.Geometry.Sphere
- BH.oM.Geometry.Torus
- BH.oM.Geometry.Extrusion
- BH.oM.Geometry.Loft
- BH.oM.Geometry.NurbsSurface
- BH.oM.Geometry.Pipe
- BH.oM.Geometry.PlanarSurface
- BH.oM.Geometry.PolySurface
- BH.oM.Geometry.Basis
- BH.oM.Geometry.Plane
- BH.oM.Geometry.Point
- BH.oM.Geometry.Vector
- BH.oM.Geometry.CoordinateSystem.Cartesian
- BH.oM.Graphics.RenderMesh
- BH.oM.Graphics.RenderPoint
Properties¶
Derived properties¶
The following properties are defined as extension methods in one of the BHoM_Engines
Name | Type | Description | Quantity | Engine |
---|---|---|---|---|
GeometryHash | string | Returns a signature of the input geometry, useful for diffing. The hash is computed as a serialised array representing the coordinate of significant points taken on the geometry. The number of points is reduced to the minimum essential to determine uniquely any geometry. Additionally, the resulting points are transformed based on the source geometry type, to remove or minimize collisions. (Any transformation so performed is translational only, in order to support geometrical tolerance, i.e. numerical distance, when comparing GeometryHashes downstream). |
- | Geometry_Engine |
IArea | double | Calculates the area of the provided geometry. | Area [m²] | Geometry_Engine |
IBounds | BoundingBox | Returns the global world axis oriented enclosing BoundingBox for all points of the geometry, i.e. the box with the smallest volume within which all the points on the geometry lie. | - | Geometry_Engine |
IHashArray | double[] | Returns a signature of the input geometry, useful for distance-based comparisons and diffing. The hash is computed as an array representing the coordinate of significant points taken on the geometry. The number of points is reduced to the minimum essential to determine uniquely any geometry. Additionally, the resulting points are transformed based on the source geometry type, to remove or minimize collisions. (Any transformation so performed is translational only, in order to support geometrical tolerance, i.e. numerical distance, when comparing GeometryHashes downstream). |
- | Geometry_Engine |
IIsPlanar | bool | Checks if the IGeometry is planar, i.e. all of its parts fit in a single plane. | - | Geometry_Engine |
IIsValid | bool | - | - | Geometry_Engine |
INormals | List<Vector> | Interface method that returns the list of vectors normal to any IGeometry. | - | Geometry_Engine |
IsNull | bool | Checks if a Geometry is null and outputs relevant error message. | - | Geometry_Engine |
ISubParts | IEnumerable<IGeometry> | - | - | Geometry_Engine |
IsValid | bool | - | - | Geometry_Engine |
Code and Schema¶
C# implementation¶
Assembly: Geometry_oM.dll
The C# interface 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.
{
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/Geometry_oM/IGeometry.json"
}
The JSON Schema is available on github here: