#include <PovTools.h>
Static Public Member Functions | |
static std::string | getCamera (const CamDef &Cam) |
returns the given camera position as povray defines in a file | |
static void | transferToArray (const TopoDS_Face &aFace, gp_Vec **vertices, gp_Vec **vertexnormals, long **cons, int &nbNodesInFace, int &nbTriInFace) |
static void | writeCamera (const char *FileName, const CamDef &Cam) |
writes the given camera position as povray defines in a file | |
static void | writeCameraVec (const char *FileName, const std::vector< CamDef > &CamVec) |
writes the given camera positions as povray defines in a file | |
static void | writeData (const char *FileName, const char *PartName, const Data::ComplexGeoData *, float fMeshDeviation=0.1) |
write a given shape as povray file to disk | |
static void | writeShape (std::ostream &out, const char *PartName, const TopoDS_Shape &Shape, float fMeshDeviation=0.1) |
write a given shape as povray in a stream | |
static void | writeShape (const char *FileName, const char *PartName, const TopoDS_Shape &Shape, float fMeshDeviation=0.1) |
write a given shape as povray file to disk | |
static void | writeShapeCSV (const char *FileName, const TopoDS_Shape &Shape, float fMeshDeviation, float fLength) |
write a given shape as points and normal Vectors in a coma separeted format |
Definition at line 74 of file PovTools.h.
std::string PovTools::getCamera | ( | const CamDef & | Cam | ) | [static] |
returns the given camera position as povray defines in a file
Definition at line 60 of file PovTools.cpp.
References Raytracing::CamDef::CamPos, Raytracing::CamDef::LookAt, and Raytracing::CamDef::Up.
void PovTools::transferToArray | ( | const TopoDS_Face & | aFace, | |
gp_Vec ** | vertices, | |||
gp_Vec ** | vertexnormals, | |||
long ** | cons, | |||
int & | nbNodesInFace, | |||
int & | nbTriInFace | |||
) | [static] |
Definition at line 369 of file PovTools.cpp.
References Base::Console(), Handle(), RobotExample::l, and draftlibs::fcgeo::v1().
Referenced by writeShape(), and writeShapeCSV().
void PovTools::writeCamera | ( | const char * | FileName, | |
const CamDef & | Cam | |||
) | [static] |
writes the given camera position as povray defines in a file
Definition at line 93 of file PovTools.cpp.
References writeCameraVec().
void PovTools::writeCameraVec | ( | const char * | FileName, | |
const std::vector< CamDef > & | CamVec | |||
) | [static] |
writes the given camera positions as povray defines in a file
Definition at line 101 of file PovTools.cpp.
Referenced by writeCamera().
void PovTools::writeData | ( | const char * | FileName, | |
const char * | PartName, | |||
const Data::ComplexGeoData * | data, | |||
float | fMeshDeviation = 0.1 | |||
) | [static] |
write a given shape as povray file to disk
Definition at line 152 of file PovTools.cpp.
References RobotExampleTrajectoryOutOfShapes::count, Data::ComplexGeoData::countSubElements(), Data::ComplexGeoData::getFacesFromSubelement(), and Data::ComplexGeoData::getSubElement().
void PovTools::writeShape | ( | std::ostream & | out, | |
const char * | PartName, | |||
const TopoDS_Shape & | Shape, | |||
float | fMeshDeviation = 0.1 | |||
) | [static] |
write a given shape as povray in a stream
Definition at line 228 of file PovTools.cpp.
References Base::Console(), k, RobotExample::l, Base::SequencerLauncher::next(), and transferToArray().
void PovTools::writeShape | ( | const char * | FileName, | |
const char * | PartName, | |||
const TopoDS_Shape & | Shape, | |||
float | fMeshDeviation = 0.1 | |||
) | [static] |
write a given shape as povray file to disk
Definition at line 219 of file PovTools.cpp.
void PovTools::writeShapeCSV | ( | const char * | FileName, | |
const TopoDS_Shape & | Shape, | |||
float | fMeshDeviation, | |||
float | fLength | |||
) | [static] |
write a given shape as points and normal Vectors in a coma separeted format
Definition at line 310 of file PovTools.cpp.
References Base::Console(), RobotExample::l, Base::SequencerLauncher::next(), and transferToArray().