Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -1,246 +1,249 @@
|
||||
{
|
||||
"version": "1.1",
|
||||
"prop_name": "Open Window Frame",
|
||||
"material_preset": "wood",
|
||||
"tags": ["walls", "buildings"],
|
||||
"shapes": [
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -129,
|
||||
"y": -152
|
||||
},
|
||||
{
|
||||
"x": -109,
|
||||
"y": -152
|
||||
},
|
||||
{
|
||||
"x": -109,
|
||||
"y": 112
|
||||
},
|
||||
{
|
||||
"x": -129,
|
||||
"y": 112
|
||||
}
|
||||
],
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": 109,
|
||||
"y": -152
|
||||
},
|
||||
{
|
||||
"x": 129,
|
||||
"y": -152
|
||||
},
|
||||
{
|
||||
"x": 129,
|
||||
"y": 112
|
||||
},
|
||||
{
|
||||
"x": 109,
|
||||
"y": 112
|
||||
}
|
||||
],
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -129,
|
||||
"y": -152
|
||||
},
|
||||
{
|
||||
"x": 129,
|
||||
"y": -152
|
||||
},
|
||||
{
|
||||
"x": 129,
|
||||
"y": -132
|
||||
},
|
||||
{
|
||||
"x": -129,
|
||||
"y": -132
|
||||
}
|
||||
],
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -129,
|
||||
"y": 92
|
||||
},
|
||||
{
|
||||
"x": 129,
|
||||
"y": 92
|
||||
},
|
||||
{
|
||||
"x": 129,
|
||||
"y": 112
|
||||
},
|
||||
{
|
||||
"x": -129,
|
||||
"y": 112
|
||||
}
|
||||
],
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -10,
|
||||
"y": -132
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": -132
|
||||
},
|
||||
{
|
||||
"x": 10,
|
||||
"y": 92
|
||||
},
|
||||
{
|
||||
"x": -10,
|
||||
"y": 92
|
||||
}
|
||||
],
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -109,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"x": 109,
|
||||
"y": -30
|
||||
},
|
||||
{
|
||||
"x": 109,
|
||||
"y": -10
|
||||
},
|
||||
{
|
||||
"x": -109,
|
||||
"y": -10
|
||||
}
|
||||
],
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -145,
|
||||
"y": 112
|
||||
},
|
||||
{
|
||||
"x": 145,
|
||||
"y": 112
|
||||
},
|
||||
{
|
||||
"x": 145,
|
||||
"y": 128
|
||||
},
|
||||
{
|
||||
"x": -145,
|
||||
"y": 128
|
||||
}
|
||||
],
|
||||
"fill_color": "#C89670",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
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:13:10",
|
||||
"modified_at": "2026-10-21T23:13:10"
|
||||
},
|
||||
"prop_name": "Open Window Frame",
|
||||
"shapes": [
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -171.698989868164,
|
||||
"y": -186.339996337891
|
||||
},
|
||||
{
|
||||
"x": -145.078994750977,
|
||||
"y": -186.339996337891
|
||||
},
|
||||
{
|
||||
"x": -145.078994750977,
|
||||
"y": 165.043991088867
|
||||
},
|
||||
{
|
||||
"x": -171.698989868164,
|
||||
"y": 165.043991088867
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": 145.078994750977,
|
||||
"y": -186.339996337891
|
||||
},
|
||||
{
|
||||
"x": 171.698989868164,
|
||||
"y": -186.339996337891
|
||||
},
|
||||
{
|
||||
"x": 171.698989868164,
|
||||
"y": 165.043991088867
|
||||
},
|
||||
{
|
||||
"x": 145.078994750977,
|
||||
"y": 165.043991088867
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -171.698989868164,
|
||||
"y": -186.339996337891
|
||||
},
|
||||
{
|
||||
"x": 171.698989868164,
|
||||
"y": -186.339996337891
|
||||
},
|
||||
{
|
||||
"x": 171.698989868164,
|
||||
"y": -159.720001220703
|
||||
},
|
||||
{
|
||||
"x": -171.698989868164,
|
||||
"y": -159.720001220703
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -171.698989868164,
|
||||
"y": 138.42399597168
|
||||
},
|
||||
{
|
||||
"x": 171.698989868164,
|
||||
"y": 138.42399597168
|
||||
},
|
||||
{
|
||||
"x": 171.698989868164,
|
||||
"y": 165.043991088867
|
||||
},
|
||||
{
|
||||
"x": -171.698989868164,
|
||||
"y": 165.043991088867
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -13.3099994659424,
|
||||
"y": -159.720001220703
|
||||
},
|
||||
{
|
||||
"x": 13.3099994659424,
|
||||
"y": -159.720001220703
|
||||
},
|
||||
{
|
||||
"x": 13.3099994659424,
|
||||
"y": 138.42399597168
|
||||
},
|
||||
{
|
||||
"x": -13.3099994659424,
|
||||
"y": 138.42399597168
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#EBCF9E",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -145.078994750977,
|
||||
"y": -23.9580001831055
|
||||
},
|
||||
{
|
||||
"x": 145.078994750977,
|
||||
"y": -23.9580001831055
|
||||
},
|
||||
{
|
||||
"x": 145.078994750977,
|
||||
"y": 2.66199994087219
|
||||
},
|
||||
{
|
||||
"x": -145.078994750977,
|
||||
"y": 2.66199994087219
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#C89670",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 5.324,
|
||||
"points": [
|
||||
{
|
||||
"x": -192.994995117188,
|
||||
"y": 165.043991088867
|
||||
},
|
||||
{
|
||||
"x": 192.994995117188,
|
||||
"y": 165.043991088867
|
||||
},
|
||||
{
|
||||
"x": 192.994995117188,
|
||||
"y": 186.339996337891
|
||||
},
|
||||
{
|
||||
"x": -192.994995117188,
|
||||
"y": 186.339996337891
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"walls",
|
||||
"buildings"
|
||||
],
|
||||
"version": "1.1"
|
||||
}
|
||||
Reference in New Issue
Block a user