CADability dotNET
The SimpleShape type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | SimpleShape(Border) |
Constructs a simple shape by specifying the outline |
![]() | SimpleShape(SerializationInfo, StreamingContext) |
Constructor required by deserialization
|
![]() | SimpleShape(Border, array<Border>[]()[][]) |
Constructs a simple shape by specifying the outline and any number of holes.
|
Methods
Name | Description | |
---|---|---|
![]() | Clip |
Clips the provided curve by this shape. Either the inner parts or the parts outside of this shape are returned.
|
![]() | Clone |
Returns a clone (deep copy) of this simple shape
|
![]() | Contains |
Tests whether the provided point is contained in this simple shape.
|
![]() | Expand |
Expands this simple shape by the given amount. note that the result is a CompoundShape
which is composed of multiple simple shapes.
|
![]() | GetExtent |
Returns the extent of this shape, i.e. the size of the horizontally adjusted rectangle that encloses it.
|
![]() | GetModified |
Returns a modified shape of this shape. This shape remains unchanged.
|
![]() | GetObjectData | |
![]() ![]() | GetPosition(CompoundShape, CompoundShape) |
Checks the relative position of two shapes to each other. The order of the parameters is important for the result.
|
![]() ![]() | GetPosition(SimpleShape, SimpleShape) |
Checks the relative position of two shapes to each other. The order of the parameters is important for the result.
|
![]() | HitTest |
Checks whether this shape and the provided rectangle overlap
|
![]() | Hole |
Gets the hole with the specified index. The original border is returned. Do not modify this or the simple shape might become invalid.
If you need to modify it, make a clone first.
|
![]() ![]() | Intersect |
Returns the intersection (common parts, overlapping area) of two simple shapes.
|
![]() | MakePaths |
Converts the outline and the holes of this shape into Path objects.
|
![]() | Project |
The 2d-simple shape is assumed to reside in plane "fromPlane". It will be projected
perpendicular onto the plane "toPlane". If the planes are perpendicular, the result
will be am empty shape.
|
![]() | Shrink |
Shrinks this simple shape by the given amount. note that the result is a CompoundShape
which is composed of multiple simple shapes.
|
![]() | Split |
Returns a CompoundShape consisting of several SimpleShapes that touch each other.
This SimpleShape is cut along the open Border ToSplitWith into
several subshapes.
|
![]() ![]() | Subtract |
Returns the subtraction of Part1 minus Part2, i.e. all parts that belont to Part1
but not to Part2.
|
![]() ![]() | Unite |
Returns the union of two simple shapes.
|
Properties
Name | Description | |
---|---|---|
![]() | Area |
Returns the area of this simple shape.
|
![]() | Empty |
Returns true, if the Area of this shape is 0.0
|
![]() | Holes |
Returns all holes of this simple shape in an array. You may modify the array since it is a clone of the holes array in this object.
But you may not modify the individual holes.
|
![]() | NumHoles |
Gets the number of holes in this simple shape.
|
![]() | Outline |
Gets the outline of this simple shape. Do not modify the border because this shape might become invalid.
To obtain a good performance the outline of this simple shape is returned, not a clone.
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | IComparable<(Of <<'(SimpleShape>)>>)..::..CompareTo | |
![]() ![]() | IQuadTreeInsertable..::..GetExtent | |
![]() ![]() | IQuadTreeInsertable..::..HitTest | |
![]() ![]() | IQuadTreeInsertable..::..ReferencedObject |