样条曲线(spline)阶数的问题
www.dimcax.com
样条曲线(spline)阶数的问题
在用cad绘图命令中的样条曲线(spline)来连接试验数据点绘制曲线时,得到的曲线线形有误差!
看资料上讲,样条曲线的阶数是3阶的(对象属性列表中,群码71位置对应的是曲线阶数),尝试用以下语句来更改曲线阶数
(setq spline_date (entget(car(entsel "\n 选择样条曲线:"))))
(setq n (getint "\n 输入曲线阶数:"))
(setq old_list (assoc 71 spline_date))
(setq new_list (cons 71 n))
(setq spline_date (subst new_list old_list spline))
(entmod spline_date)
屏幕上的样条曲线仍然没有变化!本人是新手,是思路不对还是程序不对,还请坛上的高手们多多指导下,先谢谢了!
d