|
|
Hi,
I can create sharp cornered objects using prism function, such as the case of
the
cabinet in the picture.
But creating the front door and the top/bottom panels is problematic for me
cause I dont know how to "bend/curve" the path for a prism.
the code I use for the case is below
//top
cls.WriteLine("union{prism {linear_spline 0,75,7");
cls.WriteLine("<" + s1x + "," + s1y + ">, <" + s2x + "," + s2y + ">, <" + s3x +
"," + s3y + ">, <" + s4x + "," + s4y + ">, <" + s5x + "," + s5y + ">, <" + s6x +
"," + s6y + ">, <" + s1x + "," + s1y + ">");
cls.WriteLine(color + "} finish {phong 1 ambient 0.6 reflection 0}}");
cls.WriteLine("rotate<-0,0,180> ");
cls.WriteLine("translate<0," + Height + ",0>}");
Does it have something to do with linear_spline , can you give me a simple
sample for creating this door and the top panel as prism object or another
better object?
I can draw this shape from top down view in C# gdi+, but in povray I dont know
which arguments to feed into which function.
http://www.kitchendesigned.com/public_download/curved_cabinet.jpg
thank you very much for all your help
Post a reply to this message
|
|