gufiya

03-23-2004, 01:09 PM

Hello,

I'm working on application that draws lenses on the screen. I have sample points from each lens, which are ordered on X-Y grid, and each sample has a Z value that describes the height of the lens at that X-Y point on the grid.

Now, I want to plot the surface of the lens on the screen, using OpenGL.

Since I'm new in the OpenGL world, I have two questions:

1. Does OpenGL has tools to triangulate my sample points to a nice polygoned-mesh? If it doesn't, do you know some references to perform this task?

2. Is it possible to plot the surface in OpenGL, directly using the sample points, without triangulating them to polygons (please note that they are ordered on X-Y grid)?

Thanks in advance

I'm working on application that draws lenses on the screen. I have sample points from each lens, which are ordered on X-Y grid, and each sample has a Z value that describes the height of the lens at that X-Y point on the grid.

Now, I want to plot the surface of the lens on the screen, using OpenGL.

Since I'm new in the OpenGL world, I have two questions:

1. Does OpenGL has tools to triangulate my sample points to a nice polygoned-mesh? If it doesn't, do you know some references to perform this task?

2. Is it possible to plot the surface in OpenGL, directly using the sample points, without triangulating them to polygons (please note that they are ordered on X-Y grid)?

Thanks in advance