Panda3D
Functions
sceneGraphReducer.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "sceneGraphReducer.h"
#include "config_pgraph.h"
#include "accumulatedAttribs.h"
#include "boundingSphere.h"
#include "modelNode.h"
#include "pointerTo.h"
#include "plist.h"
#include "pmap.h"
#include "geomNode.h"
#include "config_gobj.h"
#include "thread.h"

Go to the source code of this file.

Functions

 PT (PandaNode) SceneGraphReducer
 Collapses the two nodes into a single node, if possible. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2002-03-14

Definition in file sceneGraphReducer.cxx.

Function Documentation

◆ PT()

PT ( PandaNode  )

Collapses the two nodes into a single node, if possible.

The 'siblings' flag is true if the two nodes are siblings nodes; otherwise, node1 is a parent of node2. The return value is the resulting node, which may be either one of the source nodes, or a new node altogether, or it may be NULL to indicate that the collapse operation could not take place.

Definition at line 718 of file sceneGraphReducer.cxx.

References PandaNode::combine_with().