You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Src/AutoGeneratedCode/AllScriptingFilesCombinedIntoOne_DontEditThisFile.fs
+33-28Lines changed: 33 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -3271,42 +3271,47 @@ type RhinoScriptSyntax private () =
3271
3271
3272
3272
3273
3273
/// <summary>Adds a Polyline Curve.</summary>
3274
-
/// <param name="points">(Point3d seq) List of 3D points. The list must contain at least two points. If the
3275
-
/// list contains less than four points, then the first point and
3276
-
/// last point must be different.</param>
3277
-
/// <returns>(Guid) ObjectId of the new curve object.</returns>
3278
-
static member AddPolyline(points:Point3d seq) : Guid =
3274
+
/// <param name="points">(Point3d seq) List of 3D points. The list must contain at least two points. If the list contains less than four points, then the first point and last point must be different.</param>
3275
+
/// <param name="deleteShortSegments">(bool) Optional, default value: <c>true</c>. If true, segments shorter than the document's absolute tolerance will be deleted.</param>
3276
+
/// <param name="drawDotsAndRaiseIfFailed">(bool) Optional, default value: <c>false</c>. If true, text dots will be drawn on layer `ERROR-AddPolyline` at each point and an exception will be raised if the operation fails.</param>
3277
+
/// <returns>(Guid) ObjectId of the new curve object. Empty Guid if the operation fails.</returns>
eprintfn "See %d TextDots on layer 'ERROR-AddPolyline'" (Seq.length points)
3287
+
// eprintfn "See %d TextDots on layer 'ERROR-AddPolyline'" (Seq.length points)
3287
3288
RhinoScriptingException.Raise "AddPolyline: Unable to add polyline to document form points:%s'%A'" Environment.NewLine (Pretty.str points)
3288
3289
State.Doc.Views.Redraw()
3289
3290
rc
3290
3291
3291
-
/// <summary>Adds a closed Polyline Curve ,
3292
-
/// if the endpoint is already closer than State.Doc.ModelAbsoluteTolerance to the start it wil be set to start point
3293
-
/// else an additional point will be added with the same position as start.</summary>
3292
+
/// <summary>Adds a closed Polyline Curve.
3293
+
/// If the endpoint is already closer than State.Doc.ModelAbsoluteTolerance to the start it wil be set to start point
3294
+
/// else an additional point will be added with the same position as start.
3295
+
/// </summary>
3294
3296
/// <param name="points">(Point3d seq) List of 3D points. The list must contain at least three points.</param>
3295
-
/// <returns>(Guid) ObjectId of the new curve object.</returns>
3296
-
static member AddPolylineClosed(points:Point3d seq) : Guid =
3297
+
/// <param name="deleteShortSegments">(bool) Optional, default value: <c>true</c>. If true, segments shorter than the document's absolute tolerance will be deleted.</param>
3298
+
/// <param name="drawDotsAndRaiseIfFailed">(bool) Optional, default value: <c>false</c>. If true, text dots will be drawn on layer `ERROR-AddPolylineClosed` at each point and an exception will be raised if the operation fails.</param>
3299
+
/// <returns>(Guid) ObjectId of the new curve object. Empty Guid if the operation fails.</returns>
if pl.Count < 3 then RhinoScriptingException.Raise "AddPolylineClosed: Unable to add closed polyline to document from points:%s'%A'" Environment.NewLine (Pretty.str points)
3299
3303
if (pl.First-pl.Last).Length <= State.Doc.ModelAbsoluteTolerance then
/// <paramname="points">(Point3d seq) List of 3D points. The list must contain at least two points. If the list contains less than four points, then the first point and last point must be different.</param>
346
+
/// <paramname="deleteShortSegments">(bool) Optional, default value: <c>true</c>. If true, segments shorter than the document's absolute tolerance will be deleted.</param>
347
+
/// <paramname="drawDotsAndRaiseIfFailed">(bool) Optional, default value: <c>false</c>. If true, text dots will be drawn on layer `ERROR-AddPolyline` at each point and an exception will be raised if the operation fails.</param>
348
+
/// <returns>(Guid) ObjectId of the new curve object. Empty Guid if the operation fails.</returns>
/// <paramname="deleteShortSegments">(bool) Optional, default value: <c>true</c>. If true, segments shorter than the document's absolute tolerance will be deleted.</param>
369
+
/// <paramname="drawDotsAndRaiseIfFailed">(bool) Optional, default value: <c>false</c>. If true, text dots will be drawn on layer `ERROR-AddPolylineClosed` at each point and an exception will be raised if the operation fails.</param>
370
+
/// <returns>(Guid) ObjectId of the new curve object. Empty Guid if the operation fails.</returns>
if pl.Count <3then RhinoScriptingException.Raise "AddPolylineClosed: Unable to add closed polyline to document from points:%s'%A'" Environment.NewLine (Pretty.str points)
370
374
if(pl.First-pl.Last).Length <= State.Doc.ModelAbsoluteTolerance then
0 commit comments