Rebuilds a surface to given degree and control point count. For more information, see the Rhino help file for the Rebuild command.
rhinoscriptsyntax.RebuildSurface ( object_id, degree=(3,3), pointcount=(10,10))
rhinoscript.surface.RebuildSurface ( object_id, degree=(3,3), pointcount=(10,10))
object_id |
Required. String or Guid. The object's identifier. |
degree |
Optional. List or tuple of two numbers that identify the surface degree in both the U and the V directions. Each degree value must be greater than 1. The default is 3 in each direction. |
pointcount |
Optional. List or tuple of two numbers that identify the surface point count in both the U and the V directions. The point count must be greater than the degree. The default value is 10 in each direction. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
surface = rs.GetObject("Select surface to rebuild", rs.filter.surface)
if surface: rs.RebuildSurface( surface )