POV-Ray : Newsgroups : povray.general : curved prism object : curved prism object Server Time
29 Jul 2024 20:16:51 EDT (-0400)
  curved prism object  
From: optima
Date: 17 Aug 2010 05:15:01
Message: <web.4c6a52a3af6d28666556a6ea0@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.