From: Christian Skluzacek (csklu_fs++at++yahoo.com)
Date: 03/08/2002 09:26:21
Hi Performers,
I have a few questions related to a geometry problem I
am trying to solve. I need to create a sphere with an
arbitrarily shaped hole cut out of it. The hole is
determined at run/load time and doesn't change
afterwards. One way I thought of doing this is the
following:
1. Create a NURBS sphere (with GLU)
2. trim out hole using gluBegin/EndTrim
3. Somehow get the generated triangles that OpenGL
uses
4. Build pfGeoSet from the obtained triangles.
Question 1: Does anyone know the knot sequence and
control points necessary for a sphere? I've only found
the sequence for a circle on the net. Not being a
NURBS expert myself I found the knot sequence for an
8th of a sphere in "Nurbs: From Projective Geometry to
Practical Use" by Farin but it is triangular in shape
and from what I understand from gluNurbs surfaces you
must specify two dimensions (u,v) so I am not sure how
the values that Farin describes shoould be mapped to
OpenGL. Alternatively, is it possible to convert a
GLUQuadric (i.e. from gluSphere) to a GLUnurbs object?
As an aside, will Performer ever support high level
data structures for Nurbs in it's pfGeoSet for
example? Will NURBS ever be supported in hardware (or
is it now supported?) so that they can be used in
real-time applications? This would be great for
something like continuous LODs (I'm sure these aren't
original thoughts).
Question 2: Once I do have a NURBS surface, how do I
get the triangles from it? I thought maybe something
like gluTess but (I think) that is only for polygons.
I know Inventor has a SoNurbsSurface node, how is this
converted (if converted) in the performer loader? Come
to think of it, maybe I could just create a
SoNurbsSurface object in the Performer program and
somehow render that directly by making a custom pfNode
or something?
Thanks for any help.
Chris
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
This archive was generated by hypermail 2b29 : Fri Mar 08 2002 - 09:27:31 PST