Revision: 44657
http://brlcad.svn.sourceforge.net/brlcad/?rev=44657&view=rev
Author: r_weiss
Date: 2011-05-24 15:43:56 +0000 (Tue, 24 May 2011)
Log Message:
-----------
Updated functions 'compute_loop_class' and 'make_near_list' within file
'nmg_pt_fu.c'. Passed bn_tol into function 'make_near_list' to be used in a
compare. This change reduces the number of 'dangling face' errors during nmg
boolean operations such as when running the mged 'facetize' command.
Modified Paths:
--------------
brlcad/trunk/src/librt/primitives/nmg/nmg_pt_fu.c
Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_pt_fu.c
===================================================================
--- brlcad/trunk/src/librt/primitives/nmg/nmg_pt_fu.c 2011-05-24 14:43:17 UTC
(rev 44656)
+++ brlcad/trunk/src/librt/primitives/nmg/nmg_pt_fu.c 2011-05-24 15:43:56 UTC
(rev 44657)
@@ -710,7 +710,7 @@
* same edge.
*
*/
-HIDDEN void make_near_list(struct edge_info *edge_list, struct bu_list *near1)
+HIDDEN void make_near_list(struct edge_info *edge_list, struct bu_list *near1,
const struct bn_tol *tol)
{
struct edge_info *ei;
struct edge_info *ei_p;
@@ -772,7 +772,7 @@
for (BU_LIST_FOR(ei, edge_info, &edge_list->l)) {
NMG_CK_EI(ei);
NMG_CK_VED(ei->ved_p);
- if (ZERO(ei->ved_p->dist - dist)) {
+ if (NEAR_ZERO(ei->ved_p->dist - dist, tol->dist_sq)) {
ei_p = BU_LIST_PLAST(edge_info, &ei->l);
BU_LIST_DEQUEUE(&ei->l);
BU_LIST_APPEND(near1, &ei->l);
@@ -901,7 +901,7 @@
* the pt WRT the loop
*/
while (BU_LIST_IS_EMPTY(&near1) && BU_LIST_NON_EMPTY(&edge_list->l)) {
- make_near_list(edge_list, &near1);
+ make_near_list(edge_list, &near1, fpi->tol);
}
if (BU_LIST_IS_EMPTY(&near1)) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits