|
@@ -1,5 +1,5 @@
|
|
|
from __future__ import annotations
|
|
|
-from typing import Optional
|
|
|
+from typing import List, Optional
|
|
|
from .scene_object3d import Object3D
|
|
|
|
|
|
class Scene(Object3D):
|
|
@@ -47,7 +47,7 @@ class Cylinder(Object3D):
|
|
|
class Extrusion(Object3D):
|
|
|
|
|
|
def __init__(self,
|
|
|
- outline: list[list[float, float]],
|
|
|
+ outline: List[List[float, float]],
|
|
|
height: float,
|
|
|
wireframe: bool = False,
|
|
|
):
|
|
@@ -64,18 +64,18 @@ class Stl(Object3D):
|
|
|
class Line(Object3D):
|
|
|
|
|
|
def __init__(self,
|
|
|
- start: list[float, float, float],
|
|
|
- end: list[float, float, float],
|
|
|
+ start: List[float, float, float],
|
|
|
+ end: List[float, float, float],
|
|
|
):
|
|
|
super().__init__('line', start, end)
|
|
|
|
|
|
class Curve(Object3D):
|
|
|
|
|
|
def __init__(self,
|
|
|
- start: list[float, float, float],
|
|
|
- control1: list[float, float, float],
|
|
|
- control2: list[float, float, float],
|
|
|
- end: list[float, float, float],
|
|
|
+ start: List[float, float, float],
|
|
|
+ control1: List[float, float, float],
|
|
|
+ control2: List[float, float, float],
|
|
|
+ end: List[float, float, float],
|
|
|
num_points: int = 20,
|
|
|
):
|
|
|
super().__init__('curve', start, control1, control2, end, num_points)
|
|
@@ -84,6 +84,6 @@ class Texture(Object3D):
|
|
|
|
|
|
def __init__(self,
|
|
|
url: str,
|
|
|
- coordinates: list[list[Optional[list[float]]]],
|
|
|
+ coordinates: List[List[Optional[List[float]]]],
|
|
|
):
|
|
|
super().__init__('texture', url, coordinates)
|