从一个曲面提取 ISO 等参曲线。
rhinoscriptsyntax.ExtractIsoCurve (surface_id, parameter, direction)
rhinoscript.surface.ExtractIsoCurve (surface_id, parameter, direction)
surface_id |
必须参数。字符串或 Guid。物件的 ID 。 |
parameter |
必须参数。元组。要计算的曲面UV参数组成的列表。 |
direction |
必须参数。数字。方向,0 = U方向, 1 = V方向, 2 = 两个方向。 |
列表 |
返回由新生成曲线物件 Guid 构成的列表。 |
None |
如果执行不成功或出错,返回空值。 |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select surface for isocurve extraction", rs.filter.surface)
point = rs.GetPointOnSurface(obj, "Select location for extraction")
parameter = rs.SurfaceClosestPoint(obj, point)
rs.ExtractIsoCurve( obj, parameter, 2 )