Delete Adjacent
deleteAdjacent-Vik.zip
13KB
Binary
1
t13 = 4497;
2
t14 = 5;
3
t15 = 150;
4
Building_area_width = t15;
5
unit_width = t14;
6
unit_count_x_direction_floating = (Building_area_width / unit_width) - 0.49;
7
unit_count_x_direction_integer = Math.Round(unit_count_x_direction_floating);
8
t16 = t14 * unit_count_x_direction_integer;
9
t17 = t16 / 2;
10
t18 = t14 / 2;
11
t19 = t17 - t18;
12
t20 = t19 * -1;
13
t21 = (t20..#unit_count_x_direction_integer..t14);
14
t22 = 10;
15
t23 = 200;
16
Building_area_length = t23;
17
unit_length = t22;
18
unit_count_y_direction_floating = (Building_area_length / unit_length) - 0.49;
19
unit_count_y_direction_integer = Math.Round(unit_count_y_direction_floating);
20
t24 = t22 * unit_count_y_direction_integer;
21
t25 = t24 / 2;
22
t26 = t22 / 2;
23
t27 = t25 - t26;
24
t28 = t27 * -1;
25
t29 = (t28..#unit_count_y_direction_integer..t22);
26
t30 = 4;
27
t31 = t30 / 2;
28
t32 = 6;
29
t33 = (t31..#t32..t30);
30
point2 = Point.ByCoordinates(t21<1>, t29<2>, t33<3>);
31
cuboid1 = Cuboid.ByLengths(point2, t14, t22, t30);
32
t34 = 0;
33
t35 = 0;
34
Building_area_origin_X = t34;
35
Building_area_origin_Y = t35;
36
point1 = Point.ByCoordinates(Building_area_origin_X, Building_area_origin_Y, 0);
37
vector1 = Vector.ZAxis();
38
t36 = 0;
39
geometry1 = Geometry.Rotate(cuboid1, point1, vector1, t36);
40
t37 = t15 * 2;
41
t38 = t23 * 2;
42
t39 = t30 * t32;
43
cuboid2 = Cuboid.ByLengths(point1, t37, t38, t39);
44
vector2 = Vector.ZAxis();
45
t40 = t39 / 2;
46
geometry2 = Geometry.Translate(cuboid2, vector2, t40);
47
t41 = 0;
48
geometry3 = Geometry.Rotate(geometry2, point1, vector2, t41);
49
cuboid3 = Cuboid.ByLengths(point1, t15, t23, t39);
50
vector3 = Vector.ZAxis();
51
geometry4 = Geometry.Translate(cuboid3, vector3, t40);
52
geometry5 = Geometry.Rotate(geometry4, point1, vector3, t41);
53
solid1 = Solid.Difference(geometry3, geometry5);
54
t42 = Geometry.DoesIntersect(geometry1, solid1);
55
t43 = List.FilterByBoolMask(geometry1, t42);
56
t44 = Dictionary.ValueAtKey(t43, "in");
57
t45 = Dictionary.ValueAtKey(t43, "out");
58
t46 = List.Flatten(t45, -1);
59
t47 = 0;
60
t48 = 0;
61
t49 = 0;
62
point3 = Point.ByCoordinates(t47, t48, t49);
63
t50 = 80;
64
t51 = 50;
65
t52 = 50;
66
cuboid4 = Cuboid.ByLengths(point3, t50, t51, t52);
67
vector4 = Vector.ZAxis();
68
t53 = t52 / 2;
69
geometry6 = Geometry.Translate(cuboid4, vector4, t53);
70
vector5 = Vector.ZAxis();
71
t54 = 0;
72
geometry7 = Geometry.Rotate(geometry6, point3, vector5, t54);
73
t55 = Geometry.DoesIntersect(t46, geometry7);
74
t56 = List.FilterByBoolMask(t46, t55);
75
t57 = Dictionary.ValueAtKey(t56, "in");
76
t58 = Dictionary.ValueAtKey(t56, "out");
77
t59 = List.Flatten(t58, -1);
78
solid2 = Solid.ByUnion(t59);
79
solid3 = Solid.Difference(solid2, t59);
80
face1 = Topology.Faces(solid3);
81
t60 = List.Count(face1<1L>);
82
face2 = Topology.Faces(solid2);
83
t61 = List.Count(face2);
84
t62 = t60 - t61;
85
t63 = 6;
86
t64 = t62 < t63;
87
t65 = List.FilterByBoolMask(t59, t64);
88
t66 = Dictionary.ValueAtKey(t65, "in");
89
t67 = Dictionary.ValueAtKey(t65, "out");
90
t68 = DSCore.Object.Identity(t66);
91
t69 = DSCore.Object.Identity(t67);
92
t70 = 12000;
93
t71 = t14 * t22;
94
t72 = t70 / t71;
95
t73 = Math.Round(t72);
96
cuboid5 = Cuboid.ByLengths(point1, t15, t23, 1);
97
vector6 = Vector.ZAxis();
98
t74 = -0.5;
99
geometry8 = Geometry.Translate(cuboid5, vector6, t74);
100
vector7 = Vector.ZAxis();
101
geometry9 = Geometry.Rotate(geometry8, point1, vector7, t41);
Copied!
Copy link