[cgma-dev] r3196 - cgm/trunk/itaps
jvporter at wisc.edu
jvporter at wisc.edu
Fri Oct 9 14:38:11 CDT 2009
Author: jvporter
Date: 2009-10-09 14:38:10 -0500 (Fri, 09 Oct 2009)
New Revision: 3196
Modified:
cgm/trunk/itaps/iGeom_CGMA.cc
Log:
Make iGeom_getArrXYZtoUV properly allocate uv array
Modified: cgm/trunk/itaps/iGeom_CGMA.cc
===================================================================
--- cgm/trunk/itaps/iGeom_CGMA.cc 2009-10-08 22:33:12 UTC (rev 3195)
+++ cgm/trunk/itaps/iGeom_CGMA.cc 2009-10-09 19:38:10 UTC (rev 3196)
@@ -4106,7 +4106,9 @@
else {
ERROR(iBase_INVALID_ENTITY_COUNT, "Mismatched input array sizes.");
}
-
+
+ CHECK_SIZE( *uv, double, 2*count );
+
double *u, *v;
const double *x, *y, *z;
u = *uv;
@@ -4126,8 +4128,6 @@
uv_step = 2;
}
- CHECK_SIZE( *uv, double, 2*count );
-
iBase_ErrorType result = iBase_SUCCESS;
RefEntity** ent = (RefEntity**)gentity_handles;
for (int i = 0; i < count; ++i) {
More information about the cgma-dev
mailing list