CSPrimBox
- class CSXCAD.CSPrimitives.CSPrimBox
Bases:
CSPrimitives
Box Primitive
A box is defined by two 3D coordinates. E.g. the lower-left (start) and upper right (stop) point. A box is a cube in Cartesian coordinates. A box is a cylinder in cylindrical coordinates.
- Parameters:
- start(3,) array
Start point vector (3,) array
- stop(3,) array
Stop point vector (3,) array
- GetStart()
Get the start coordinate for this primitive.
- Returns:
(3,) ndarray – Start coordinate for this primitive
- GetStop()
Get the stop coordinate for this primitive.
- Returns:
(3,) ndarray – Stop coordinate for this primitive
- SetStart(coord)
Set the start coordinate for this box primitive.
- Parameters:
coord – list/array of float – Set the start point coordinate
- SetStop(coord)
Set the stop coordinate for this box primitive.
- Parameters:
coord – list/array of float – Set the stop point coordinate