几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】hatchlines (http://www.dimcax.com/hust/showthread.php?t=16503)

yang686526 2009-05-05 12:01 PM

【转帖】hatchlines
 
hatchlines?
hatchlines?
hello,
got this hatch with a lot of hatchlines, the file hatch original.dwg consists of one hatch originaly a part in a big drawing that we have stripped down (also removed things in odamfcapp to get less things in it).
the hatch copied.dwg, is a new drawing with the same hatch copy/pasted from the original drawing.
now for the first drawing hatch original.dwg the numhatchlines() reports
10382 lines and for hatch copied.dwg 4617 lines.
how can this differ so much? looking in odamfcapp on the hatches in the different files it doesn't appear to be this big a difference.
the real problem is those extra lines seems not to be within the loops of the hatch, looks correct when rendering this in odamfcapp. but in our application we do get more lines than we expect in the wrong places.
thanks
// joakim
attached files
extra lines are caused by dd bug in hatching algorithm. it seems to be a tolerance issue depending on coordinates values.
sergey slezkin


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