I wrote all code and there're no errors in code. Result of code is like first picture(left). But I can't Import that structure. The result of import stl file is second one(right one). How can I import it?(i think it's because i used table at that part)
Code is here
repeatingUnit = Hexahedron[
(*bottom*){{-2, -2, 0}, {-2, 2, 0}, {2, 2, 0}, {2, -2, 0},
(*top*){-3, -3, 3}, {-3, 3, 3}, {3, 3, 3}, {3, -3, 3}}];
a = Graphics3D[
Table[
GeometricTransformation[
repeatingUnit,
TranslationTransform[{0, 0, n}]
], {n, 0, 21, 3}], Axes -> True];
v = {{-2, -2, 0}, {-2, 2, 0}, {2, 2, 0},
{2, -2, 0}, {-3, -3, -12}, {-3, 3, -12}, {3, 3, -12}, {3, -3, -12}};
i = {{1, 2, 3, 4}, {1, 2, 6, 5}, {2, 3, 7, 6}, {3, 4, 8, 7}, {4, 1, 5,
8}, {5, 6, 7, 8}};
b = Graphics3D[{GraphicsComplex[v, Polygon[i]]}, Axes -> True];
v2 = {{-1, -1, 25}, {-1, 1, 25}, {1, 1, 25}, {1, -1, 25}, {-1.7, -1.7,
27.5}, {-1.7, 1.7, 27.5}, {1.7, 1.7, 27.5}, {1.7, -1.7, 27.5}};
i2 = {{1, 2, 3, 4}, {1, 2, 6, 5}, {2, 3, 7, 6}, {3, 4, 8, 7}, {4, 1,
5, 8}, {5, 6, 7, 8}};
c = Graphics3D[{GraphicsComplex[v2, Polygon[i2]]}, Axes -> True];
d = Graphics3D[Cylinder[{{0, 0, 27.5}, {0, 0, 31}}, 1/4]];
e = Graphics3D[Cylinder[{{0, 0, 31}, {0, 0, 33}}, 1/8]];
f = Graphics3D[Cuboid[{1, -1, 24}, {-1, 1, 25}]];
gj = Show[a, b, c, d, e, f]
Export["building.stl", gj]
Import["building.stl"]
a
, you receive an error saying that STL export is not implement for Graphics 3D, which is interesting since it omits that message when adding other Graphics3D, or exporting justb
etc. I think this might be a "limitation" of export specifically with Hexahedron... $\endgroup$