44 write(std::ostream &out,
int indent_level)
const {
48 indent(out, indent_level + 2)
49 <<
"<Scalar> thick { " <<
get_thick() <<
" }\n";
52 if (has_perspective()) {
53 indent(out, indent_level + 2)
57 write_body(out, indent_level + 2);
58 indent(out, indent_level) <<
"}\n";
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void write_header(std::ostream &out, int indent_level, const char *egg_keyword) const
Writes the first line of the egg object, e.g.
double get_thick() const
Returns the thickness set on this particular point.
A single point, or a collection of points as defined by a single <PointLight> entry.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
virtual EggPoint * make_copy() const override
Makes a copy of this object.
void remove_nonunique_verts()
Removes any multiple appearances of the same vertex from the primitive.
bool get_perspective() const
Returns the perspective flag set on this particular point.
TypeHandle is the identifier used to differentiate C++ class types.
virtual bool cleanup() override
Cleans up modeling errors in whatever context this makes sense.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent_level) const override
Writes the point to the indicated output stream in Egg format.