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*&);
69 static int getNextColorNum();
74 void writeNormals(
const std::vector<Triangle2*>& vT,
double scale);
75 void writePoints(
const std::vector<Point2*>& vPoints,
unsigned linewidth,
const char* color) ;
76 void writePoints(
const std::vector<Point2>& vPoints,
unsigned linewidth,
const char* color) ;
78 void writePoint(
const Point2& p,
unsigned linewidth,
const char* color);
79 void writeSegment(
const Point2& src,
const Point2& trg,
const char* color,
bool bWithEndPoints=
false);
80 void writeSegments(
const std::vector<Segment2>& vSegments,
const char* color,
bool bWithEndPoints=
false);
81 void writeSegments(
const std::vector<Edge2>& vSegments,
const char* color,
bool bWithEndPoints=
false);
82 void writeVertexPairs(
const std::vector<VertexPair2>& vVertexPairs,
const char* color);
83 void writeCubes(
const std::vector<Point2>& vPoints,
const char* color);
84 void writeTriangles(
const std::vector<Triangle2*>& vT,
const char* color,
bool bWithNormals=
false);
85 void writeTriangles(
const std::vector<Point2>& vTriangleCorners,
const char* color,
bool bWithNNV);
86 void writeTriangle(
const Triangle2& t,
const char* color);
87 void writeTriangle(
const Point2& p0,
const Point2& p1,
const Point2& p2,
const char* color);
88 void writeBall(
const Point2& p,
double radius);
89 void setBackfaces(
bool bWithBackfaces_);
93 void startList(
size_t numPoints,
size_t numTriangles,
bool bWithEdges);
95 std::ofstream* pOutFile;
102 #elif GEOM_PSEUDO3D==GEOM_FALSE
104 #error GEOM_PSEUDO3D is not defined
Point.
Definition: Point2.h:53
Triangle.
Definition: Triangle2.h:60
Visualizer3 is a 3D scene writer for the Geomview viewer.
Definition: Visualizer3.h:37