DK for Java | tatukgis.jdk.TGIS_Shape.Reset | Constructors | Fields | Methods | Properties
Clear all geometry (vertices and parts). Reinitializes shape as empty with default type.
// Java public void Reset();
// Oxygene public procedure Reset; virtual;
PURPOSE:Clear geometry for reinitialization. Removes all vertices/parts in preparation for new geometry. Called before building new shape geometry.
BEHAVIOR:Deallocates all coordinate storage (Points, PointsZ, PointsM, Parts, PartTypes). Sets shape to empty state. Shape type retained.
USAGE:Reinitialize:shape.Reset; shape.Lock(Extent); shape.AddPart; shape.AddPoint(pt1); ...; shape.Unlock;
CONSTRAINTS:Virtual method (subclass may validate). Shape becomes empty (IsEmpty = true). Virtual method.