CADability dotNET
Yields a set of borders that are parallel to this border with a given distance. Positive distance yields a border to the right side (or outside if closed) of this border, negative to the left side or inside. In some cases there is no soltuion (e.g. an inside parallel border of a closed border must have a distance less than half of the diameter of the border) In other cases there may be a set of solutions, e.g. if the border is not convex.

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

Syntax

C#
public Border[] GetParallel(
	double dist,
	bool approxSpline,
	double precision,
	double roundAngle
)
Visual Basic
Public Function GetParallel ( _
	dist As Double, _
	approxSpline As Boolean, _
	precision As Double, _
	roundAngle As Double _
) As Border()
Visual C++
public:
array<Border^>^ GetParallel(
	double dist, 
	bool approxSpline, 
	double precision, 
	double roundAngle
)

Parameters

dist
Type: System..::..Double
the distance of the desired parallel border
approxSpline
Type: System..::..Boolean
precision
Type: System..::..Double
roundAngle
Type: System..::..Double

Return Value

array of parallel borders (maybe empty)

See Also