Closed CodeK1988 closed 1 year ago
Use OffsetCurve
to compute offset curves. OffsetCurveBuilder
is now intended to be only for internal use.
@dr-jts bro, OffsetCurve not support set direction? when i set distance value = -XXXX, i see the method inside used Math.abs, so how should i do? thanks!
OffsetCurve
uses the sign of the offset distance to indicate whether the offset is constructed on the left or the right side of the input.
OffsetCurve getCurve distance positive value 100 working, value 3000 not working, you can try it
You'll have to provide input data and perhaps a code snippet that demonstrates this.
i want left offset or right offset.with distance.
OffsetCurveBuilder ocb.getOffsetCurve(lineDrawable.getGeometry().getCoordinates(), 10000 / NEARNESS_FACTOR); 1000 work fine. ocb.getOffsetCurve(lineDrawable.getGeometry().getCoordinates(), -10000 / NEARNESS_FACTOR); -10000 not working. pls, thanks