Re: Acceleration Structures For Vertex Snapping
Oscar Forth <[email protected]> Fri, 19 Nov 2010 22:15:26 +0000
| Newsgroups | gmane.games.devel.algorithms |
|---|---|
| Message-ID | <[email protected]> |
O(1) implies hash lookup is direct array index ... surely best case lookup is O(n * log( n ))? Or care to explain where I am going wrong on my thinking? Ta On 19 Nov 2010 22:09, <[email protected]> wrote: > > Sebastian Sylvan wrote: >>> I'm working on the vertex snapping feature for our level editor. >>> >>> So, in vertex snapping mode all translates are snapped to the >>> nearest vertex on screen. >>> [...] >> >> You could try some sort of BVH (e.g. an AABB tree) in world space, > > Vertex snapping is the same as vertex welding, for which > a spatial hash gives you O(1) operations for a single vertex. > > > Christer Ericson, Director of Tools and Technology > Sony Computer Entertainment, Santa Monica > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > GDAlgorithms-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ GDAlgorithms-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list Archives: http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list