public class PathOffsetApproximationProperties extends Object
ClipperOffset operations.| Constructor and Description |
|---|
PathOffsetApproximationProperties()
Creates new
PathOffsetApproximationProperties instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
calculateOffsetMultiplierDynamically()
Checks whether floatMultiplier should be calculated dynamically.
|
PathOffsetApproximationProperties |
calculateOffsetMultiplierDynamically(boolean calculateDynamically)
Specifies if floatMultiplier should be calculated dynamically.
|
double |
getArcTolerance()
Gets arc tolerance which is the maximum difference between the true and the faceted representation of curves
(arcs) in units.
|
PathOffsetApproximationProperties |
setArcTolerance(double arcTolerance)
Sets arc tolerance which is the maximum difference between the true and the faceted representation of curves
(arcs) in units.
|
public PathOffsetApproximationProperties()
PathOffsetApproximationProperties instance.public PathOffsetApproximationProperties calculateOffsetMultiplierDynamically(boolean calculateDynamically)
false.
When a document with line arts is being cleaned up, there are a lot of calculations with floating point numbers. All of them are translated into fixed point numbers by multiplying by this floatMultiplier coefficient. It is possible to dynamically adjust the preciseness of the calculations.
calculateDynamically - true if floatMultiplier should be calculated dynamically,
false for default value specified by ClipperBridge.ClipperBridge()PathOffsetApproximationProperties instancepublic boolean calculateOffsetMultiplierDynamically()
When a document with line arts is being cleaned up, there are a lot of calculations with floating point numbers. All of them are translated into fixed point numbers by multiplying by this floatMultiplier coefficient. It is possible to dynamically adjust the preciseness of the calculations.
true if floatMultiplier should be calculated dynamically, false for default valuepublic double getArcTolerance()
Since flattened paths can never perfectly represent arcs, this field/property specifies a maximum acceptable imprecision (tolerance) when arcs are approximated in an offsetting operation. Smaller values will increase smoothness up to a point though at a cost of performance and in creating more vertices to construct the arc.
public PathOffsetApproximationProperties setArcTolerance(double arcTolerance)
Since flattened paths can never perfectly represent arcs, this field/property specifies a maximum acceptable imprecision (tolerance) when arcs are approximated in an offsetting operation. Smaller values will increase smoothness up to a point though at a cost of performance and in creating more vertices to construct the arc.
arcTolerance - maximum difference between the true and the faceted representation of arcsPathOffsetApproximationProperties instanceCopyright © 1998–2025 Apryse Group NV. All rights reserved.