|
|
"Jim Kress" <nos### [at] kressworkscom> wrote in message
news:3d372a40$1@news.povray.org...
> I have a set of vertices (x,y,and z) coordinates and a color
associated with
> each vertex. How do I create a Mesh 2 that will allow me to visualize
the
> surface with povray v3.5?
Do you have the face definitions with the co-ordinates? If not, then
you're in trouble because there are an awful lot of ways of joining them
up with triangles :)
If you have the co-ordinates so that every set of three forms a
triangle, it'd be easy to convert them to a mesh (a few minutes with a
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.
Note that vertices in a triangle can be given individual textures
(IIRC).
Post a reply to this message
|
|
|
|
> 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
Post a reply to this message
|
|
|
|
"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
|
|