怪石斋主人 发表于 2006-11-16 16:55:00

[求助]样条曲线的节点坐标怎样求出?

<P>一样条曲线怎样把各节点的坐标赋出,如多段线用如下一样</P>
<P>retCoord = returnobj.Coordinates<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Number = LBound(retCoord) To UBound(retCoord) + 2 - 2 Step 2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pt1(k) = retCoord(Number)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pt1(k + 1) = retCoord(Number + 1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pt1(k + 2) = gc<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; k = k + 3<BR>Next</P>

zhang007 发表于 2006-11-16 17:08:00

<P>样条曲线和多段线有点不一样,只能使用控制点坐标或拟合点坐标</P>
<P>以下是控制点,拟合点不一定有,先要判断是否有</P>
<P>For index = 0 To lin.NumberOfControlPoints - 1</P>
<P>&nbsp;lin.GetControlPoint(index)</P>
<P>next</P>
<P>或者用ControlPoints属性</P>
页: [1]
查看完整版本: [求助]样条曲线的节点坐标怎样求出?