UG NX二次开发源码分享: 获取曲线端点
UG NX二次开发源码分享: 获取曲线端点
static Point3d[] askCurveEnds(Curve theCurve)
{
double[] limits = new double;
IntPtr evaluator;
double[] start = new double;
double[] end = new double;
theUFSession.Eval.Initialize2(theCurve.Tag, out evaluator);
theUFSession.Eval.AskLimits(evaluator, limits);
theUFSession.Eval.Evaluate(evaluator, 0, limits, start, new double[] { });
theUFSession.Eval.Evaluate(evaluator, 0, limits, end, new double[] { });
theUFSession.Eval.Free(evaluator);
return new Point3d[]
{ new Point3d(start, start, start),
new Point3d(end, end, end) };
}
有没有办法根据曲线上的两点求截取的长度
页:
[1]