Raytracing::PovTools Class Reference

#include <PovTools.h>

Static Public Member Functions

static std::string getCamera (const CamDef &Cam, int width=800, int height=600)
 returns the given camera position as povray defines in a file More...
 
static void writeCamera (const char *FileName, const CamDef &Cam)
 writes the given camera position as povray defines in a file More...
 
static void writeCameraVec (const char *FileName, const std::vector< CamDef > &CamVec)
 writes the given camera positions as povray defines in a file More...
 
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 More...
 
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 More...
 
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 More...
 
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 comma separated format More...
 

Member Function Documentation

◆ getCamera()

std::string PovTools::getCamera ( const CamDef Cam,
int  width = 800,
int  height = 600 
)
static

returns the given camera position as povray defines in a file

References Raytracing::CamDef::CamPos, Raytracing::CamDef::LookAt, and Raytracing::CamDef::Up.

◆ writeCamera()

void PovTools::writeCamera ( const char *  FileName,
const CamDef Cam 
)
static

◆ writeCameraVec()

void PovTools::writeCameraVec ( const char *  FileName,
const std::vector< CamDef > &  CamVec 
)
static

writes the given camera positions as povray defines in a file

Referenced by writeCamera().

◆ writeData()

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

◆ writeShape() [1/2]

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

References writeShape().

Referenced by Raytracing::RayFeature::execute(), and writeShape().

◆ writeShape() [2/2]

void PovTools::writeShape ( std::ostream &  out,
const char *  PartName,
const TopoDS_Shape &  Shape,
float  fMeshDeviation = 0.1 
)
static

◆ writeShapeCSV()

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 comma separated format

References Base::Console(), Part::Tools::getPointNormals(), Part::Tools::getTriangulation(), Base::ConsoleSingleton::Log(), and Base::SequencerLauncher::next().


The documentation for this class was generated from the following files: