CShape
- class nrv.utils.geom.CShape(center: tuple[float, float] = (0, 0), radius: float | tuple[float, float] = 0, rot: float = None, degree: bool = False)[source]
Abstract base class for closed-shaped geometries.
Attributes
Area of the shape in $mu m^2$ |
|
Coordinate of the bounding box as a |
|
Size of the bounding bounding box of the shape. |
|
Perimeter of the shape in $mu m^2$ |
|
X-coordinate placeholder for 2D shapes. |
|
Y-coordinate of the shape center. |
|
Z-coordinate of the shape center. |
Methods
|
Initializes the CShape |
Generic method returning all the atributes of an NRV_class instance |
|
|
Returns n points coordinate randomly picked inside the shape |
|
Returns the trace of the geometry as a list of points. |
|
Checks if a given point is inside the C-shape. |
|
Generic loading method for |
|
plot the border of the shape |
|
plot the border of the shape |
|
Rotate the shape. |
|
Generic saving method for |
|
Generic method to set any attribute of |
|
Translate the shape. |