| """ |
| floorplan β Parse floor plan images into structured wall/door/window data, |
| and generate 3D models from the structured representation. |
| |
| Architecture: |
| schema.py β Pydantic data models (Wall, Opening, Room, FloorPlan, Corrections) |
| geometry.py β Computational geometry (wall polygons, room detection, centerline ops) |
| renderer.py β SVG + PIL rendering for visual verification and overlay |
| parser.py β VLM-based parsing with iterative correction loop |
| reconstruction.py β 3D model generation (extrude walls, cut openings, export GLB/OBJ) |
| """ |
|
|
| from .schema import ( |
| FloorPlan, |
| Wall, |
| Opening, |
| OpeningType, |
| DoorSwing, |
| Point2D, |
| Room, |
| RoomLabel, |
| WallFaceRef, |
| WallSide, |
| Correction, |
| CorrectionAction, |
| CorrectionResult, |
| ) |
| from .geometry import ( |
| compute_centerline_length, |
| interpolate_along_centerline, |
| normal_at_distance, |
| wall_to_polygon, |
| wall_polygon_with_openings, |
| wall_union, |
| detect_rooms_from_walls, |
| build_rooms, |
| compute_floor_plan_geometry, |
| ) |
| from .renderer import ( |
| render_floorplan_svg, |
| render_to_image, |
| overlay_on_image, |
| ) |
| from .parser import ( |
| FloorPlanParser, |
| parse_floorplan, |
| ) |
| from .reconstruction import ( |
| generate_3d_model, |
| export_glb, |
| export_obj, |
| export_gltf, |
| ) |
|
|
| __version__ = "0.2.0" |
|
|
| __all__ = [ |
| |
| "FloorPlan", "Wall", "Opening", "OpeningType", "DoorSwing", |
| "Point2D", "Room", "RoomLabel", "WallFaceRef", "WallSide", |
| "Correction", "CorrectionAction", "CorrectionResult", |
| |
| "compute_centerline_length", "interpolate_along_centerline", |
| "normal_at_distance", "wall_to_polygon", "wall_polygon_with_openings", |
| "wall_union", "detect_rooms_from_walls", "build_rooms", |
| "compute_floor_plan_geometry", |
| |
| "render_floorplan_svg", "render_to_image", "overlay_on_image", |
| |
| "FloorPlanParser", "parse_floorplan", |
| |
| "generate_3d_model", "export_glb", "export_obj", "export_gltf", |
| ] |
|
|