AddLoftSrf

Adds a surface created by lofting curves to the document.

Syntax

rhinoscriptsyntax.AddLoftSrf ( object_ids, start=None, end=None, loft_type=0, simplify_method=0, value=0, closed=False )

rhinoscript.surface.AddLoftSrf ( object_ids, start=None, end=None, loft_type=0, simplify_method=0, value=0, closed=False )

Parameters

object_ids

Required.  List.  An ordered list of strings or Guids identifying the curve objects to loft.

start

Optional.  The starting point of the loft.

end

Optional.  The ending point of the loft.

loft_type

Optional.  Number.  The type of loft. The default loft type is Normal (0). The possible loft types are as follows:

Value

Description

0

Normal. Uses chord-length parameterization in the loft direction.

1

Loose. The surface is allowed to move away from the original curves to make a smoother surface. The surface control points are created at the same locations as the control points of the loft input curves.

2

Straight. The sections between the curves are straight. This is also known as a ruled surface.

3

Tight. The surface sticks closely to the original curves. Uses square root of chord-length parameterization in the loft direction.

4

Developable. Creates a separate developable surface or polysurface from each pair of curves.

simplify_method

Optional. Number.  The simplify method of the loft. The default value is None (0). The possible loft simplify methods are as follows:

Value

Description

0

None. Does not simplify.

1

Rebuild. Rebuilds the shape curves before lofting.

2

Refit. Refits the shape curves to a specified tolerance.

value

Optional. Number. A value based on the specified intStyle. If intStyle=1 (Rebuild), then nValue is the number of control point used to rebuild. If intstyle=1 is specified and this argument is omitted, then curves will be rebuilt using 10 control points. If intStyle=2 (Refit), then nValue is the tolerance used to rebuild. If intstyle=2 is specified and this argument is omitted, then the document's absolute tolerance us used for refitting.

closed

Optional. Boolean.  Creates a closed surface, continuing the surface past the last curve around to the first curve. Available when you have selected three shape curves. The default value is not to create a closed surface (False).

Returns

List

A list containing the identifiers of the new surface objects if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

objs = rs.GetObjects("Pick curves to loft", rs.filter.curve)

if objs: rs.AddLoftSrf(objs)

Also See

CurveDirectionsMatch

CurveSeam

ReverseCurve