//--------------------------------- // 2006-01-29 (17-15) (Steve) // Greg had some bottom-up code in ADFCreator.cpp. But, they're mostly unused. // So I just moved those functions here. //--------------------------------- /* Adaptively Sampled Distance Field Octree Bottom-Up Construction Function Construct an ADF using a bottom-up method from the given octreeNode, *node, given a subdivision depth limit, subDepth, and an error tolerance for merging nodes, errorLimit. */ octreeNode *buildBottomUpADF (CLEDSGeometry *STL, octreeNode *node, int subDepth, double errorLimit) { subdivideADF (STL, node, subDepth); mergeADF (node, errorLimit); return node; }