Delete Adjacent

t13 = 4497;
t14 = 5;
t15 = 150;
Building_area_width = t15;
unit_width = t14;
unit_count_x_direction_floating = (Building_area_width / unit_width) - 0.49;
unit_count_x_direction_integer = Math.Round(unit_count_x_direction_floating);
t16 = t14 * unit_count_x_direction_integer;
t17 = t16 / 2;
t18 = t14 / 2;
t19 = t17 - t18;
t20 = t19 * -1;
t21 = (t20..#unit_count_x_direction_integer..t14);
t22 = 10;
t23 = 200;
Building_area_length = t23;
unit_length = t22;
unit_count_y_direction_floating = (Building_area_length / unit_length) - 0.49;
unit_count_y_direction_integer = Math.Round(unit_count_y_direction_floating);
t24 = t22 * unit_count_y_direction_integer;
t25 = t24 / 2;
t26 = t22 / 2;
t27 = t25 - t26;
t28 = t27 * -1;
t29 = (t28..#unit_count_y_direction_integer..t22);
t30 = 4;
t31 = t30 / 2;
t32 = 6;
t33 = (t31..#t32..t30);
point2 = Point.ByCoordinates(t21<1>, t29<2>, t33<3>);
cuboid1 = Cuboid.ByLengths(point2, t14, t22, t30);
t34 = 0;
t35 = 0;
Building_area_origin_X = t34;
Building_area_origin_Y = t35;
point1 = Point.ByCoordinates(Building_area_origin_X, Building_area_origin_Y, 0);
vector1 = Vector.ZAxis();
t36 = 0;
geometry1 = Geometry.Rotate(cuboid1, point1, vector1, t36);
t37 = t15 * 2;
t38 = t23 * 2;
t39 = t30 * t32;
cuboid2 = Cuboid.ByLengths(point1, t37, t38, t39);
vector2 = Vector.ZAxis();
t40 = t39 / 2;
geometry2 = Geometry.Translate(cuboid2, vector2, t40);
t41 = 0;
geometry3 = Geometry.Rotate(geometry2, point1, vector2, t41);
cuboid3 = Cuboid.ByLengths(point1, t15, t23, t39);
vector3 = Vector.ZAxis();
geometry4 = Geometry.Translate(cuboid3, vector3, t40);
geometry5 = Geometry.Rotate(geometry4, point1, vector3, t41);
solid1 = Solid.Difference(geometry3, geometry5);
t42 = Geometry.DoesIntersect(geometry1, solid1);
t43 = List.FilterByBoolMask(geometry1, t42);
t44 = Dictionary.ValueAtKey(t43, "in");
t45 = Dictionary.ValueAtKey(t43, "out");
t46 = List.Flatten(t45, -1);
t47 = 0;
t48 = 0;
t49 = 0;
point3 = Point.ByCoordinates(t47, t48, t49);
t50 = 80;
t51 = 50;
t52 = 50;
cuboid4 = Cuboid.ByLengths(point3, t50, t51, t52);
vector4 = Vector.ZAxis();
t53 = t52 / 2;
geometry6 = Geometry.Translate(cuboid4, vector4, t53);
vector5 = Vector.ZAxis();
t54 = 0;
geometry7 = Geometry.Rotate(geometry6, point3, vector5, t54);
t55 = Geometry.DoesIntersect(t46, geometry7);
t56 = List.FilterByBoolMask(t46, t55);
t57 = Dictionary.ValueAtKey(t56, "in");
t58 = Dictionary.ValueAtKey(t56, "out");
t59 = List.Flatten(t58, -1);
solid2 = Solid.ByUnion(t59);
solid3 = Solid.Difference(solid2, t59);
face1 = Topology.Faces(solid3);
t60 = List.Count(face1<1L>);
face2 = Topology.Faces(solid2);
t61 = List.Count(face2);
t62 = t60 - t61;
t63 = 6;
t64 = t62 < t63;
t65 = List.FilterByBoolMask(t59, t64);
t66 = Dictionary.ValueAtKey(t65, "in");
t67 = Dictionary.ValueAtKey(t65, "out");
t68 = DSCore.Object.Identity(t66);
t69 = DSCore.Object.Identity(t67);
t70 = 12000;
t71 = t14 * t22;
t72 = t70 / t71;
t73 = Math.Round(t72);
cuboid5 = Cuboid.ByLengths(point1, t15, t23, 1);
vector6 = Vector.ZAxis();
t74 = -0.5;
geometry8 = Geometry.Translate(cuboid5, vector6, t74);
vector7 = Vector.ZAxis();
geometry9 = Geometry.Rotate(geometry8, point1, vector7, t41);

Last updated