POV-Ray : Newsgroups : povray.programming : Mesh code : Re: Mesh code Server Time
8 Jul 2024 18:44:20 EDT (-0400)
  Re: Mesh code  
From: Le Forgeron
Date: 24 Dec 2002 03:51:49
Message: <3E082051.9040602@free.fr>
Christopher James Huff wrote:


> {
>     AddTriangle(p1, p2, p3, n1, n2, n3, t1, t2, t3);
>     AddTriangle(p1, p3, p4, n1, n3, n4, t1, t3, t4);
> }


Beware of the hashing system: I seem to remember that there was a side 
effects on the vertex when addding a triangle, at least in 3.1g.
Safe way is/was to keep a 'protected' copy of the shared vertices/data: 
first you use one set, next you use the other set (and never twice the 
same variables!)


Post a reply to this message

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