Metadata-Version: 2.4
Name: floorplan-scene
Version: 0.1.0
Summary: Floor plan data structures and semantic SVG, FPI and Legend conversion
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: shapely<3,>=2
Requires-Dist: defusedxml<1,>=0.7.1
Requires-Dist: svg.path<8,>=7

# Floorplan Scene

毫米制户型数据结构与语义 SVG、FPI、Legend 转换。仅依赖本包和声明的第三方库，不含 CAD 前处理、模型调用、任务服务、Facts、动线、采光、通风或训练功能。

```python
from floorplan_scene import svg_to_scene, scene_to_rich_svg, export_fpi

scene = svg_to_scene(svg_text, scene_id="plane-1")
preview_svg = scene_to_rich_svg(scene)
diagnostics = []
fpi, legend = export_fpi(scene, diagnostics=diagnostics)
```

`export_fpi` 不修改输入 Scene。目标格式无法表示的信息、默认值与几何近似记录在 diagnostics 中；格式转换成功不表示识别准确或建筑合理。房间完整轮廓保留在 Scene/SVG，FPI 导出房间标签。FPI 回读时房间轮廓需要调用方提供对应 Graph，本包不调用服务取得 Graph。

公开发布前需由维护者确定代码与资源的发布许可。
