39 lines
823 B
Python
39 lines
823 B
Python
"""Reusable geometry structures used by MxPIC components.
|
|
|
|
Wildcard exports intentionally include the small math/Nazca aliases that
|
|
older component modules imported from ``structures.py``.
|
|
"""
|
|
|
|
from typing import Any, Optional
|
|
from cmath import pi
|
|
|
|
import nazca as nd
|
|
import nazca.clipper as clp
|
|
import numpy as np
|
|
|
|
from .polygons import _my_polygon, strt_round_courner
|
|
from .rings import circle, mx_bend, Elipse_dual, Elipse, hole
|
|
from .curves import Conchoid, _line2wg_, _my_poly_spiral, Clothoid
|
|
from .racetrack import Racetrack
|
|
|
|
__all__ = [
|
|
"Any",
|
|
"Optional",
|
|
"pi",
|
|
"nd",
|
|
"clp",
|
|
"np",
|
|
"_my_polygon",
|
|
"strt_round_courner",
|
|
"circle",
|
|
"mx_bend",
|
|
"Elipse_dual",
|
|
"Elipse",
|
|
"hole",
|
|
"Conchoid",
|
|
"_line2wg_",
|
|
"_my_poly_spiral",
|
|
"Clothoid",
|
|
"Racetrack",
|
|
]
|