#include <nurbsSub.h>
Public Methods | |
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 Methods | |
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
Definition at line 110 of file nurbsSub.h.
|
Constructor from a NurbsSurface.
Constructor from a NurbsSurface
Definition at line 63 of file nurbsSub.cpp. |
|
Destructor.
Definition at line 339 of file nurbsSub.cpp. |
|
Draw the subdivision of the NURBS surface.
Draw the subdivision of the NURBS surface
Definition at line 136 of file nurbsSub.cpp. References initSurf. Referenced by drawSubdivisionPoints, drawSubdivisionPS, drawSubdivisionVRML, and drawSubdivisionVRML97. |
|
perform the subdivision of the NURBS and write the result in a VRML file.
Definition at line 271 of file nurbsSub.cpp. References drawSubdivision. |
|
perform the subdivision of the NURBS and write the result in a PS file.
Definition at line 153 of file nurbsSub.cpp. References drawSubdivisionPS. |
|
perform the subdivision of the NURBS and write the result in a PS file.
Definition at line 213 of file nurbsSub.cpp. References drawSubdivision. Referenced by drawSubdivisionPS. |
|
perform the subdivision of the NURBS and write the result in a VRML file.
Definition at line 173 of file nurbsSub.cpp. References drawSubdivisionVRML. |
|
perform the subdivision of the NURBS and write the result in a VRML file.
Definition at line 232 of file nurbsSub.cpp. References drawSubdivision. Referenced by drawSubdivisionVRML. |
|
perform the subdivision of the NURBS and write the result in a VRML file.
Definition at line 193 of file nurbsSub.cpp. References drawSubdivisionVRML97. |
|
perform the subdivision of the NURBS and write the result in a VRML file.
Definition at line 251 of file nurbsSub.cpp. References drawSubdivision. Referenced by drawSubdivisionVRML97. |
|
initialise the subdivision surface.
Definition at line 289 of file nurbsSub.cpp. Referenced by drawSubdivision. |