Table of Contents

Method SetWeightAt

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetWeightAt(int, double)

Sets the weight of a control point, as AutoCAD's SetWeightAt: a spline that was not rational is made so, every other point weighing 1.

public void SetWeightAt(int index, double weight)

Parameters

index int

The index of the point, from nought.

weight double

The weight, above nought.

Exceptions

ArgumentOutOfRangeException

Thrown when there is no point of the index, or the weight is not above nought.

InvalidOperationException

Thrown when the spline is erased.