摩登犀牛

标题: 以结构线分割曲面的rhinoscript代码是什么? [打印本页]

作者: gyhk02    时间: 2013-11-21 11:23
标题: 以结构线分割曲面的rhinoscript代码是什么?

各位大虾:
        请问以结构线分割曲面的rhinoscript代码是什么?




作者: modern    时间: 2013-11-21 12:13
Rhino.SplitSurface
作者: gyhk02    时间: 2013-11-21 14:05
modern:
        首先谢谢你教我这个指令。
        现在的问题是我不会用这个。
        我操作是:根据曲面中间的三个点把曲面分成四个曲面,如下图。        




rhino.SplitSurface(RhObject, Int32, Double, Boolean)
这里的第二,第三个参数分别是代表什么?还得请老大再帮帮我。我要实现上面的效果要如何写代码。谢谢了!

作者: gyhk02    时间: 2013-11-21 16:25
我已经找到这SplitSurface中第二,第三个参数的说明了。

第二个参数:  0 U方向   1 V方向
第三个参数:  相当于长度

不知道我理解得对不对。

但是我的需求还是不知道如何用它,因为我是通过中间的点来分割曲面的。
作者: modern    时间: 2013-11-21 19:02
Rhino.SplitSurface (strSurface, intDir, dblParameter [, blnDelete])

Parameters
strSurface
Required.  String.  The identifier of the surface object to split.
intDir
Required.  Number.  The direction to split. If 0 (U), then the surface is split vertically. If 1 (V), then the surface is split horizontally.
dblParameter
Required.  Number.  The parameter, in the domain returned by SurfaceDomain(strSurface, intDir), to split at.
blnDelete
Optional.  Boolean.  Delete input surface.  If omitted, the input surface will not be deleted (False).

dblParameter  曲面切開的位置由 SurfaceDomain 曲面的域值來定義

按照你要的功能可以先將點拉回曲面 SurfaceClosestPoint 求出曲面位置回填 dblParameter 進行分割

作者: gyhk02    时间: 2013-11-22 08:06
太谢谢了

搞定了。






欢迎光临 摩登犀牛 (http://rhino3d.us/) Powered by Discuz! X3.2