Skip to content

Commit

Permalink
updates odels
Browse files Browse the repository at this point in the history
  • Loading branch information
jmts-w24 committed Feb 1, 2025
1 parent 9c36caf commit 531f056
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion werk24/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pkgutil
import sys

from . import v1 # noqa: F403
from . import v1 as v1 # noqa: F403
from .asks import * # noqa: F403
from .enums import * # noqa: F403
from .models import * # noqa: F403
Expand Down
38 changes: 38 additions & 0 deletions werk24/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
)

from .enums import (
CoordinateSpace,
CurvatureType,
DepthType,
GDnTAssociatedFeature,
Expand Down Expand Up @@ -41,6 +42,7 @@
ThreadHandedness,
ThreadType,
UnitSystemType,
VolumeEstimateType,
)


Expand Down Expand Up @@ -1240,3 +1242,39 @@ class ProjectionMethod(Callout):
"""Projection Method according to ISO 128"""

projection_method: ProjectionMethodType


class CuttingProcess(BaseModel):
requires_bending: Optional[bool]
output_geometry: Optional[GeometryCuboid]


class TurningProcess(BaseModel):
requires_secondary_milling: bool
output_geometry: Optional[GeometryCylinder]


class MillingProcess(BaseModel):
axis_count: Optional[int]
output_geometry: Optional[GeometryCuboid]


PrimaryProcessUnion = Union[CuttingProcess, TurningProcess, MillingProcess]


class Polygon(BaseModel):
coordinate_space: CoordinateSpace
coordinates: list[tuple[int, int]]


class VolumeEstimate(Quantity):
volume_estimate_type: VolumeEstimateType


class SecondaryProcess(Feature):
process_category: list[str]


class CalloutPosition(BaseModel):
callout_id: int
polygon: Polygon

0 comments on commit 531f056

Please sign in to comment.