#include <nurbsSub.h>
Inheritance diagram for PLib::RenderMeshPS< T >:
Public Member Functions | |
RenderMeshPS (ostream &os) | |
virtual void | drawHeader () |
virtual void | drawTriangle (const SurfSample< T > &v0, const SurfSample< T > &v1, const SurfSample< T > &v2) |
void | drawLine (const SurfSample< T > &v0, const SurfSample< T > &v1) |
virtual void | drawFooter () |
virtual void | screenProject (const HPoint_nD< T, 3 > &worldPt, Point_nD< T, 3 > &screenPt) |
Protected Attributes | |
ostream & | out |
void PLib::RenderMeshPS< T >::drawHeader | ( | ) | [virtual] |
void PLib::RenderMeshPS< T >::drawTriangle | ( | const SurfSample< T > & | v0, | |
const SurfSample< T > & | v1, | |||
const SurfSample< T > & | v2 | |||
) | [virtual] |
void PLib::RenderMeshPS< T >::drawLine | ( | const SurfSample< T > & | v0, | |
const SurfSample< T > & | v1 | |||
) |
Draw a line.
v0 | ||
v1 |
void PLib::RenderMeshPS< T >::drawFooter | ( | ) | [virtual] |
void PLib::RenderMeshPS< T >::screenProject | ( | const HPoint_nD< T, 3 > & | worldPt, | |
Point_nD< T, 3 > & | screenPt | |||
) | [virtual] |
projects from world to screen coordinates
A Post Script point is the projection of the point from the homogenous space to the 2D paper surface with the axis multiplied by 100 and with an offset of 200.
There is no perspective projection performed.
worldPt | the point in world coordinate | |
screenPt | the point in the VRML coordinate |
Implements PLib::RenderMesh< T >.