GeometryBase¶

compute_rhino3d.GeometryBase.
GetBoundingBox
(thisGeometryBase, accurate, multiple=False)¶ Bounding box solver. Gets the world axis aligned bounding box for the geometry.
Parameters:  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

compute_rhino3d.GeometryBase.
GetBoundingBox1
(thisGeometryBase, xform, multiple=False)¶ Aligned Bounding box solver. Gets the world axis aligned bounding box for the transformed geometry.
Parameters:  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

compute_rhino3d.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.
Parameters:  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