I've tried to make a structure of nodes where each node have a different type and different data which it store about itself, but I can't find any information on it. Maybee since I don't know what this kind of structure is called.
node(bsptree)
/ node(triangle)
/ /
/ /
node(octree)-------------node(binary space partitioning tree)
\ \
\ \
\ \
node(cube) node(furry rabbit)
If anyone knows how to create a structure of this type please submit a reply.