Skip to content

Commit 1d4e556

Browse files
committed
fix(thingyDodecahedron): simplifyCage
1 parent 9ad557a commit 1d4e556

File tree

1 file changed

+6
-40
lines changed

1 file changed

+6
-40
lines changed

src/models/thingyDodecahedron.ts

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ const brace = () =>
7979
}),
8080
),
8181
),
82-
8382
translate(
8483
[-54 / 2, -54 / 2, radius],
8584
sphere({
@@ -97,13 +96,6 @@ const brace = () =>
9796
}),
9897
),
9998
),
100-
translate(
101-
[-54 / 2, 0, radius],
102-
sphere({
103-
radius: 3 * 2,
104-
segments: 12,
105-
}),
106-
),
10799
rotateZ(
108100
degToRad(-segmentAngle * 3),
109101
translate(
@@ -131,13 +123,6 @@ const brace = () =>
131123
}),
132124
),
133125
),
134-
translate(
135-
[54 / 2, 54 / 2, radius],
136-
sphere({
137-
radius: 3 * 2,
138-
segments: 12,
139-
}),
140-
),
141126
// Beams
142127
rotateX(
143128
degToRad(45),
@@ -165,18 +150,6 @@ const brace = () =>
165150
),
166151
),
167152
),
168-
translate(
169-
[-innerRadius + 2, -7, radius / 2 + 4],
170-
rotateZ(
171-
degToRad(25),
172-
rotateX(
173-
degToRad(-30),
174-
cuboid({
175-
size: [5, 5, radius],
176-
}),
177-
),
178-
),
179-
),
180153
translate(
181154
[-innerRadius + 2, innerRadius / 2 + 8, radius / 2 + 4],
182155
rotateZ(
@@ -189,18 +162,6 @@ const brace = () =>
189162
),
190163
),
191164
),
192-
translate(
193-
[-innerRadius + 2, 7, radius / 2 + 4],
194-
rotateZ(
195-
degToRad(-25),
196-
rotateX(
197-
degToRad(30),
198-
cuboid({
199-
size: [5, 5, radius],
200-
}),
201-
),
202-
),
203-
),
204165
translate(
205166
[radius / 2, radius - 6, radius / 2 + 4],
206167
rotateZ(
@@ -249,6 +210,11 @@ const brace = () =>
249210
),
250211
),
251212
),
213+
// Horizontal
214+
cuboid({
215+
size: [5, radius * 1.2, 5],
216+
center: [-radius * 0.65, 0, 5],
217+
}),
252218
)
253219

254220
const hexagon = () =>
@@ -338,7 +304,7 @@ const cube = () => [
338304
]
339305

340306
export const thingyDodecahedron = () => [
341-
colorize(hexToRgb('#e76f51'), cube()),
307+
// colorize(hexToRgb('#e76f51'), cube()),
342308
rotateZ(
343309
degToRad(segmentAngle * 2.5),
344310
translateZ(radius, colorize(hexToRgb('#ff6600'), thingy())),

0 commit comments

Comments
 (0)