![]() |
【转帖】problem reading polylines on mac os
problem reading polylines on mac osx
problem reading polylines on mac osx this is my first time posting to this forum. so, forgive me if i don't get something quite right. i'm having problems reading a dwg file on mac osx using the mach-o libraries. several polyline vertex values (either the x or y component) are comming in as 0.0. here's a code snipett illustrating how i'm getting the vertex values: oddbpolylineptr ppolyline; odgepoint2d pnt; long num_verts; long j; num_verts = ppolyline->numverts(); for(j = 0; j < num_verts; j++) { ppolyline->getpointat(j, pnt); } when this same file is loaded on a windows platform, using the same code, i get correct vertex values. this is only a problem on mac osx. i'm using dwgdirect v1.12 the attached zip file includes the dwg file and 2 images. the images are screen shots of the file imported into our application on windows and mac. the mac image has the problem areas circled in red. sorry about the size of the dwg file. i tried to extract the problem objects in autocad. but, when i did, i couldn't recreate the problem using the smaller file. any ideas on what might be happening here? am i doing something wrong? thanks, tim i'm getting identical output from our odreadex example program on both windows and mac, using dd 1.12.04. are you using 1.12.04? can you duplicate this problem in our odreadex sample? looks like i was not running with the .04. i just downloaded it, rebuilt and the problem is fixed. thanks much. looks like you guys are way ahead of me. |
所有的时间均为北京时间。 现在的时间是 02:15 PM. |