boolean library
boolean.union({obj1, obj2, obj3,...........});- The first parameter
tabletype- Represents the object of the Boolean operation with the parameters.
The object inside the table can be d3object or user_define_obj.
shoulder_screw1 = $shoulder_screw( "english", 1/2, length = 20 )$;
test.code(shoulder_screw1);
cube1 = d3object.cube({10, 10, 10}, true);
union1 = boolean.union({cube1, shoulder_screw11});boolean library
boolean.difference({obj1, obj2, obj3,...........});- The first parameter
tabletype- Represents the object of the Boolean operation with the parameters.
The object inside the table can be d3object or user_define_obj.
shoulder_screw1 = $shoulder_screw( "english", 1/2, length = 20 )$;
shoulder_screw1.code(shoulder_screw1);
cylinder1 = d3object.cylinder({h = 10, r = 5}, true);
difference1 = boolean.difference({cylinder1, shoulder_screw1});boolean library
boolean.intersection({obj1, obj2, obj3,...........});- The first parameter
tabletype- Represents the object of the Boolean operation with the parameters.
The object inside the table can be d3object or user_define_obj.
sphere1 = d3object.sphere({h = 10, d = 5});
intersection1 = boolean.intersection({sphere1, shoulder_screw1});
print(code(intersection1));