POV-Ray : Newsgroups : povray.general : Spline object: what is it? : Re: Spline object: what is it? Server Time
5 Aug 2024 20:21:43 EDT (-0400)
  Re: Spline object: what is it?  
From: Warp
Date: 19 Sep 2002 08:11:23
Message: <3d89beea@news.povray.org>
Shay <sah### [at] simcopartscom> wrote:
> Does this use less memory than joining them yourself into a mesh2
> vertex_vector list? If so I have some recoding to do.

  If you do the same job as POV-Ray does internally, ie. join all duplicate
points into one in the vertex_vector list, then you are doing exactly that:
the same job as POV-Ray.
  The advantage of allowing POV-Ray to do it (ie. by you using 'mesh') is
that it will save you work and will probably be a lot faster (finding
duplicate points is not a trivial task and needs clever data structures
in order to be fast). The best thing you can do is to figure out a way of
not creating duplicate points in the first place (this is possible and even
easy in many cases, and the issue in question is this kind of case).
  Of course the disadvantage of using mesh is that it takes more disk space
(if you write it to a file) and it may be a bit slower to parse (if nothing
else, because it's more to read, being a larger file).

-- 
#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.