Refactor code structure for improved readability and maintainability
This commit is contained in:
+277
-275
@@ -1,276 +1,278 @@
|
||||
{
|
||||
"version": "1.1",
|
||||
"prop_name": "Cozy Armchair",
|
||||
"material_preset": "wood",
|
||||
"tags": ["objects"],
|
||||
"shapes": [
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -94,
|
||||
"y": 70
|
||||
},
|
||||
{
|
||||
"x": -94,
|
||||
"y": -82
|
||||
},
|
||||
{
|
||||
"x": -71,
|
||||
"y": -110
|
||||
},
|
||||
{
|
||||
"x": 71,
|
||||
"y": -110
|
||||
},
|
||||
{
|
||||
"x": 94,
|
||||
"y": -82
|
||||
},
|
||||
{
|
||||
"x": 94,
|
||||
"y": 70
|
||||
},
|
||||
{
|
||||
"x": 76,
|
||||
"y": 91
|
||||
},
|
||||
{
|
||||
"x": -76,
|
||||
"y": 91
|
||||
}
|
||||
],
|
||||
"fill_color": "#80A9AF",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -65,
|
||||
"y": -84
|
||||
},
|
||||
{
|
||||
"x": 65,
|
||||
"y": -84
|
||||
},
|
||||
{
|
||||
"x": 65,
|
||||
"y": 22
|
||||
},
|
||||
{
|
||||
"x": -65,
|
||||
"y": 22
|
||||
}
|
||||
],
|
||||
"fill_color": "#A8CED0",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -73,
|
||||
"y": 18
|
||||
},
|
||||
{
|
||||
"x": 73,
|
||||
"y": 18
|
||||
},
|
||||
{
|
||||
"x": 82,
|
||||
"y": 69
|
||||
},
|
||||
{
|
||||
"x": -82,
|
||||
"y": 69
|
||||
}
|
||||
],
|
||||
"fill_color": "#C3DDCF",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -95,
|
||||
"y": -3
|
||||
},
|
||||
{
|
||||
"x": -72,
|
||||
"y": -17
|
||||
},
|
||||
{
|
||||
"x": -59,
|
||||
"y": 2
|
||||
},
|
||||
{
|
||||
"x": -59,
|
||||
"y": 79
|
||||
},
|
||||
{
|
||||
"x": -95,
|
||||
"y": 79
|
||||
}
|
||||
],
|
||||
"fill_color": "#80A9AF",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": 95,
|
||||
"y": -3
|
||||
},
|
||||
{
|
||||
"x": 72,
|
||||
"y": -17
|
||||
},
|
||||
{
|
||||
"x": 59,
|
||||
"y": 2
|
||||
},
|
||||
{
|
||||
"x": 59,
|
||||
"y": 79
|
||||
},
|
||||
{
|
||||
"x": 95,
|
||||
"y": 79
|
||||
}
|
||||
],
|
||||
"fill_color": "#80A9AF",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": -71,
|
||||
"y": 85
|
||||
},
|
||||
{
|
||||
"x": -48,
|
||||
"y": 85
|
||||
},
|
||||
{
|
||||
"x": -48,
|
||||
"y": 107
|
||||
},
|
||||
{
|
||||
"x": -71,
|
||||
"y": 107
|
||||
}
|
||||
],
|
||||
"fill_color": "#755369",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 4,
|
||||
"closed": true,
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"reshaped": false
|
||||
},
|
||||
{
|
||||
"shape_type": "polygon",
|
||||
"points": [
|
||||
{
|
||||
"x": 48,
|
||||
"y": 85
|
||||
},
|
||||
{
|
||||
"x": 71,
|
||||
"y": 85
|
||||
},
|
||||
{
|
||||
"x": 71,
|
||||
"y": 107
|
||||
},
|
||||
{
|
||||
"x": 48,
|
||||
"y": 107
|
||||
}
|
||||
],
|
||||
"fill_color": "#755369",
|
||||
"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:15:32",
|
||||
"modified_at": "2026-10-21T23:15:32"
|
||||
},
|
||||
"prop_name": "Cozy Armchair",
|
||||
"shapes": [
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#80A9AF",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 10.3749698404,
|
||||
"points": [
|
||||
{
|
||||
"x": -243.811782836914,
|
||||
"y": 185.452575683594
|
||||
},
|
||||
{
|
||||
"x": -243.811782836914,
|
||||
"y": -208.796264648438
|
||||
},
|
||||
{
|
||||
"x": -184.155700683594,
|
||||
"y": -281.421051025391
|
||||
},
|
||||
{
|
||||
"x": 184.155700683594,
|
||||
"y": -281.421051025391
|
||||
},
|
||||
{
|
||||
"x": 243.811782836914,
|
||||
"y": -208.796264648438
|
||||
},
|
||||
{
|
||||
"x": 243.811782836914,
|
||||
"y": 185.452575683594
|
||||
},
|
||||
{
|
||||
"x": 197.124420166016,
|
||||
"y": 239.921173095703
|
||||
},
|
||||
{
|
||||
"x": -197.124420166016,
|
||||
"y": 239.921173095703
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#A8CED0",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 10.3749698404,
|
||||
"points": [
|
||||
{
|
||||
"x": -168.59326171875,
|
||||
"y": -213.983749389648
|
||||
},
|
||||
{
|
||||
"x": 168.59326171875,
|
||||
"y": -213.983749389648
|
||||
},
|
||||
{
|
||||
"x": 168.59326171875,
|
||||
"y": 60.9529457092285
|
||||
},
|
||||
{
|
||||
"x": -168.59326171875,
|
||||
"y": 60.9529457092285
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#C3DDCF",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 10.3749698404,
|
||||
"points": [
|
||||
{
|
||||
"x": -189.343200683594,
|
||||
"y": 50.5779762268066
|
||||
},
|
||||
{
|
||||
"x": 189.343200683594,
|
||||
"y": 50.5779762268066
|
||||
},
|
||||
{
|
||||
"x": 212.686874389648,
|
||||
"y": 182.858840942383
|
||||
},
|
||||
{
|
||||
"x": -212.686874389648,
|
||||
"y": 182.858840942383
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#80A9AF",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 10.3749698404,
|
||||
"points": [
|
||||
{
|
||||
"x": -246.405517578125,
|
||||
"y": -3.8906135559082
|
||||
},
|
||||
{
|
||||
"x": -186.749450683594,
|
||||
"y": -40.2030067443848
|
||||
},
|
||||
{
|
||||
"x": -153.030792236328,
|
||||
"y": 9.07809829711914
|
||||
},
|
||||
{
|
||||
"x": -153.030792236328,
|
||||
"y": 208.796264648438
|
||||
},
|
||||
{
|
||||
"x": -246.405517578125,
|
||||
"y": 208.796264648438
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#80A9AF",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 10.3749698404,
|
||||
"points": [
|
||||
{
|
||||
"x": 246.405517578125,
|
||||
"y": -3.8906135559082
|
||||
},
|
||||
{
|
||||
"x": 186.749450683594,
|
||||
"y": -40.2030067443848
|
||||
},
|
||||
{
|
||||
"x": 153.030792236328,
|
||||
"y": 9.07809829711914
|
||||
},
|
||||
{
|
||||
"x": 153.030792236328,
|
||||
"y": 208.796264648438
|
||||
},
|
||||
{
|
||||
"x": 246.405517578125,
|
||||
"y": 208.796264648438
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#755369",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 10.3749698404,
|
||||
"points": [
|
||||
{
|
||||
"x": -184.155700683594,
|
||||
"y": 224.35871887207
|
||||
},
|
||||
{
|
||||
"x": -124.499633789063,
|
||||
"y": 224.35871887207
|
||||
},
|
||||
{
|
||||
"x": -124.499633789063,
|
||||
"y": 281.421051025391
|
||||
},
|
||||
{
|
||||
"x": -184.155700683594,
|
||||
"y": 281.421051025391
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"closed": true,
|
||||
"fill_color": "#755369",
|
||||
"outline_color": "#332B45",
|
||||
"outline_width": 10.3749698404,
|
||||
"points": [
|
||||
{
|
||||
"x": 124.499633789063,
|
||||
"y": 224.35871887207
|
||||
},
|
||||
{
|
||||
"x": 184.155700683594,
|
||||
"y": 224.35871887207
|
||||
},
|
||||
{
|
||||
"x": 184.155700683594,
|
||||
"y": 281.421051025391
|
||||
},
|
||||
{
|
||||
"x": 124.499633789063,
|
||||
"y": 281.421051025391
|
||||
}
|
||||
],
|
||||
"reshaped": false,
|
||||
"shape_type": "polygon",
|
||||
"vertex_flags": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"objects"
|
||||
],
|
||||
"version": "1.1"
|
||||
}
|
||||
Reference in New Issue
Block a user