Table of Contents

Method AddSegment

Namespace
Pinwheel.Griffin.SplineTool
Assembly
Pinwheel.Polaris.Runtime.dll

AddSegment(int, int)

Add a new segment connecting 2 anchors. If the anchors were already connected before, it will not add a new segment but return the old one.

public GSplineSegment AddSegment(int startIndex, int endIndex)

Parameters

startIndex int

Index of the start anchor in Anchors collection.

endIndex int

Index of the end anchor in Anchors collection.

Returns

GSplineSegment

The segment connecting 2 anchors.