RhinoCompute.GeometryBase

RhinoCompute.GeometryBase.getBoundingBox(thisGeometryBase, accurate, multiple=false)

Bounding box solver. Gets the world axis aligned bounding box for the geometry.

Arguments:
  • accurate (bool) – If true, a physically accurate bounding box will be computed. If not, a bounding box estimate will be computed. For some geometry types there is no difference between the estimate and the accurate bounding box. Estimated bounding boxes can be computed much (much) faster than accurate (or “tight”) bounding boxes. Estimated bounding boxes are always similar to or larger than accurate bounding boxes.
  • multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns:

The bounding box of the geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.

Return type:

rhino3dm.BoundingBox

RhinoCompute.GeometryBase.getBoundingBox1(thisGeometryBase, xform, multiple=false)

Aligned Bounding box solver. Gets the world axis aligned bounding box for the transformed geometry.

Arguments:
  • xform (Transform) – Transformation to apply to object prior to the BoundingBox computation. The geometry itself is not modified.
  • multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns:

The accurate bounding box of the transformed geometry in world coordinates or BoundingBox.Empty if not bounding box could be found.

Return type:

rhino3dm.BoundingBox

RhinoCompute.GeometryBase.geometryEquals(first, second, multiple=false)

Determines if two geometries equal one another, in pure geometrical shape. This version only compares the geometry itself and does not include any user data comparisons. This is a comparison by value: for two identical items it will be true, no matter where in memory they may be stored.

Arguments:
  • first (rhino3dm.GeometryBase) – The first geometry
  • second (rhino3dm.GeometryBase) – The second geometry
  • multiple (bool) – (default False) If True, all parameters are expected as lists of equal length and input will be batch processed
Returns:

The indication of equality

Return type:

bool