[cgma-dev] r6080 - cgm/trunk/itaps
janehu at mcs.anl.gov
janehu at mcs.anl.gov
Tue Oct 29 12:54:52 CDT 2013
Author: janehu
Date: 2013-10-29 12:54:51 -0500 (Tue, 29 Oct 2013)
New Revision: 6080
Modified:
cgm/trunk/itaps/iGeom_CGMA.cc
Log:
Added a position check for coincident vertices per Shengyong's request.
Modified: cgm/trunk/itaps/iGeom_CGMA.cc
===================================================================
--- cgm/trunk/itaps/iGeom_CGMA.cc 2013-10-24 22:42:24 UTC (rev 6079)
+++ cgm/trunk/itaps/iGeom_CGMA.cc 2013-10-29 17:54:51 UTC (rev 6080)
@@ -6525,6 +6525,18 @@
int* IsOn )
{
CubitVector position(x,y,z);
+ RefVertex* ref_v = dynamic_cast<RefVertex*>(ENTITY_HANDLE(entity));
+ if(ref_v)
+ {
+ CubitVector v_loc = ref_v->coordinates();
+ CubitBoolean test = v_loc.about_equal(position);
+ if (test == CUBIT_TRUE)
+ *IsOn = 1;
+ else
+ *IsOn = 0;
+ return;
+ }
+
CubitPointContainment pc = CUBIT_PNT_UNKNOWN;
RefFace *ref_face = dynamic_cast<RefFace*>(ENTITY_HANDLE(entity));
if(ref_face)
More information about the cgma-dev
mailing list