mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
remove incorrect claude comments
This commit is contained in:
parent
3ba9a310ab
commit
f908c3ba9b
1 changed files with 40 additions and 34 deletions
|
|
@ -14,6 +14,7 @@ class MagicPlanRoomPoint:
|
||||||
@dataclass
|
@dataclass
|
||||||
class MagicPlanWallPoint:
|
class MagicPlanWallPoint:
|
||||||
"""Point in <exploded><wall> — absolute coords, no uid or values."""
|
"""Point in <exploded><wall> — absolute coords, no uid or values."""
|
||||||
|
|
||||||
x: float
|
x: float
|
||||||
y: float
|
y: float
|
||||||
height: float
|
height: float
|
||||||
|
|
@ -22,18 +23,19 @@ class MagicPlanWallPoint:
|
||||||
@dataclass
|
@dataclass
|
||||||
class MagicPlanDoor:
|
class MagicPlanDoor:
|
||||||
"""Door in <floorRoom> context — wall-relative position."""
|
"""Door in <floorRoom> context — wall-relative position."""
|
||||||
|
|
||||||
wall_point_index: int
|
wall_point_index: int
|
||||||
type: str
|
type: str
|
||||||
u: float # position along wall (0-1)
|
u: float
|
||||||
width: float # m
|
width: float # m
|
||||||
depth: float # m
|
depth: float # m
|
||||||
height: float # m
|
height: float # m
|
||||||
orientation: int
|
orientation: int
|
||||||
snapped_type: str
|
snapped_type: str
|
||||||
snapped_position: float
|
snapped_position: float
|
||||||
snapped_width: float # m
|
snapped_width: float # m
|
||||||
snapped_depth: float # m
|
snapped_depth: float # m
|
||||||
snapped_height: float # m
|
snapped_height: float # m
|
||||||
snapped_orientation: int
|
snapped_orientation: int
|
||||||
inset_x: float
|
inset_x: float
|
||||||
inset_y: float
|
inset_y: float
|
||||||
|
|
@ -45,18 +47,19 @@ class MagicPlanDoor:
|
||||||
@dataclass
|
@dataclass
|
||||||
class MagicPlanWindow:
|
class MagicPlanWindow:
|
||||||
"""Window in <floorRoom> context — wall-relative position."""
|
"""Window in <floorRoom> context — wall-relative position."""
|
||||||
|
|
||||||
wall_point_index: int
|
wall_point_index: int
|
||||||
type: str
|
type: str
|
||||||
u: float # position along wall (0-1)
|
u: float
|
||||||
width: float # m
|
width: float # m
|
||||||
depth: float # m
|
depth: float # m
|
||||||
height: float # m
|
height: float # m
|
||||||
orientation: int
|
orientation: int
|
||||||
snapped_type: str
|
snapped_type: str
|
||||||
snapped_position: float
|
snapped_position: float
|
||||||
snapped_width: float # m
|
snapped_width: float # m
|
||||||
snapped_depth: float # m
|
snapped_depth: float # m
|
||||||
snapped_height: float # m
|
snapped_height: float # m
|
||||||
snapped_orientation: int
|
snapped_orientation: int
|
||||||
inset_x: float
|
inset_x: float
|
||||||
inset_y: float
|
inset_y: float
|
||||||
|
|
@ -67,14 +70,15 @@ class MagicPlanWindow:
|
||||||
@dataclass
|
@dataclass
|
||||||
class MagicPlanExplodedOpening:
|
class MagicPlanExplodedOpening:
|
||||||
"""Door or window in <exploded> context — absolute coords, no snapped* fields."""
|
"""Door or window in <exploded> context — absolute coords, no snapped* fields."""
|
||||||
|
|
||||||
type: str
|
type: str
|
||||||
x1: float
|
x1: float
|
||||||
y1: float
|
y1: float
|
||||||
x2: float
|
x2: float
|
||||||
y2: float
|
y2: float
|
||||||
width: float # m
|
width: float # m
|
||||||
depth: float # m
|
depth: float # m
|
||||||
height: float # m
|
height: float # m
|
||||||
inset_x: float
|
inset_x: float
|
||||||
inset_y: float
|
inset_y: float
|
||||||
orientation: int
|
orientation: int
|
||||||
|
|
@ -89,12 +93,12 @@ class MagicPlanFurniture:
|
||||||
snapped_x: float
|
snapped_x: float
|
||||||
snapped_y: float
|
snapped_y: float
|
||||||
angle: float
|
angle: float
|
||||||
width: float # m
|
width: float # m
|
||||||
depth: float # m
|
depth: float # m
|
||||||
height: float # m
|
height: float # m
|
||||||
snapped_width: float # m
|
snapped_width: float # m
|
||||||
snapped_depth: float # m
|
snapped_depth: float # m
|
||||||
snapped_height: float # m
|
snapped_height: float # m
|
||||||
size_lock_0: str
|
size_lock_0: str
|
||||||
size_lock_1: str
|
size_lock_1: str
|
||||||
size_lock_2: str
|
size_lock_2: str
|
||||||
|
|
@ -114,7 +118,7 @@ class MagicPlanMainDimension:
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class MagicPlanExplodedWall:
|
class MagicPlanExplodedWall:
|
||||||
wall_type: str # "exterior" | "interior"
|
wall_type: str # "exterior" | "interior"
|
||||||
points: list[MagicPlanWallPoint]
|
points: list[MagicPlanWallPoint]
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -132,7 +136,7 @@ class MagicPlanSymbolInstance:
|
||||||
uid: str
|
uid: str
|
||||||
parent_uid: str
|
parent_uid: str
|
||||||
symbol: str
|
symbol: str
|
||||||
values: dict[str, str] # ceilingHeight, width, height, depth, distanceUnit, etc.
|
values: dict[str, str] # ceilingHeight, width, height, depth, distanceUnit, etc.
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|
@ -145,9 +149,9 @@ class MagicPlanRoom:
|
||||||
was_modified: bool
|
was_modified: bool
|
||||||
linked_room_0: str
|
linked_room_0: str
|
||||||
linked_room_1: str
|
linked_room_1: str
|
||||||
area: float # m²
|
area: float # m²
|
||||||
perimeter: float # m
|
perimeter: float # m
|
||||||
values: dict[str, str] # ceilingHeight, label, etc.
|
values: dict[str, str] # ceilingHeight, label, etc.
|
||||||
points: list[MagicPlanRoomPoint]
|
points: list[MagicPlanRoomPoint]
|
||||||
doors: list[MagicPlanDoor]
|
doors: list[MagicPlanDoor]
|
||||||
windows: list[MagicPlanWindow]
|
windows: list[MagicPlanWindow]
|
||||||
|
|
@ -159,12 +163,12 @@ class MagicPlanRoom:
|
||||||
class MagicPlanFloor:
|
class MagicPlanFloor:
|
||||||
uid: str
|
uid: str
|
||||||
name: str
|
name: str
|
||||||
floor_type: str # "0"=ground, "1"=upper, "2"=basement
|
floor_type: str # "0"=ground, "1"=upper, "2"=basement
|
||||||
rotation: float
|
rotation: float
|
||||||
compass_angle: float
|
compass_angle: float
|
||||||
area_without_walls: float # m²
|
area_without_walls: float # m²
|
||||||
area_with_interior_walls_only: float # m²
|
area_with_interior_walls_only: float # m²
|
||||||
area_with_walls: float # m²
|
area_with_walls: float # m²
|
||||||
symbol_instance: MagicPlanSymbolInstance
|
symbol_instance: MagicPlanSymbolInstance
|
||||||
rooms: list[MagicPlanRoom]
|
rooms: list[MagicPlanRoom]
|
||||||
furniture: list[MagicPlanFurniture] # floor-level furniture (not inside any room)
|
furniture: list[MagicPlanFurniture] # floor-level furniture (not inside any room)
|
||||||
|
|
@ -174,6 +178,7 @@ class MagicPlanFloor:
|
||||||
@dataclass
|
@dataclass
|
||||||
class MagicPlanSummary:
|
class MagicPlanSummary:
|
||||||
"""Plan metadata returned by the list-plans API endpoint."""
|
"""Plan metadata returned by the list-plans API endpoint."""
|
||||||
|
|
||||||
id: str
|
id: str
|
||||||
project_id: str
|
project_id: str
|
||||||
name: str
|
name: str
|
||||||
|
|
@ -192,6 +197,7 @@ class MagicPlanSummary:
|
||||||
@dataclass
|
@dataclass
|
||||||
class MagicPlanDetail:
|
class MagicPlanDetail:
|
||||||
"""Full plan response: summary metadata + parsed XML plan."""
|
"""Full plan response: summary metadata + parsed XML plan."""
|
||||||
|
|
||||||
summary: MagicPlanSummary
|
summary: MagicPlanSummary
|
||||||
plan_xml: "MagicPlanPlan"
|
plan_xml: "MagicPlanPlan"
|
||||||
|
|
||||||
|
|
@ -202,12 +208,12 @@ class MagicPlanPlan:
|
||||||
uid: str
|
uid: str
|
||||||
name: str
|
name: str
|
||||||
type: str
|
type: str
|
||||||
interior_wall_width: float # m
|
interior_wall_width: float # m
|
||||||
exterior_wall_width: float # m
|
exterior_wall_width: float # m
|
||||||
schematic: bool
|
schematic: bool
|
||||||
has_land_survey_address: bool
|
has_land_survey_address: bool
|
||||||
last_patch_identifier: str
|
last_patch_identifier: str
|
||||||
last_roll_identifier: str
|
last_roll_identifier: str
|
||||||
values: dict[str, str] # date, statistics.*, distanceUnit, etc.
|
values: dict[str, str] # date, statistics.*, distanceUnit, etc.
|
||||||
floors: list[MagicPlanFloor]
|
floors: list[MagicPlanFloor]
|
||||||
interior_room_floors: list[MagicPlanFloor] # from <interiorRoomPoints>
|
interior_room_floors: list[MagicPlanFloor] # from <interiorRoomPoints>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue