16 iFileName =
"freestyle.ps";
21 cerr <<
"couldn't open the output file " << iFileName << endl;
23 _ofstream <<
"%!PS-Adobe-2.0 EPSF-2.0" << endl;
24 _ofstream <<
"%%Creator: Freestyle (http://artis.imag.fr/Software/Freestyle)" << endl;
37 vector<Strip *> &strips = iStrokeRep->
getStrips();
38 Strip::vertex_container::iterator
v[3];
41 for (vector<Strip *>::iterator s = strips.begin(), send = strips.end(); s != send; ++s) {
43 v[0] = vertices.begin();
49 while (
v[2] != vertices.end()) {
Class to define a canvas designed to draw style modules.
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert a color
Class to define the Postscript rendering of a stroke.
ATTR_WARN_UNUSED_RESULT const BMVert * v
static Canvas * getInstance()
virtual int height() const =0
virtual int width() const =0
virtual void RenderStrokeRep(StrokeRep *iStrokeRep) const
PSStrokeRenderer(const char *iFileName=NULL)
virtual void RenderStrokeRepBasic(StrokeRep *iStrokeRep) const
std::vector< StrokeVertexRep * > vertex_container
vector< Strip * > & getStrips()
static const pxr::TfToken out("out", pxr::TfToken::Immortal)