18 lines
395 B
Python
18 lines
395 B
Python
from typing import Optional
|
|
from enum import Enum
|
|
|
|
from specklepy.objects.base import Base
|
|
from specklepy.objects.geometry import Plane
|
|
|
|
|
|
class AxisType(int, Enum):
|
|
Cartesian = 0
|
|
Cylindrical = 1
|
|
Spherical = 2
|
|
|
|
|
|
class Axis(Base, speckle_type="Objects.Structural.Geometry.Axis"):
|
|
name: Optional[str] = None
|
|
axisType: Optional[AxisType] = None
|
|
plane: Optional[Plane] = None
|