GSoC/GCI Archive
Google Summer of Code 2013 BRL-CAD

Matrix Pull Routine for performing the opposite of the Matrix Push on Geometry.

by Nyah Check for BRL-CAD

The pull routine takes a specific node on a CSG tree, walking down to the primitive shapes restoring the geometric transformations(scaling, translation or rotations) at each stage down the CSG tree traversal based on reversing all the geometric transformations that occurred on the primitive shapes located at the leaf. Pull routine also stores the local coordinate systems at each point during the traversal from the primitives up to the given initial node. All transformation matrices visited along the tree will be set to their original transformation matrices. This command will fail if no changes occurred to the primitive shapes at the leaves of the csg tree.