![]() |
【转帖】viewport Precision
viewport precision
viewport precision i'm creating a viewport like this code: oddbviewportptr vp = oddbviewport::createobject(); vp->setwidth ( 125 ); vp->setheight( 75 ); vp->setviewcenter ( odgepoint2d( 600873.98 , 6724552.48 ) );this works fine, except that the origin is truncated to (600873,6724552) in the resulting dxf drawing. is this a matter of double/float precision? it turns out that dwgdirect uses my danish locale causing decimal point to be komma instead of dot. is this a bug, or is this allowed in dxf - autocad 2006 does not accept it! which dwgdirect version do you use? for years dd does not use locale for conversions. sergey slezkin |
所有的时间均为北京时间。 现在的时间是 04:15 PM. |