View Full Version : Plz help!!!!Trimmed surface Bounding Box
03-03-2011, 11:12 PM
I have created a nurb Surface using gluNurbsSurface and used gluNurbsCurve and gluPwlCurves for creating trimmed Nurbs Surface,But Now I want to calculate the Bounding Box of the Trimmed surface.
Thanks in Advance!!!!
03-04-2011, 09:04 AM
Take a look at gluNurbsCallback (http://www.opengl.org/sdk/docs/man/xhtml/gluNurbsCallback.xml), you can set it up in a way that instead of rendering your NURB surface a callback is called for each vertex. When using this you simply keep track of the min/max of x/y/z over all vertices and get a bounding box for the surface.
03-06-2011, 10:32 PM
Thanks for looking in!!!
Currently I am using Old version of the glu function which doesnt provide this facility.any other tricks!!!
03-07-2011, 04:05 AM
Does it gives me Bounding Box of trimmed surface
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.