#include <nurbsSub.h>
Inheritance diagram for PLib::RenderMeshVRML< T >:
Public Member Functions | |
RenderMeshVRML (ostream &os, const Color &col) | |
virtual void | drawHeader () |
virtual void | drawTriangle (const SurfSample< T > &v0, const SurfSample< T > &v1, const SurfSample< T > &v2) |
virtual void | drawFooter () |
virtual void | screenProject (const HPoint_nD< T, 3 > &worldPt, Point_nD< T, 3 > &screenPt) |
Protected Attributes | |
int | size |
ostream & | out |
Color | color |
void PLib::RenderMeshVRML< T >::drawHeader | ( | ) | [virtual] |
void PLib::RenderMeshVRML< T >::drawTriangle | ( | const SurfSample< T > & | v0, | |
const SurfSample< T > & | v1, | |||
const SurfSample< T > & | v2 | |||
) | [virtual] |
draws the triangle
This function draws the triangle points to the ostream.
v0 | a corner point of the triangle | |
v1 | a corner point of the triangle | |
v2 | a corner point of the triangle |
Implements PLib::RenderMesh< T >.
void PLib::RenderMeshVRML< T >::drawFooter | ( | ) | [virtual] |
write the footer information for a VRML file
Write the footer information for a VRML file
Implements PLib::RenderMesh< T >.
void PLib::RenderMeshVRML< T >::screenProject | ( | const HPoint_nD< T, 3 > & | worldPt, | |
Point_nD< T, 3 > & | screenPt | |||
) | [virtual] |
projects from world to screen coordinates
In the case of a VRML file, the world and screen coordinate are the same. Except that one is in homogenous space and the other in normal space.
worldPt | the point in world coordinate | |
screenPt | the point in the VRML coordinate |
Implements PLib::RenderMesh< T >.