/[libvob]/libvob/src/jni/Transform.cxx
ViewVC logotype

Diff of /libvob/src/jni/Transform.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by tjl, Wed Apr 23 13:21:20 2003 UTC revision 1.5 by tjl, Wed Apr 23 13:35:25 2003 UTC
# Line 52  jf( jboolean , transform) Line 52  jf( jboolean , transform)
52                           (float)0, (bool)true);                           (float)0, (bool)true);
53    
54        DBG(dbg_trans) << "SetPoints -- now: "<<coordsys<<"\n";        DBG(dbg_trans) << "SetPoints -- now: "<<coordsys<<"\n";
55          if(coordsys < 0 || coordsys > coordset.size()) {
56            jclass Exception = env->FindClass("java/lang/Exception");
57            env->ThrowNew(Exception,"Invalid coordsys ind!");
58            return false;
59          }
60    
61       int arrayLength = env->GetArrayLength(j_points);       int arrayLength = env->GetArrayLength(j_points);
62       jfloat *points = env->GetFloatArrayElements(j_points, 0);       jfloat *points = env->GetFloatArrayElements(j_points, 0);
63       int nInto = env->GetArrayLength(j_into);       int nInto = env->GetArrayLength(j_into);
64       if(arrayLength != nInto) {       if(arrayLength % 3 || arrayLength != nInto) {
65          jclass Exception = env->FindClass("java/lang/Exception");          jclass Exception = env->FindClass("java/lang/Exception");
66          env->ThrowNew(Exception,"Invalid into array length");          env->ThrowNew(Exception,"Invalid into array length");
67            return false;
68       }       }
69       jfloat *into = env->GetFloatArrayElements(j_into, 0);       jfloat *into = env->GetFloatArrayElements(j_into, 0);
70    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26