POV-Ray : Newsgroups : povray.general : creating a Mesh 2 Server Time
6 Nov 2024 18:27:45 EST (-0500)
  creating a Mesh 2 (Message 1 to 7 of 7)  
From: Jim Kress
Subject: creating a Mesh 2
Date: 18 Jul 2002 16:51:12
Message: <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?

Thanks.

Jim


Post a reply to this message

From: Andrew
Subject: Re: creating a Mesh 2
Date: 18 Jul 2002 17:11:14
Message: <3d372ef2$1@news.povray.org>
"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

From: Jim Kress
Subject: Re: creating a Mesh 2
Date: 18 Jul 2002 17:55:17
Message: <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


Post a reply to this message

From: TinCanMan
Subject: Re: creating a Mesh 2
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

From: Tom Melly
Subject: Re: creating a Mesh 2
Date: 19 Jul 2002 04:55:54
Message: <3d37d41a$1@news.povray.org>
"Jim Kress" <nos### [at] kressworkscom> wrote in message
news:3d373945$1@news.povray.org...
>
> 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.

Is the list too big to do by hand? Can you post a small sample of the format and
someone might either have or know of an appropriate util, or be able to write
one.


Post a reply to this message

From: Jim Kress
Subject: Re: creating a Mesh 2
Date: 21 Jul 2002 02:37:02
Message: <3d3a568e@news.povray.org>
Thanks for the help.  See p.b.i. for the results of your advice.

Jim


Post a reply to this message

From: Jim Kress
Subject: Re: creating a Mesh 2
Date: 21 Jul 2002 02:38:38
Message: <3d3a56ee$1@news.povray.org>
Thanks for your reply.  Turns out that Section 3.5.2 of the POV-Ray 3.5 Help
Manual had all the info needed.

See p.b.i. for the results.

Jim


Post a reply to this message

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