高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】lwpolyline bulge calculation
lwpolyline bulge calculation
lwpolyline bulge calculation
in odx there was get_odcomputebulge for the computation of bulge from start , end and center point.
how can i do the same in directx ( delphi user).
can i have some help ?
furio
hi,
i don't know whether this should help you, but here is a function in c++ which calculates the center point from given start, end and bulge. even if it don't help you smo else may need something. as to your situation. the dwgdirect guys should help here...
[code] odgepoint2d getbulgedcenterpoint(
const odgepoint2d& ptstart,
const odgepoint2d& ptend,
const double dbulge)
{
const double d1 = (dbulge-1.0/dbulge)*0.5;
return odgepoint2d (
(ptstart.x+ptend.x+d1*(ptend.y-ptstart.y))*0.5,
(ptstart.y+ptend.y-d1*(ptend.x-ptstart.x))*0.5
);
} </pre><hr></blockquote>
regards
chudomir
best regards
chudomir
i need to draw in the polyline some arc and i know the start point , end point and radius.
so i need a routine like odcomputebulge for the computation of bulge .
i try to do but the problem is too complex for me.
has somebody already solved this problem ?
can i have some help ?
furio
bulge = tan(arcsweepangle / 4.);
sergey slezkin
|