[OpenSCAD] difference() over intersection_for() crashes

Parkinbot rudolf at digitaldocument.de
Wed Jul 17 18:35:43 EDT 2019


why does this innocent piece of code crash? 

R1 = 25; 
d = 10; 
n = 10; 
r = 8; 

difference()
{
   sphere(R1); 
   for(i=[0:n-1]) 
     rotate([0, 0, i*360/n ]) translate([R1, 0, 0]) tri();  
}
module tri()
{
  rotate([0, 90, 0])
  intersection_for(i=[0:120:359]) 
  rotate(i) translate([d/3, 0, 0]) cylinder(r=d, h = r, center = true); 
}




--
Sent from: http://forum.openscad.org/



More information about the Discuss mailing list