Namespace CADability.Shapes
Classes
- Border
A simple border composed of one ore more ICurve2D objects. A Border is always invariant, i.e. you annot change it (like System.String). If a border is closed, then it is oriented counterclockwise. A border may be produced by the BorderBuilder object (or by its constructors).
- BorderBuilder
Klasse zum Erzeugen von Border Objekten.
- BorderBuilderException
Exception thrown by BorderBuilder, e.g. by BuildBorder(bool) when no segment has been added. ExceptionType tells the reason.
- BorderException
Exception thrown by Border and the 2d shape operations when a border cannot be used as requested: the area of an open border is asked for, a point that should lie on the border does not, or two borders to concatenate are not connected. ExceptionType tells which of these cases occurred.
- CompoundShape
A 2d shape composed by multiple SimpleShape objects. All simple shapes are disjoint.
- CompoundShape.Signature
A compact description of a SimpleShape that is invariant under rotation and translation, used to find congruent shapes quickly: the shape is rotated so that its longest outline segment is horizontal and cut with a few horizontal and vertical lines; the parameter intervals inside the shape on these lines, the rotation angle and the total length of the borders are stored. Created by CalculateSignature(), compared with isEqual(Signature, out bool, double) and verified with isCongruent(SimpleShape, Signature, out ModOp2D, double).
- SimpleShape
A simply connected 2d shape. It consists of a Border outline and 0 or more holes. The holes don't overlap (disjunct) and reside totally inside the outline.
Structs
- SmallestEnclosingRect
Contains information about the smallest enclosing rect
Enums
- Border.Position
Position of a point or boundingrectangle relative to a border. Inside: the point or rectangle is completely inside the border, Outside: the point or rectangle is completely outside the border, OnCurve: the point or rectangle is on the outline of the border.
- BorderBuilderException.BorderBuilderExceptionType
Classifies the reason for a BorderBuilderException.
- BorderException.BorderExceptionType
Classifies the reason for a BorderException.
- SimpleShape.Position
Relative position of two shapes