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