Hi Michael,
I tried again and this time OpenSCAD built the .stl!
I don't know why the last time id didn't!!!
Thanks for your answer!
--
Sent from: http://forum.openscad.org/
Hi lar3ry,
I went crazy to find a solid to subtract from the main pyramid at first but
I couldn't get it!
I've so much to learn about OpenSCAD!
Thanks a lot!
--
Sent from: http://forum.openscad.org/
Ronaldo wrote
I haven't checked your code yet but it seems that it might be easier to
excavate with the pyramid itself.
I'd be interested to see how you could do that.
There are many alternatives. Here is one:
module pyramid(height, side) {
linear_extrude(height,scale=0.1/height)
square(side,center=true);
}
Hi Ronaldo,
I see it works but just can't figure out why!!!
I can't understand how the sutracting pyramids don't cut out the edges of
the main pyramid!
I need to study it again and again: I tried commenting some statements to
simplify the model but had no success.
Thanks for upgrading my OpenSCAD knowledge.
module A(height,side,a,b,c,d)
difference(){
pyramid(150,100);
translate([ a, d, b]) pyramid(150,100);
translate([-a,-d, b]) pyramid(150,100);
translate([ 0, 0, c]) pyramid(150,100);
}
a = 5;
b = 4;
c = 11;
union() {
A(150,100,a,b,-c,-a);
A(150,100,a,b,-c, a);
}
You will need some trigonometry to calculate a, b and c from the pyramid
height and side and the width of the studs.
OpenSCAD mailing list
Discuss@.openscad
--
Sent from: http://forum.openscad.org/