POV-Ray : Newsgroups : povray.general : creating a Mesh 2 : Re: creating a Mesh 2 Server Time
5 Aug 2024 22:16:14 EDT (-0400)
  Re: creating a Mesh 2  
From: TinCanMan
Date: 18 Jul 2002 18:20:40
Message: <3d373f38@news.povray.org>
"Jim Kress" <nos### [at] kressworkscom> wrote in message
news:3d373945$1@news.povray.org...
> > Do you have the face definitions with the co-ordinates?
>
> Yes, I have face definitions.  All 40,000 of them.
>
> > text editor or a short program).  If you have a list of vertices, and
> > then a list to define which vertices form each triangle, then the same
> > goes for a mesh2.
> >
>
> That's what I'm asking about.  How do I build the pov syntax for a Mesh 2
> from the list of vertices and face definitions?
>
> Thanks.
>
> Jim
>
>
>

When you create the face_indices, you specify 3 textures (which are
specified in the texture_list), 1 corresponding to each vertex:

mesh2{
  vertex_vectors{
    n,
    V1,V2,V3,...,Vn
  }
  texture_list{
    m,
    T1,T2,T3,...,Tm
  }
  face_indices{
    f,
    VV1, TV1,TV2,TV3, //<---3 textures per face (from texture_list)
    VV2, TV1,TV2,TV3,
    VV3, TV1,TV2,TV3,
    ...,
    VVf ,TV1,TV2,TV3
  }
}

-tgq


Post a reply to this message

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