DK for Java | tatukgis.jdk.TGIS_Shape.Reverse | Overloads | Constructors | Fields | Methods | Properties
Reverses the order of parts and points in the shape and returns the resulting shape.
// Java public TGIS_Shape Reverse();
// Oxygene public function Reverse : TGIS_Shape;
| Type | Description |
|---|---|
| TGIS_Shape | A newly created shape with reversed part and point order, or nil for TGIS_ShapePoint. |
PURPOSE: Reorders geometry for editing, normalization, and geometry transformation workflows.
BEHAVIOR: Calls Reverse(True), creating a new shape whose parts are processed in reverse order and whose points within each part are also reversed.
USAGE: Create a reversed copy of a line or polygon.
reversed_shape = shape.Reverse() if reversed_shape then process_geometry(reversed_shape)
CONSTRAINTS: Returns nil for TGIS_ShapePoint.