#include <nurbsSub.h>
Public Member Functions | |
NurbsSubSurface (const NurbsSurface< T, 3 > &s) | |
~NurbsSubSurface () | |
void | drawSubdivisionPS (ostream &os, T tolerance) |
void | drawSubdivisionPS (const char *f, T tolerance) |
void | drawSubdivisionVRML (ostream &os, T tolerance, const Color &col=Color(0, 0, 255)) |
void | drawSubdivisionVRML (const char *f, T tolerance, const Color &col=Color(0, 0, 255)) |
void | drawSubdivisionVRML97 (ostream &os, T tolerance, const Color &col=Color(0, 0, 255)) |
void | drawSubdivisionVRML97 (const char *f, T tolerance, const Color &col=Color(0, 0, 255)) |
void | drawSubdivisionPoints (BasicArray< Point_nD< T, 3 > > &pnts, T tolerance) |
void | drawSubdivisionPoints (T tolerance) |
Protected Member Functions | |
void | drawSubdivision (T tolerance) |
void | initSurf () |
Protected Attributes | |
RenderMesh< T > * | render |
const NurbsSurface< T, 3 > & | rsurf |
NurbSurface< T > * | surf |
This class adds the methods and the information necessary for performing subdivision on the surface.
Subdivision is mainly used to output the surface in diverse formats such as VRML, Post-Sript or a mesh file.
This class is based on code from the article "Tessellation of NURB Surfaces" by John W. Peterson, jp@blowfish.taligent.com in "Graphics Gems IV", Academic Press, 1994
|
Constructor from a NurbsSurface. Constructor from a NurbsSurface
|
|
Destructor.
|
|
Draw the subdivision of the NURBS surface. Draw the subdivision of the NURBS surface
|
|
perform the subdivision of the NURBS and write the result in a VRML file.
|
|
perform the subdivision of the NURBS and write the result in a PS file.
|
|
perform the subdivision of the NURBS and write the result in a PS file.
|
|
perform the subdivision of the NURBS and write the result in a VRML file.
|
|
perform the subdivision of the NURBS and write the result in a VRML file.
|
|
perform the subdivision of the NURBS and write the result in a VRML file.
|
|
perform the subdivision of the NURBS and write the result in a VRML file.
|
|
initialise the subdivision surface
|