- UID
- 83430
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2003-9-30
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
大家帮忙看看,哪里错了,运行完就出错了
rc=acedSSGet(NULL,NULL,NULL, &fliter, ssname);
.....
.....
if(rc==RTNONE)
{
ads_point pt[3];
AcGePoint2d mid(Num1[0]/2+Num2[0]/2,Num1[1]/2+Num2[1]/2);
AcGePoint2d begin(Num1[0],Num1[1]);
double tanx=dist/(mid.distanceTo(begin));
double angle=atan(tanx);
double scale=sqrt(tanx*tanx+1);
begin=begin.scaleBy(scale,mid);
begin.rotateBy(angle,mid);pt[0][0]=begin[0];pt[0][1]=begin[1];
begin.rotateBy(PI-2*angle,mid);pt[1][0]=begin[0];pt[1][1]=begin[1];
begin.rotateBy(2*angle,mid);pt[2][0]=begin[0];pt[2][1]=begin[1];
begin.rotateBy(PI-2*angle,mid);pt[3][0]=begin[0];pt[3][1]=begin[1];
pointlist= acutBuildList(RTPOINT, pt[0], RTPOINT, pt[1], RTPOINT, pt[2], RTPOINT, pt[3], 0);
acedSSGet("CP", pointlist, NULL, &fliter, ssname);
} |
|