POV-Ray : Newsgroups : povray.general : Triangle vs Polygon Server Time
5 Nov 2024 07:19:13 EST (-0500)
  Triangle vs Polygon (Message 1 to 3 of 3)  
From: Manuel
Subject: Triangle vs Polygon
Date: 20 May 2003 18:54:07
Message: <3ecab20f@news.povray.org>
I'm a newbie...sorry for my english and my simple questions.

Which are the advantages of a triangle used to place of a polygon with 3
edges?
Or the polygon must be more than 3 edges?

Thx,

           Manuel


Post a reply to this message

From: Christopher James Huff
Subject: Re: Triangle vs Polygon
Date: 20 May 2003 21:00:13
Message: <cjameshuff-7522BF.20010420052003@netplex.aussie.org>
In article <3ecab20f@news.povray.org>, "Manuel" <man### [at] tinit> 
wrote:

> Which are the advantages of a triangle used to place of a polygon with 3
> edges?

1: Space. 3 vertices instead of a list of vertices.
2: Speed. Solving for an intersection with a triangle is simpler than 
with a general polygon.
3: If you have a lot of them, you can put the triangles in meshes, 
getting even more space and speed optimizations.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Manuel
Subject: Re: Triangle vs Polygon
Date: 21 May 2003 05:14:30
Message: <3ecb4376$1@news.povray.org>
> 1: Space. 3 vertices instead of a list of vertices.
> 2: Speed. Solving for an intersection with a triangle is simpler than
> with a general polygon.
> 3: If you have a lot of them, you can put the triangles in meshes,
> getting even more space and speed optimizations.


OK. Thx for explanation.
:-)

Have you an idea about the percentage of speed
improvement (without mesh construction)?


Cheers,

              Manuel


Post a reply to this message

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