M_Rhino_Geometry_Polyline_DeleteShortSegments - mcneel/rhinocommon-api-docs GitHub Wiki

Polyline.DeleteShortSegments Method

Removes all points that are closer than tolerance to the previous point. Start and end points are left intact.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public int DeleteShortSegments(
	double tolerance
)

VB

Public Function DeleteShortSegments ( 
	tolerance As Double
) As Integer

Parameters

 

tolerance
Type: System.Double
Vertices closer together than tolerance will be removed.

Return Value

Type: Int32
Number of points (and segments) removed.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Polyline Class
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️