25 _egg_group =
new EggGroup(_layer->_name);
27 if (_layer->_pivot != LPoint3::zero()) {
29 LPoint3d translate = LCAST(
double, _layer->_pivot);
30 _egg_group->set_transform3d(LMatrix4d::translate_mat(translate));
31 _egg_group->set_group_type(EggGroup::GT_instance);
40 if (_layer->_parent != -1) {
42 if (parent !=
nullptr) {
43 parent->_egg_group->add_child(_egg_group.p());
47 nout <<
"No layer found with number " << _layer->_parent
48 <<
"; cannot parent layer " << _layer->_number <<
" properly.\n";
EggData * get_egg_data()
Returns the EggData structure.
void make_egg()
Creates the egg structures associated with this Lightwave object.
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.
This class is a wrapper around LwoLayer and stores additional information useful during the conversio...
CLwoLayer * get_layer(int number) const
Returns a pointer to the layer with the given index number, or NULL if there is no such layer.
EggNode * add_child(EggNode *node)
Adds the indicated child to the group and returns it.
void connect_egg()
Connects all the egg structures together.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.