CADability dotNET
The Border type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Border(array<GeoPoint2D>[]()[][]) | ||
Border(ICurve2D) | ||
Border(array<ICurve2D>[]()[][]) |
Constructs a Border from a list of ICurve2D objects. The objects must be in the
correct order and must be continous, i.e. EndPoint of ICurve2D[i] must be
equal to Startpoint of ICurve2D[i+1]. Equality refers to Precision.IsEqual().
It will be checked automatically, whether the border is closed and if so,
it will be oriented counterclockwise.
| |
Border(Boolean%, array<ICurve2D>[]()[][]) | ||
Border(SerializationInfo, StreamingContext) |
Constructor required by deserialization
| |
Border(array<ICurve2D>[]()[][], Boolean) |
Create a border with the provided segments assumed to be in correct order and orientation. If forceConnected
is true, the border will be closed.
|
Methods
Name | Description | |
---|---|---|
AddToGraphicsPath | ||
AsPath |
Returns this Border as a Path2D object.
| |
ChangeCyclicalStart | ||
Clip | ||
Clone | ||
DirectionAt | ||
DistanceAtDirection |
Calculates the distance between this Border and the other Border respecting the given direction dir.
Or in other words: how far can you move this Border in the direction dir until it touches the other border.
The result may be double.MaxValue, which means they will never touch each other or negative, if you would have to move this
border in the opposite direction of dir.
| |
GetIntersectionPoints(Border) | ||
GetIntersectionPoints(ICurve2D) |
Returns a list of all intersectionpoints of this border with the given curve.
Some intersectionpoints may be found twice, if the Curve passes through a vertex
of this border. The par1 member of the intersectionpoint is the parameter
of this border (0.0<=par1<=this.Count) the par2 member is the parameter
of the curve (0.0<=par1<=1.0).
| |
GetMinDistance | ||
GetModified | ||
GetObjectData | ||
GetParallel |
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.
| |
GetParameter |
Liefert den Parameter des Punktes p auf den Bahnkurven des Borders. Für jede
Kurve durchläuft der Parameter Werte von 0.0 (Startpunkt) bis 1.0 (Endpunkt)
Das Ergebnis dieser Methode ist dieser Parameter + Index der betreffenden Kurve.
| |
GetPart | ||
GetPosition(BoundingRect) |
Returns the Border..::..Position of the given Point relative to this Border.
If the outline of the border interferes with a square around p (width and height
is 2*precision), the result will be OnCurve.
| |
GetPosition(GeoPoint2D) |
Returns the Border..::..Position of the given Point relative to this Border.
| |
MakeCircle | ||
MakeRectangle | ||
PointAt | ||
Project | ||
Recalc | ||
RecalcArea | ||
Split |
Returns an array of Border objects by breaking this border at the given positions.
Parameter must be an ordered list of double values. Each value must be greater 0.0
and less the number of iCurve2D objects in this Border.
|
Operators
Name | Description | |
---|---|---|
Addition |
Concatenates two border objects. Both borders must be open (not closed) and
the endpoint of the first border must be equal to the startpoint of the second
border (as defined by Precision.IsEqual).
|
Properties
Explicit Interface Implementations
Name | Description | |
---|---|---|
IDeserializationCallback..::..OnDeserialization |