POV-Ray : Newsgroups : povray.unofficial.patches : mesh{triangle{A B C transform{?}}} : Re: mesh{triangle{A B C transform{?}}} Server Time
1 Sep 2024 12:22:34 EDT (-0400)
  Re: mesh{triangle{A B C transform{?}}}  
From: Warp
Date: 23 May 2001 10:11:13
Message: <3b0bc501@news.povray.org>
Wlodzimierz ABX Skiba <abx### [at] abxartpl> wrote:
: And I was surprised that I can't use transform{} in triangle of mesh.

  A transformation to an individual triangle inside a mesh can't be done
in the regular way, as it is done to all other objects. I think that's
the reason why it's not supported.
  However, I think it would be perfectly possible to support them: Just
transform internally the given vertex points with the transformation
before adding them to the vertex point list in the mesh data structure.
I don't think this would even be difficult to achieve (although it might
require some work because you have to keep the vertex points in temporary
variables until the triangle has been completely parsed and only then
add them to the mesh data structure).

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


Post a reply to this message

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