Skip to content

Commit

Permalink
[wip]
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Sep 12, 2024
1 parent 004b6ec commit 758f1d8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/rod/sdf/geometry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

import dataclasses
from typing import ClassVar
from typing import ClassVar, Union

import mashumaro

Expand Down Expand Up @@ -116,9 +116,12 @@ class Sphere(Element):
@dataclasses.dataclass
class Geometry(Element):

GeometryType: ClassVar = (
Box | Capsule | Cylinder | Ellipsoid | Heightmap | Mesh | Plane | Sphere
)
# GeometryType: ClassVar = (
# Box | Capsule | Cylinder | Ellipsoid | Heightmap | Mesh | Plane | Sphere
# )
GeometryType: ClassVar = Union[
Box, Capsule, Cylinder, Ellipsoid, Heightmap, Mesh, Plane, Sphere
]

box: Box | None = dataclasses.field(default=None)
capsule: Capsule | None = dataclasses.field(default=None)
Expand Down

0 comments on commit 758f1d8

Please sign in to comment.