[cgma-dev] r3564 - cgm/trunk/itaps
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Thu Mar 4 08:41:12 CST 2010
Author: kraftche
Date: 2010-03-04 08:41:11 -0600 (Thu, 04 Mar 2010)
New Revision: 3564
Modified:
cgm/trunk/itaps/iGeom_CGMA.cc
Log:
return iBase_FAILURE for getPntClsf and getPntArrClsf if the point isn't in/on any geometry
Modified: cgm/trunk/itaps/iGeom_CGMA.cc
===================================================================
--- cgm/trunk/itaps/iGeom_CGMA.cc 2010-03-03 23:31:19 UTC (rev 3563)
+++ cgm/trunk/itaps/iGeom_CGMA.cc 2010-03-04 14:41:11 UTC (rev 3564)
@@ -3163,7 +3163,7 @@
RefEntity** ptr = (RefEntity**)entity_handle;
const CubitVector pt(x,y,z);
*ptr = iGeom_get_point_containment( pt );
- RETURN( iBase_SUCCESS );
+ RETURN( ptr ? iBase_SUCCESS : iBase_FAILURE );
}
void
@@ -3199,6 +3199,8 @@
{
const CubitVector pt( *x, *y, *z );
array[i] = iGeom_get_point_containment( pt );
+ if (!array[i])
+ result = iBase_FAILURE;
x += step;
y += step;
z += step;
More information about the cgma-dev
mailing list