POV-Ray : Newsgroups : povray.general : Spline object: what is it? : Re: Spline object: what is it? Server Time
5 Aug 2024 18:25:15 EDT (-0400)
  Re: Spline object: what is it?  
From: Warp
Date: 19 Sep 2002 17:14:46
Message: <3d8a3e46@news.povray.org>
Christopher James Huff <chr### [at] maccom> wrote:
> The output will be identical. It is just that the built-in feature will 
> always get the vertices right, while your duplicate-removal code might 
> have a bug.

  It's often the case that you can build the mesh without creating
duplicate vertex points at all. This way you don't have to remove anything.
  For example, if you make a box using mesh2, you simply create 8 points
in the vertex list and then use their index values in the faces list.
Similarly for more advanced shapes, usually created using loops (such
as cylinders, spheres, etc).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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