POV-Ray : Newsgroups : povray.programming : About the Mesh : Re: About the Mesh Server Time
28 Jul 2024 06:24:38 EDT (-0400)
  Re: About the Mesh  
From: Christopher James Huff
Date: 24 Oct 2002 10:31:17
Message: <chrishuff-BA6C20.10243124102002@netplex.aussie.org>
In article <3db7ed1f@news.povray.org>, "Wu Yang" <wya### [at] cswrightedu> 
wrote:

> Thank you for your reply. What I mean is that: when I see the value of
> Mesh->Data->Vertices, I can get three values. These three values is the x
> values of a triangle's three corners, not (x,y,z) of a corner.

No, it isn't. It's what he said it was, and what the code says it is: a 
SNGL_VECT, a single-precision vector.


> I want get the (x,y,z) of every corner. Could you please give me some 
> advice? Thanks

I'd have to agree with the advice he has already given: learn C. Your 
questions indicate that you don't know it, and messing around with 
anything but the most basic things without knowing the language POV is 
written in is just not going to work.
Ideally, get a simple primer book on C++, POV was originally written in 
C, so most of it is structured like a C program, but it now uses C++. I 
have a book called the "C++ Primer Plus" by the Waite group that I'd 
recommend.
Once you've got the basics down, then you have a chance of understanding 
the POV code...but don't expect to have everything handed to you on a 
silver platter, you will have to carefully read the code and look at the 
structure of the different parts. And when someone tells you something 
or asks you a question, don't just ignore what they said.

-- 
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

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