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

yang686526 2009-05-07 06:16 PM

【转帖】vectorisation Problem With Direc
 
vectorisation problem with directx
vectorisation problem with directx
hi, i'm working on a cad application using oda.
i'm trying to improve vectorisation.
i prefer directx engine for many reasons.
but...
i finded a case where directx (and opengl) seems to be lost.
i think it's a problem of coord. transformation between oda and directx...
look at these 2 examples.
the only difference between the 2 files is the ellipse inserting point coord.
please answer me (and probably excuse my english).
attached files

you are right - the problem is in coordinates transformation.
both opengl and directx devices stores world cache in float coordinates (interface of directx can't accept doubles, our opengl device implemented using doubles, but it works internally through floats). ellip arc have too much y-coord value, camera have similar value. so transforming from world to eye space leads to precision lost.
we'll think what we can do with such problems. btw, opengl device with caching turned off renders both samples successfully.
sincerely yours,
george udov


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