24 _normal.set(0.0, 0.0, 0.0);
33 if (egg_vertex->has_normal() || egg_prim->has_normal()) {
35 if (egg_vertex->has_normal()) {
36 norm = egg_vertex->get_normal();
38 norm = egg_prim->get_normal();
61 ct = _normal.compare_to(other._normal);
A base class for any of a number of kinds of geometry primitives: polygons, point lights,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
const LMatrix4d & get_vertex_frame() const
Returns the coordinate frame of the vertices referenced by primitives at or under this node.
This represents a single normal associated with an XFileFace.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_from_egg(EggVertex *egg_vertex, EggPrimitive *egg_prim)
Sets the structure up from the indicated egg data.
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.
const LMatrix4d & get_vertex_to_node() const
Returns the transformation matrix suitable for converting the vertices as read from the egg file into...