# Can anyone help me to render my model.

3 messages
Open this post in threaded view
|
Report Content as Inappropriate

## Can anyone help me to render my model.

 This is the code I cannot  render: //         Astroid Pendant //        ================= a=20; b=a*360/PI; \$fn=6; function x(t)= a*cos(t)*cos(t)*cos(t); function y(t)= a*sin(t)*sin(t)*sin(t); module graph(r, step) {    for (t=[-b:step:b]) {       translate([x(t),y(t),0])        render()          rotate([0,90,-90])          //cylinder(2,2,2,true);        sphere(1.5);    } }; graph(3,4); render() translate([0,22.5,0]) rotate([0,90,0]) rotate_extrude(convexity = 10) translate([2, 0, 0]) circle(.5); //x(t) = r cos(t)^3, //y(t) = r sin(t)^3,
Open this post in threaded view
|
Report Content as Inappropriate

## Re: Can anyone help me to render my model.

 Jaacov, I've taken the liberty of moding your code a bit: using hull to join adjacent pairs of spheres reducing the number of spheres created - only 1 revolution needed adding a parameter to the graph module to separately control the number of sides of the astroid With the given parameters, it renders in a couple of minutes for me Regards Chris //         Astroid Pendant //        ================= a=20;   function x(t)= a*cos(t)*cos(t)*cos(t); function y(t)= a*sin(t)*sin(t)*sin(t); module graph(r, step, sides, max=360) {    for (t=[0:step:max]) {        hull() {            translate([x(t),y(t),0])   sphere(r,\$fn=sides);            translate([x(t+step),y(t+step),0])   sphere(r,\$fn=sides);                    }    } }; graph(1,4,12); \$fn=6; render() translate([0,22.5,0]) rotate([0,90,0]) rotate_extrude(convexity = 10) translate([2, 0, 0]) circle(.5); //x(t) = r cos(t)^3, //y(t) = r sin(t)^3,