高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|