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

yang686526 2009-05-07 06:17 PM

【转帖】vectorising Curves That Use Dashed Linetype
 
vectorising curves that use dashed linetype
vectorising curves that use dashed linetype
we are using dd to implement an xref-like object, which displays a dwg. i've attached a screen shot, which shows two of these objects, both displaying a simple dwg. both dwg's are basically the same, only difference is that the other (shown above) uses acad_iso02w100 linetype, other uses continuous.
the one using dashed linetype is not properly vectorized. what could be the reason for this ?
jukka suomela
attached images
when curves are approximated by polyline deviation is used to determine number of polyline points required. in your case deviation seems to be too large.
do you set it the same for both cases?
can you reproduce the situation in one of our samples (odamfcapp for example)?
sergey slezkin
thanks sergey, i was able to find the bug. odamfcapp displayed the curves correctly.
we used to set the sreen size to odgsdevice as (0,0) - (1,1), with a call to onsize. when i changed this to the actual screen size, dashed curves displayed ok.
best regards,
jukka suomela


所有的时间均为北京时间。 现在的时间是 04:19 PM.