15 #include "cLwoLayer.h" 16 #include "lwoToEggConverter.h" 29 _egg_group =
new EggGroup(_layer->_name);
34 LPoint3d translate = LCAST(
double, _layer->_pivot);
36 _egg_group->set_group_type(EggGroup::GT_instance);
47 if (_layer->_parent != -1) {
50 parent->_egg_group->add_child(_egg_group.p());
54 nout <<
"No layer found with number " << _layer->_parent
55 <<
"; cannot parent layer " << _layer->_number <<
" properly.\n";
static const LPoint3f & zero()
Returns a zero-length point.
EggData * get_egg_data()
Returns the EggData structure.
void make_egg()
Creates the egg structures associated with this Lightwave object.
static LMatrix4d translate_mat(const LVecBase3d &trans)
Returns a matrix that applies the indicated translation.
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
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...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
EggNode * add_child(EggNode *node)
Adds the indicated child to the group and returns it.
void connect_egg()
Connects all the egg structures together.