15 #include "eggVertexAux.h" 16 #include "eggParameters.h" 28 EggVertexAux(
const string &name,
const LVecBase4d &aux) :
53 EggNamedObject::operator = (copy);
77 nassertr(first->get_name() == second->get_name(), NULL);
79 LVecBase4d aux = (first->_aux + second->_aux) / 2;
89 write(ostream &out,
int indent_level)
const {
90 string inline_name = get_name();
91 if (!inline_name.empty()) {
94 indent(out, indent_level)
95 <<
"<Aux> " << inline_name <<
"{ " <<
get_aux() <<
" }\n";
108 compare = _aux.
compare_to(other._aux, egg_parameters->_pos_threshold);
int compare_to(const EggVertexAux &other) const
An ordering operator to compare two vertices for sorting order.
This is the base class for all three-component vectors and points.
The set of named auxiliary data that may or may not be assigned to a vertex.
int compare_to(const LVecBase4d &other) const
This flavor of compare_to uses a default threshold value based on the numeric type.
This is a fairly low-level base class–any egg object that has a name.
TypeHandle is the identifier used to differentiate C++ class types.
const LVecBase4d & get_aux() const
Returns the auxiliary data quadruple.