floorplan-scene 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- floorplan_scene/__init__.py +20 -0
- floorplan_scene/component-defaults.json +16 -0
- floorplan_scene/component_defaults.py +11 -0
- floorplan_scene/dimensions.py +140 -0
- floorplan_scene/fpi.py +1145 -0
- floorplan_scene/fpi_geometry.py +237 -0
- floorplan_scene/furniture.py +317 -0
- floorplan_scene/geometry.py +119 -0
- floorplan_scene/model.py +1072 -0
- floorplan_scene/presentation.py +146 -0
- floorplan_scene/py.typed +0 -0
- floorplan_scene/render_labels.py +315 -0
- floorplan_scene/render_style.py +126 -0
- floorplan_scene/rich_svg.py +278 -0
- floorplan_scene/shape_geometry.py +185 -0
- floorplan_scene/shapes.py +82 -0
- floorplan_scene/svg.py +978 -0
- floorplan_scene-0.1.0.dist-info/METADATA +26 -0
- floorplan_scene-0.1.0.dist-info/RECORD +21 -0
- floorplan_scene-0.1.0.dist-info/WHEEL +5 -0
- floorplan_scene-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: floorplan-scene
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Floor plan data structures and semantic SVG, FPI and Legend conversion
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: shapely<3,>=2
|
|
8
|
+
Requires-Dist: defusedxml<1,>=0.7.1
|
|
9
|
+
Requires-Dist: svg.path<8,>=7
|
|
10
|
+
|
|
11
|
+
# Floorplan Scene
|
|
12
|
+
|
|
13
|
+
毫米制户型数据结构与语义 SVG、FPI、Legend 转换。仅依赖本包和声明的第三方库,不含 CAD 前处理、模型调用、任务服务、Facts、动线、采光、通风或训练功能。
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from floorplan_scene import svg_to_scene, scene_to_rich_svg, export_fpi
|
|
17
|
+
|
|
18
|
+
scene = svg_to_scene(svg_text, scene_id="plane-1")
|
|
19
|
+
preview_svg = scene_to_rich_svg(scene)
|
|
20
|
+
diagnostics = []
|
|
21
|
+
fpi, legend = export_fpi(scene, diagnostics=diagnostics)
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`export_fpi` 不修改输入 Scene。目标格式无法表示的信息、默认值与几何近似记录在 diagnostics 中;格式转换成功不表示识别准确或建筑合理。房间完整轮廓保留在 Scene/SVG,FPI 导出房间标签。FPI 回读时房间轮廓需要调用方提供对应 Graph,本包不调用服务取得 Graph。
|
|
25
|
+
|
|
26
|
+
公开发布前需由维护者确定代码与资源的发布许可。
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
floorplan_scene/__init__.py,sha256=2YleQHNNsM0SkLgW4tjDkAN3PShWzRIJgQjJhIxYaGY,659
|
|
2
|
+
floorplan_scene/component-defaults.json,sha256=aaUpA3O2Jr5-85e-7_n6kbdzwJRYZBTSjSTCjXCpVCw,452
|
|
3
|
+
floorplan_scene/component_defaults.py,sha256=hwej69RAnPaEMZRGKD1bzwZtFuTT5UtUl5NNrsjlDCc,351
|
|
4
|
+
floorplan_scene/dimensions.py,sha256=2soXieC40exvPP8UIGkvd_ttlqS9_iwORwhdkPLl9bo,5404
|
|
5
|
+
floorplan_scene/fpi.py,sha256=Km15oGNtKiCQ0QGyWTK_ceAoM1ZdX6lYz0yhellcKN8,48506
|
|
6
|
+
floorplan_scene/fpi_geometry.py,sha256=iSG-ut5HMnbtXgp1SkGRq8iedjaGQ2KapHnQ1UWa8C8,9427
|
|
7
|
+
floorplan_scene/furniture.py,sha256=4iAFlZI8mtJx30ayKdiSfIQVZDzy0vQXag1sPJDBsew,13874
|
|
8
|
+
floorplan_scene/geometry.py,sha256=187c_FDfgp6RWAzNPX3MjjUK3wwFBejAIl8BGzX-R_Q,5998
|
|
9
|
+
floorplan_scene/model.py,sha256=T5slLphVY-1gEidlwEGJT6ntDyttprHJoImjIwxCAMQ,46467
|
|
10
|
+
floorplan_scene/presentation.py,sha256=bE0z3xpNh2mpfyp_WtO-FU8HG-sIrSEW2wMD_ELTQ3c,6919
|
|
11
|
+
floorplan_scene/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
+
floorplan_scene/render_labels.py,sha256=CT-0tXuwaEhe9lL0zkFvMvEFigjR6zcVQr_xpCRLHbg,13231
|
|
13
|
+
floorplan_scene/render_style.py,sha256=WMl5By1B5y1NKH4FGEWr_6f-Y46Uv2jYjO7GobPK1-g,6181
|
|
14
|
+
floorplan_scene/rich_svg.py,sha256=2WhL7foDz0OHCJiOaM42E-ariJX3_urTrzxp4VrA_cs,12377
|
|
15
|
+
floorplan_scene/shape_geometry.py,sha256=AZmFveCUeTZXkBQoeD9KFo1eakZWk0GvV0NWFy4OiLA,8343
|
|
16
|
+
floorplan_scene/shapes.py,sha256=YLVkXP07ZgaFkvlRWQRrRDpyBLt8ncd5lgJixCTPSik,2012
|
|
17
|
+
floorplan_scene/svg.py,sha256=m2agAM7IyeGYToBcx9cPOvAoFLEaosLRVbTkIklZYpo,46735
|
|
18
|
+
floorplan_scene-0.1.0.dist-info/METADATA,sha256=dTFr7o7OW455TdnpwnmO3skpDc6IMFScCVkhNb1c88s,1198
|
|
19
|
+
floorplan_scene-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
20
|
+
floorplan_scene-0.1.0.dist-info/top_level.txt,sha256=0GVtvtjZ-o0k3kGU8Sl-kbybOl4Jx7QsvNZp8FOnVmQ,16
|
|
21
|
+
floorplan_scene-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
floorplan_scene
|