Click or drag to resize

BrepTrimListAdd Method (Int32)

Add a new trim that will be part of an inner, outer, or slit loop to the brep.

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.4
Syntax
public BrepTrim Add(
	int curve2dIndex
)

Parameters

curve2dIndex
Type: SystemInt32
index of 2d trimming curve

Return Value

Type: BrepTrim
New Trim
Remarks
You should set the trim's Tolerance, TrimType, and IsoStatus values. In general, you should try to use the Add( edge, bRev3d, loop, c2i ) version of NewTrim. If you want to add a singular trim, use AddSingularTrim. If you want to add a curve-on-surface trim, use AddCurveOnFace. If you want to add a point-on-surface trim, use AddPointOnFace.
See Also