[ODE] compiling problems with trimesh

Nguyen Binh ngbinh at glassegg.com
Tue Oct 28 20:56:16 MST 2003


FDw> I can't compile the included trimesh example, I get following error:

     It's maybe one of my bug.

     Try to get the address of your double[5][4];

     Ex: if you have
     
         dReal Vertices[5][4];

         then try to pass to dGeomTriMeshDataBuildSimple(geomID,
         &Vertices[0][0],....)

         That should works!

    FYI. I'm working on a performance pack of ODE. The result is very
    impressive: I can make ODE run about 30% faster. :)


FDw> error C2664: 'dGeomTriMeshDataBuildSimple' : cannot convert parameter 2 from
FDw> 'double [5][4]' to 'const double *'
FDw>         Types pointed to are unrelated; conversion requires
FDw> reinterpret_cast, C-style cast or function-style cast

FDw> windows 2000 - msvc 6.0

FDw> I have build with the code from www.coderfarm.com

FDw> what I am doing wrong ?

FDw> thanks,

FDw> fretn


-- 
Best regards,

---------------------------------------------------------------------
   Nguyen Binh
   Software Engineer
   Glass Egg Digital Media
   
   E.Town Building  
   7th Floor, 364 CongHoa Street
   Tan Binh District,
   HoChiMinh City,
   VietNam,

   Phone : +84 8 8109018
   Fax   : +84 8 8109013

     www.glassegg.com
---------------------------------------------------------------------



More information about the ODE mailing list