GeometryBuffer: add removeLastPoint (#702)
This commit is contained in:
@@ -468,6 +468,16 @@ public class GeometryBuffer {
|
||||
return GeometryUtils.isClockwise(points, index[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the last point.
|
||||
*/
|
||||
public void removeLastPoint() {
|
||||
if (!isTris()) {
|
||||
pointNextPos -= 2;
|
||||
index[indexCurrentPos] -= 2;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the order of points for lines and polygons.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user