33 _group->add_child(_vpool);
45 _group->add_child(poly);
48 poly->set_color(LColor(color.r, color.g, color.b, 1.0));
57 DXFVertices::const_iterator vi;
58 for (vi = entity->_verts.begin();
59 vi != entity->_verts.end();
74 _group->add_child(line);
77 line->set_color(LColor(color.r, color.g, color.b, 1.0));
79 DXFVertices::const_iterator vi;
80 for (vi = entity->_verts.begin();
81 vi != entity->_verts.end();
98 return _vpool->create_unique_vertex(egg_vert);
void add_line(const DXFToEggConverter *entity)
Similar to add_polygon(), but adds a set of point lights instead.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This represents a "layer" as read from the DXF file.
A line segment, or a series of connected line segments, defined by a <Line> entry.
virtual bool cleanup() override
Cleans up modeling errors in whatever context this makes sense.
void set_pos(double pos)
Sets the vertex position.
A base class for nodes in the hierarchy that are not leaf nodes.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
EggVertex * add_vertex(const DXFVertex &vertex)
Adds a unique vertex to the layer's vertex pool and returns it.
void add_polygon(const DXFToEggConverter *entity)
Given that done_entity() has just been called and that the current entity represents a polygon,...
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
EggNode * add_child(EggNode *node)
Adds the indicated child to the group and returns it.
Stored within DXFFile, this is the basic Vertex data of a DXF file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A collection of vertices.
EggVertex * add_vertex(EggVertex *vertex)
Adds the indicated vertex to the end of the primitive's list of vertices, and returns it.
const Color & get_color() const
This is a convenience function to return the r,g,b color of the current entity (at the time of done_e...
This class supervises the construction of an EggData structure from a DXF file.