Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-10-22 00:52:36 -04:00
parent 0b1dda2e2f
commit db677dc194
20 changed files with 18475 additions and 14642 deletions
+205 -203
View File
@@ -1,204 +1,206 @@
{
"version": "1.1",
"prop_name": "Coffee Table",
"material_preset": "wood",
"tags": ["objects"],
"shapes": [
{
"shape_type": "polygon",
"points": [
{
"x": -150,
"y": -46
},
{
"x": 150,
"y": -46
},
{
"x": 150,
"y": -18
},
{
"x": -150,
"y": -18
}
],
"fill_color": "#B9805D",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -128,
"y": -18
},
{
"x": 128,
"y": -18
},
{
"x": 128,
"y": -6
},
{
"x": -128,
"y": -6
}
],
"fill_color": "#D69E70",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -124,
"y": -7
},
{
"x": -98,
"y": -7
},
{
"x": -90,
"y": 94
},
{
"x": -116,
"y": 94
}
],
"fill_color": "#A66F58",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": 98,
"y": -7
},
{
"x": 124,
"y": -7
},
{
"x": 116,
"y": 94
},
{
"x": 90,
"y": 94
}
],
"fill_color": "#A66F58",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "polygon",
"points": [
{
"x": -101,
"y": 46
},
{
"x": 101,
"y": 46
},
{
"x": 101,
"y": 58
},
{
"x": -101,
"y": 58
}
],
"fill_color": "#C38C68",
"outline_color": "#332B45",
"outline_width": 4,
"closed": true,
"vertex_flags": [
0,
0,
0,
0
],
"reshaped": false
},
{
"shape_type": "line",
"points": [
{
"x": -115,
"y": -38
},
{
"x": 115,
"y": -38
}
],
"fill_color": "#00000000",
"outline_color": "#E8B98A",
"outline_width": 3,
"closed": false,
"vertex_flags": [
0,
0
],
"reshaped": false
}
],
"anchors": {
"origin": {
"role": "pivot",
"x": 0,
"y": 0,
"rotation_deg": 0,
"z_index_offset": 0,
"allowed_hands": "both"
}
},
"metadata": {
"created_at": "2026-10-15T00:00:00",
"modified_at": "2026-10-15T00:00:00"
}
}
"anchors": {
"origin": {
"allowed_hands": "both",
"role": "pivot",
"rotation_deg": 0.0,
"x": 0.0,
"y": 0.0,
"z_index_offset": 0
}
},
"material_preset": "wood",
"metadata": {
"created_at": "2026-10-21T23:15:55",
"modified_at": "2026-10-21T23:15:55"
},
"prop_name": "Coffee Table",
"shapes": [
{
"closed": true,
"fill_color": "#B9805D",
"outline_color": "#332B45",
"outline_width": 6.44204,
"points": [
{
"x": -241.57649230957,
"y": -112.735702514648
},
{
"x": 241.57649230957,
"y": -112.735702514648
},
{
"x": 241.57649230957,
"y": -67.6414184570313
},
{
"x": -241.57649230957,
"y": -67.6414184570313
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#D69E70",
"outline_color": "#332B45",
"outline_width": 6.44204,
"points": [
{
"x": -206.145278930664,
"y": -67.6414184570313
},
{
"x": 206.145278930664,
"y": -67.6414184570313
},
{
"x": 206.145278930664,
"y": -48.315299987793
},
{
"x": -206.145278930664,
"y": -48.315299987793
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#A66F58",
"outline_color": "#332B45",
"outline_width": 6.44204,
"points": [
{
"x": -199.703231811523,
"y": -49.9258079528809
},
{
"x": -157.829986572266,
"y": -49.9258079528809
},
{
"x": -144.945892333984,
"y": 112.735702514648
},
{
"x": -186.819152832031,
"y": 112.735702514648
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#A66F58",
"outline_color": "#332B45",
"outline_width": 6.44204,
"points": [
{
"x": 157.829986572266,
"y": -49.9258079528809
},
{
"x": 199.703231811523,
"y": -49.9258079528809
},
{
"x": 186.819152832031,
"y": 112.735702514648
},
{
"x": 144.945892333984,
"y": 112.735702514648
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": true,
"fill_color": "#C38C68",
"outline_color": "#332B45",
"outline_width": 6.44204,
"points": [
{
"x": -162.661514282227,
"y": 35.4312210083008
},
{
"x": 162.661514282227,
"y": 35.4312210083008
},
{
"x": 162.661514282227,
"y": 54.7573394775391
},
{
"x": -162.661514282227,
"y": 54.7573394775391
}
],
"reshaped": false,
"shape_type": "polygon",
"vertex_flags": [
0,
0,
0,
0
]
},
{
"closed": false,
"fill_color": "#00000000",
"outline_color": "#E8B98A",
"outline_width": 4.83153,
"points": [
{
"x": -185.208648681641,
"y": -99.8516159057617
},
{
"x": 185.208648681641,
"y": -99.8516159057617
}
],
"reshaped": false,
"shape_type": "line",
"vertex_flags": [
0,
0
]
}
],
"tags": [
"objects"
],
"version": "1.1"
}