Class TLspShapeDiscretizationParameters
java.lang.Object
com.luciad.view.lightspeed.geometry.discretization.TLspShapeDiscretizationParameters
Groups parameters that are used to tailor the discretization of a shape. A
builder
is provided to create instances of this class.- Since:
- 2012.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating instances ofTLspShapeDiscretizationParameters. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs new shape discretization parameters based on the given builder. -
Method Summary
Modifier and TypeMethodDescriptionGets the set of allowed primitive types in the resulting discretized mesh.intReturn the precision for geobuffers being discretized.doubleReturns the maximal edge length to be enforced during discretization for lines.doubleReturns the maximal edge length to be enforced during discretization for fill primitives (i.e., triangles, quads, etc.).Returns the customILcdModelXYZWorldTransformationto be used by the shape discretizer.getModes()Returns the discretization modes to use (interior, outline).Returns the styles associated with the shape being discretized.
-
Constructor Details
-
TLspShapeDiscretizationParameters
Constructs new shape discretization parameters based on the given builder.- Parameters:
aBuilder- the builder used to initialize the discretization parameters
-
-
Method Details
-
getModes
Returns the discretization modes to use (interior, outline).- Returns:
- the discretization modes to use
-
getModelXYZWorldTransformation
Returns the customILcdModelXYZWorldTransformationto be used by the shape discretizer.- Returns:
- the custom
ILcdModelXYZWorldTransformationto be used by the shape discretizer.
-
getMaximalEdgeLength
public double getMaximalEdgeLength()Returns the maximal edge length to be enforced during discretization for lines. All non-straight lines produced by the discretization will be subdivided to the point where they meet this criterion. This value should be ignored when smaller or equal to 0.- Returns:
- the maximal edge length for lines to be enforced during discretization, expressed in the unit of measurement of the world reference
-
getMaximalFillEdgeLength
public double getMaximalFillEdgeLength()Returns the maximal edge length to be enforced during discretization for fill primitives (i.e., triangles, quads, etc.). All fills produced by the discretization will be subdivided to the point where they meet this criterion. This value should be ignored when smaller or equal to 0.- Returns:
- the maximal edge length for fills to be enforced during discretization, expressed in the unit of measurement of the world reference
-
getAllowedPrimitives
Gets the set of allowed primitive types in the resulting discretized mesh. Primitives of other types will be converted, if possible, to one of the allowed primitive types. Typically, onlyTRIANGLESandLINES, are allowed. If this method returnsnull, all primitive types are allowed.- Returns:
- the set of allowed primitive types that can be generated by the shape discretizer
-
getStyles
Returns the styles associated with the shape being discretized. This may benullif the styles are not known at discretization time or if the painter deems style to be irrelevant to the discretization process.- Returns:
- the styles associated with the shape being discretized
-
getGeoBufferPrecision
public int getGeoBufferPrecision()Return the precision for geobuffers being discretized. This impacts the caps and joins. Default is 8- Returns:
- the precision for geobuffers being discretized
- Since:
- 2022.1
-