Class: Geometry
Class representing a geometric shape.
The Geometry class is the base class for all geometric shapes in BeeGraphy's plugin system. Every curve, surface, and solid you work with inherits from this class.
Think of it as the foundation - it provides the common operations that all shapes share: getting the underlying shape, setting planes, copying, and cleanup.
When to use Geometry
You typically won't create Geometry instances directly. Instead, you'll work with its subclasses:
- Curve - lines, arcs, circles, splines
- Surface - faces, skins, lofts
- Solid - boxes, spheres, boolean results
However, many methods accept Geometry as a parameter type, so understanding this base class helps you work with any shape.
Quick start
Extended by
Method: constructor
Creates an instance of Geometry.
Parameters
shape(TopoDS_Shape): The geometric shape.
Example
Method: shape
Gets the geometric shape.
Example
Method: shape
Sets the geometric shape.
Parameters
shape(TopoDS_Shape): The new geometric shape.
Example
Method: setPlane
Sets the plane for the geometric shape.
Parameters
plane(IPlane): The plane to set.
Returns
The updated geometry.
Example
Method: changePlane
Changes the plane of the geometric shape.
Parameters
source(IPlane): The source plane.target(IPlane): The target plane.
Returns
The geometry with the changed plane.
Example
Method: getShape
Gets a copy of the geometric shape.
Returns
The copied shape.
Example
Method: delete
Deletes the geometric shape.