24 #if GEOM_PSEUDO3D==GEOM_TRUE
28 #include "VertexPair2.h"
30 namespace GEOM_FADE25D
39 static const char *
const CLIGHTBLUE;
40 static const char *
const CDARKBLUE;
41 static const char *
const CYELLOW;
42 static const char *
const CPINK;
43 static const char *
const CBLACK;
44 static const char *
const CLIGHTBROWN;
45 static const char *
const CDARKBROWN;
46 static const char *
const CORANGE;
47 static const char *
const CPURPLE;
48 static const char *
const CGRAY;
49 static const char *
const CLIGHTGRAY;
50 static const char *
const CRED;
51 static const char *
const CGREEN;
52 static const char *
const CWHITE;
53 static const char *
const CRIMSON;
54 static const char *
const CDARKORANGE;
55 static const char *
const CGOLDENROD;
56 static const char *
const COLIVE;
57 static const char *
const CLAWNGREEN;
58 static const char *
const CGREENYELLOW;
59 static const char *
const CPALEGREEN;
60 static const char *
const CMEDSPRINGGREEN;
61 static const char *
const CLIGHTSEAGREAN;
62 static const char *
const CCYAN;
63 static const char *
const CSTEELBLUE;
64 static const char *
const MIDNIGHTBLUE;
65 static const char *
const CWHEAT;
66 static const char * getColor(
int i);
67 static const char * getNextColor();
68 static const char * getNextColorAndName(
const char*&);
72 void writeNormals(
const std::vector<Triangle2*>& vT,
double scale);
73 void writePoints(
const std::vector<Point2*>& vPoints,
unsigned linewidth,
const char* color) ;
74 void writePoints(
const std::vector<Point2>& vPoints,
unsigned linewidth,
const char* color) ;
76 void writePoint(
const Point2& p,
unsigned linewidth,
const char* color);
77 void writeSegment(
const Point2& src,
const Point2& trg,
const char* color,
bool bWithEndPoints=
false);
78 void writeSegments(
const std::vector<Segment2>& vSegments,
const char* color,
bool bWithEndPoints=
false);
79 void writeSegments(
const std::vector<Edge2>& vSegments,
const char* color,
bool bWithEndPoints=
false);
80 void writeVertexPairs(
const std::vector<VertexPair2>& vVertexPairs,
const char* color);
81 void writeCubes(
const std::vector<Point2>& vPoints,
const char* color);
82 void writeTriangles(
const std::vector<Triangle2*>& vT,
const char* color,
bool bWithNormals=
false);
83 void writeTriangles(
const std::vector<Point2>& vTriangleCorners,
const char* color,
bool bWithNNV);
84 void writeTriangle(
const Triangle2& t,
const char* color);
85 void writeTriangle(
const Point2& p0,
const Point2& p1,
const Point2& p2,
const char* color);
86 void writeBall(
const Point2& p,
double radius);
87 void setBackfaces(
bool bWithBackfaces_);
91 void startList(
size_t numPoints,
size_t numTriangles,
bool bWithEdges);
93 std::ofstream* pOutFile;
100 #elif GEOM_PSEUDO3D==GEOM_FALSE
102 #error GEOM_PSEUDO3D is not defined
Point.
Definition: Point2.h:43
Triangle.
Definition: Triangle2.h:60
Visualizer3 is a 3D scene writer for the Geomview viewer.
Definition: Visualizer3.h:37