几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】another issue with 3d polylines (http://www.dimcax.com/hust/showthread.php?t=15103)

yang686526 2009-05-04 04:01 PM

【转帖】another issue with 3d polylines
 
another issue with 3d polylines
another issue with 3d polylines
maybe it's related to 'jaydutt's problem that he posted today, but i have a dwg file that causes 14.0.1's odreadex() sample app to throw an exception when 'dumping' a particular 3d polyline. if i comment out the call to dumpcurvedata() in oddb3dpolyline_dumper::dump() all is well. i went a step further and let it call dumpcurvedata() but inside that function i commented out the call to pentity->getarea(area) and, again, everything was fine.
something about getting the area of a 3dpolyline...
it's the 3rd or 4th 3dpolyline in the file - the 1st couple 'dump' ok, but this one [47ac] doesn't. so let's look closer at it...
it looks like it has 4 vertices and the 1st 2 are duplicated and so are the last 2. no wonder it can't calculate the area (but it shouldn't throw an exception)!
i'm trying to upload the .dwg file (as a .zip), but i get a 'cannot find server' error. but i think the description above should let you find what to fix. a polyline with only 2 distinct points has no area!
you are right, there is a bug in our code in this case (linear polyline with first vertices coincident). it is fixed, fix will be available in 1.14.02.
thanks for your report.
vladimir
vladimir,
thanks. i can easily work around the problem until then.
pete


所有的时间均为北京时间。 现在的时间是 09:21 AM.