几何尺寸与公差论坛

 找回密码
 注册
查看: 1752|回复: 0

// TK#104923 - yanhua - 11-November-2008

[复制链接]
发表于 2008-11-13 00:09:28 | 显示全部楼层 |阅读模式
// TK#104923 - yanhua - 11-November-2008
int CDSFitEllipse3D::get_distances
double _DSFITEXPORT CDSFitEllipse3D::get_error(int npts, int /*ndim*/, double **pdActls, CDSFitVals &Vals,
int CDSFitEllipse3D::get_distances(int n, double **pdActls, double **pdNoms, double *t_in,
                                   double *t_out, double *dists, bool /*get_point*/, bool /*signed_dists*/)
t_theta = ellipse_arc_inverse(t_theta, s_start + p * (s_end - s_start), M, N);
http://www.dimcax.com/resource/math/image/o_polygon.gif

      CTransform Transform;

      Transform.SetAxis(GetAngleVec(),MAJORAXIS);
      Transform.SetAxis(cross(GetAngleVec(),GetSurfaceNormal()),MINORAXIS);
      Transform.SetAxis(GetSurfaceNormal(),ALIGNAXIS);
      Transform.SetOffset(m_Centre);

      CPoint3 NewPoint;
      Transform.aaforw(ROTANDTRANS,Point,NewPoint);


      double xc=0, yc=0;
      double ret = CDSFitEllipse2D::closest_point_on_ellipse(m_radius1, m_radius2, 0, 0,
GetCurvePerUnitDeviation
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 01:04 , Processed in 0.034514 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表