28 Point(
float X = 0,
float Y = 0,
float Z = 0) :x(X), y(Y), z(Z) {}
29 std::string ToString()
const 32 sls <<
"<" << x <<
"," << z <<
"," << y <<
">" <<
'\0';
42 Color(
float R = 1,
float G = 0,
float B = 0) :r(R), g(G), b(B) {}
43 std::string ToString()
const 46 sls <<
"rgb<" << r <<
"," << g <<
"," << b <<
">" <<
'\0';
52 PovRay(
const std::string & strFileName);
69 void Sphere(
Point centre,
float rayon,
Color c);
86 std::string fileNamePovRay;
void Pov_StartTg()
Script header for Tg elements.
Definition: PovRay.cpp:131
Point LocationCamera
Camera location in the scene.
Definition: PovRay.h:75
the script description of a point in POV-Ray
Definition: PovRay.h:24
the script description of a color in POV-Ray
Definition: PovRay.h:38
void Pov_End()
Script closure.
Definition: PovRay.cpp:78
Point CameraLookAt
Point observed by the Camera into the scene.
Definition: PovRay.h:77
void SaveToFile()
Save the script into the file.
Definition: PovRay.cpp:325
PovRay(const std::string &strFileName)
For a script description stored into the file named strFileName.
Definition: PovRay.cpp:13
void AxisEd()
Script for Axis creation for Ed elements.
Definition: PovRay.cpp:84
void Pov_StartEd()
Script header for Ed elements.
Definition: PovRay.cpp:21
void AxisTg()
Script for Axis creation for Tg elements.
Definition: PovRay.cpp:189
Definition: PovRay.cpp:11
Used to generate POV-Ray scripts to draw 3D descriptions of polyEd and polyTg objects.
Definition: PovRay.h:19