POV-Ray : Newsgroups : povray.programming : Adding a new object : Re: Adding a new object Server Time
28 Jul 2024 08:22:58 EDT (-0400)
  Re: Adding a new object  
From: Le Forgeron
Date: 6 Aug 2002 10:51:07
Message: <3D4FE2EF.8010907@free.fr>
Christopher James Huff wrote:

> In article <3D4EC82C.C892E71F@hotmail.com>,
>  John VanSickle <evi### [at] hotmailcom> wrote:
> 
> 
>>First, incorporate quadrilaterals into the mesh object.  This would
>>make polygon modelling simpler.
>>
> 
> That wouldn't really be a primitive, just an addition to the mesh 
> syntax. Probably quite easy, just look at how it parses triangles and 
> add code to parse a quad instead, splitting it into two triangles to add 
> to the mesh.
> 
 
Why stop at the quadrilateral, let's have also a plain polygon

(no hole) in the mesh parser (while still storing only triangles).
Then handling the quadrilateral is just a subcase of the generic polygon.


Post a reply to this message

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