[brlcad-commits] SF.net SVN: brlcad:[49412] brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <r_...@us...> - 2012-02-13 19:06:15
|
Revision: 49412 http://brlcad.svn.sourceforge.net/brlcad/?rev=49412&view=rev Author: r_weiss Date: 2012-02-13 19:06:04 +0000 (Mon, 13 Feb 2012) Log Message: ----------- Updated function 'nmg_model_vertex_fuse' in file 'nmg_fuse.c'. Added test so that if there are no vertex, do nothing, just exit. Modified Paths: -------------- brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c =================================================================== --- brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c 2012-02-11 02:21:08 UTC (rev 49411) +++ brlcad/trunk/src/librt/primitives/nmg/nmg_fuse.c 2012-02-13 19:06:04 UTC (rev 49412) @@ -316,6 +316,11 @@ nmg_vertex_tabulate(&t1, &m->magic); + /* if there are no vertex, do nothing */ + if (!BU_PTBL_END(&t1)) { + return 0; + } + total = nmg_ptbl_vfuse(&t1, tol); bu_ptbl_free(&t1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |