#include "sps.H"
#include <queue>
Include dependency graph for sps.C:
Go to the source code of this file.
Classes | |
class | Priority |
Functions | |
void | generate_samples (BMESHptr mesh, Bface_list &flist, ARRAY< Wvec > &blist, int height, double min_dist, double regularity) |
void | generate_samples (BMESHptr mesh, double min_spacing, Bface_list &flist, ARRAY< Wvec > &blist) |
OctreeNode * | sps (BMESHptr mesh, int height, double regularity, double min_dist, Bface_list &flist, ARRAY< Wvec > &blist) |
Wpt | center (Wpt_list &pts, ARRAY< int > &N) |
Wpt_list | get_pts (Bface_list &flist, ARRAY< Wvec > &blist) |
void | remove_nodes (Bface_list &flist, ARRAY< Wvec > &blist, double min_dist, ARRAY< OctreeNode * > &t) |
double | distr_func (double r, double d) |
float | dorand () |
int | pick (ARRAY< QuadtreeNode * > &l) |
void | assign_weights (ARRAY< QuadtreeNode * > &fs, double regularity, CWpt &pt) |
void | visit (OctreeNode *node, double regularity, Bface_list &flist, ARRAY< Wvec > &blist) |
BBOX | bface_bbox (QuadtreeNode *face) |
BBOX | bface_bbox (Bface *face) |
Variables | |
static bool | debug = Config::get_var_bool("DEBUG_SPS",false) |
|
Definition at line 269 of file sps.C. References QuadtreeNode::area(), QuadtreeNode::centroid(), distr_func(), QuadtreeNode::get_weight(), j, ARRAY< T >::num(), and QuadtreeNode::set_weight(). Referenced by visit(). |
|
Definition at line 422 of file sps.C. References Bvert::loc(), BBOX::update(), Bface::v1(), Bface::v2(), and Bface::v3(). |
|
Definition at line 411 of file sps.C. References BBOX::update(), QuadtreeNode::v1(), QuadtreeNode::v2(), and QuadtreeNode::v3(). Referenced by OctreeNode::build_octree(), and QuadtreeNode::build_quadtree(). |
|
Definition at line 130 of file sps.C. References ARRAY< T >::num(). Referenced by GEOM::do_cam_focus(), IDRefImage::find_all_neighbors(), IDRefImage::find_neighbor(), Cam_int_fp::focus(), IDRefImage::is_patch_sil_edge_near(), IDRefImage::is_simplex_near(), BMESH::recenter(), REF_CLASS(), remove_nodes(), and IDRefImage::search(). |
|
Definition at line 233 of file sps.C. Referenced by assign_weights(). |
|
An auxilliary function that produces a pseudo-random floating point number between 0 and 1 Definition at line 242 of file sps.C. Referenced by pick(), and QuadtreeNode::urand_pick(). |
|
Definition at line 37 of file sps.C. References OctreeNode::build_octree(), ARRAY< T >::clear(), debug, err_adv(), OctreeNode::intersects(), BBOX::max(), BBOX::min(), ARRAY< T >::num(), remove_nodes(), OctreeNode::set_disp(), OctreeNode::set_leaf(), OctreeNode::set_neibors(), OctreeNode::set_terms(), OctreeNode::terms(), and visit(). |
|
Definition at line 23 of file sps.C. Referenced by Patch::create_dynamic_samples(). |
|
Definition at line 149 of file sps.C. References ARRAY< T >::num(). Referenced by remove_nodes(). |
|
Definition at line 248 of file sps.C. References dorand(), and ARRAY< T >::num(). Referenced by VIEW::intersect(), VIEW::intersect_others(), and visit(). |
|
Definition at line 162 of file sps.C. References Priority::_index, Priority::_priority, Priority::_version, center(), ARRAY< T >::clear(), mlib::Point3< P, V >::dist(), get_pts(), j, ARRAY< T >::num(), and ARRAY< T >::push(). Referenced by generate_samples(), and sps(). |
|
Definition at line 81 of file sps.C. References OctreeNode::build_octree(), ARRAY< T >::clear(), debug, BBOX::dim(), err_adv(), OctreeNode::intersects(), mlib::Vec3< V >::length(), BBOX::max(), BBOX::min(), ARRAY< T >::num(), remove_nodes(), OctreeNode::set_disp(), OctreeNode::set_leaf(), OctreeNode::set_neibors(), OctreeNode::set_terms(), OctreeNode::terms(), and visit(). Referenced by Collide::_update_scene(), generate_samples(), and TestSPSapp::load_scene(). |
|
Definition at line 286 of file sps.C. References assign_weights(), QuadtreeNode::build_quadtree(), BBOX::center(), ARRAY< T >::clear(), OctreeNode::get_children(), OctreeNode::get_disp(), OctreeNode::get_leaf(), OctreeNode::intersects(), ARRAY< T >::last(), Bvert::loc(), ARRAY< T >::num(), pick(), QuadtreeNode::set_terms(), Bface::v1(), Bface::v2(), Bface::v3(), and visit(). Referenced by generate_samples(), sps(), and visit(). |
|
|