CADability dotNET
Approximate this curve and return the approximation. maxError specifies the maximal allowed error, i.e. the maximal deviation of the returned curve from this curve. Is linesOnly ist true, only lines are returned, if linesOnly is false, lines and circular arcs are returned. The result is usually a path consiting of lines and arcs or lines only.

Namespace: CADability.Curve2D
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
ICurve2D Approximate(
	bool linesOnly,
	double maxError
)
Visual Basic
Function Approximate ( _
	linesOnly As Boolean, _
	maxError As Double _
) As ICurve2D
Visual C++
ICurve2D^ Approximate(
	bool linesOnly, 
	double maxError
)

Parameters

linesOnly
Type: System..::..Boolean
maxError
Type: System..::..Double

Return Value

See Also