15 #include "xFileNormal.h" 16 #include "eggVertex.h" 17 #include "eggPrimitive.h" 18 #include "config_xfile.h" 27 _normal.set(0.0, 0.0, 0.0);
38 if (egg_vertex->has_normal() || egg_prim->has_normal()) {
40 if (egg_vertex->has_normal()) {
41 norm = egg_vertex->get_normal();
43 norm = egg_prim->get_normal();
A base class for any of a number of kinds of geometry primitives: polygons, point lights...
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.
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...
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
int compare_to(const LVecBase3d &other) const
This flavor of compare_to uses a default threshold value based on the numeric type.
const LMatrix4d & get_vertex_to_node() const
Returns the transformation matrix suitable for converting the vertices as read from the egg file into...