Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
XFileNormal Class Reference

This represents a single normal associated with an XFileFace. More...

#include "xFileNormal.h"

Public Member Functions

int compare_to (const XFileNormal &other) const
 
void set_from_egg (EggVertex *egg_vertex, EggPrimitive *egg_prim)
 Sets the structure up from the indicated egg data.
 

Public Attributes

bool _has_normal
 
LNormald _normal
 

Detailed Description

This represents a single normal associated with an XFileFace.

It is separate from XFileVertex, because the X syntax supports a different table of normals than that of vertices.

Definition at line 28 of file xFileNormal.h.

Constructor & Destructor Documentation

◆ XFileNormal()

XFileNormal::XFileNormal ( )

Definition at line 22 of file xFileNormal.cxx.

Member Function Documentation

◆ compare_to()

int XFileNormal::compare_to ( const XFileNormal & other) const

Definition at line 58 of file xFileNormal.cxx.

◆ set_from_egg()

void XFileNormal::set_from_egg ( EggVertex * egg_vertex,
EggPrimitive * egg_prim )

Sets the structure up from the indicated egg data.

Definition at line 31 of file xFileNormal.cxx.

References EggNode::get_vertex_frame(), and EggNode::get_vertex_to_node().

Referenced by XFileMesh::add_normal().

Member Data Documentation

◆ _has_normal

bool XFileNormal::_has_normal

Definition at line 35 of file xFileNormal.h.

◆ _normal

LNormald XFileNormal::_normal

Definition at line 34 of file xFileNormal.h.


The documentation for this class was generated from the following files: