Adds a surface created through profile curves that define the surface shape and one curve that defines a surface edge. For more details on this method, see the Rhino help file for the Sweep1 command.
rhinoscriptsyntax.AddSweep1 (rail, shapes, closed=False)
rhinoscript.surface.AddSweep1 (rail, shapes, closed=False)
rail |
Required. Guid or String. The identifier of the rail curve. |
shapes |
Required. List. A list of Guids or strings identifying one or more shape, or cross section, curves. |
closed |
Optional. Boolean. If True, then create a closed surface, continuing the surface past the last curve around to the first curve. This option is only available after you select two cross-section curves. The default value is False. |
List |
The identifiers of the new surface objects if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
rail = rs.GetObject("Select rail curve", rs.filter.curve)
if rail:
shapes = rs.GetObjects("Select cross-section curves", rs.filter.curve)
if shapes: rs.AddSweep1( rail, shapes )