|
2m
楼主 |
发表于 2011-9-21 00:42:28
|
只看该作者
本帖最后由 ememery 于 2011-9-21 17:30 编辑
另外我之前的那个帖子,http://ncf.5d6d.com/thread-7337-1-1.html代码现在贴在下面: (也可直接下载)
private void RunScript(object input1, object input2, ref object A, ref object B, ref object C) {
List pt_s = new List();
for(double u = 0;u < 1 + 0.005;u += 0.01){
for(double v = 0;v < 2 * Math.PI + 0.005 ;v += 0.1){
double x,y,z;
x = (1 - u) * (3 + Math.Cos(v)) * Math.Cos(4 * u * Math.PI);
y = (1 - u) * (3 + Math.Cos(v)) * Math.Sin(4 * u * Math.PI);
z = 3 * u + (1 - u) * Math.Sin(v);
Point3d pt = new Point3d(x, y, z);
pt_s.Add(pt);
}
}
NurbsSurface srf = NurbsSurface.CreateFromPoints(pt_s, 101, 63, 3, 3);
A = pt_s;
B = srf;
} |
-
-
aaa.gh
2.25 KB, 下载次数: 9, 下载积分: 照度 -1 lux
售价: 2 lux照度 [记录]
|