Shrinks the underlying untrimmed surfaces near to trimming boundaries. For more details, see the ShrinkTrimmedSrf command in the Rhino help file.
rhinoscriptsyntax.ShrinkTrimmedSurface (object_id, create_copy=False)
rhinoscript.surface.ShrinkTrimmedSurface (object_id, create_copy=False)
object_id |
Required. String or Guid. The identifier of the surface or polysurface to shrink. |
create_copy |
Optional. Boolean. If True, the original surface is not deleted. |
Boolean |
If create_copy is False, True or False indicating success or failure. |
Guid |
If create_copy is True, identifier of the new surface on success. |
None |
On error. |
import rhinoscriptsyntax as rs
filter = rs.filter.surface | rs.filter.polysurface
surface = rs.GetObject("Select surface or polysurface to shrink", filter )
if surface: rs.ShrinkTrimmedSurface( surface )