Class TLspShapeDiscretizationParameters

java.lang.Object
com.luciad.view.lightspeed.geometry.discretization.TLspShapeDiscretizationParameters

public class TLspShapeDiscretizationParameters extends Object
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
  • Constructor Details

    • TLspShapeDiscretizationParameters

      protected TLspShapeDiscretizationParameters(TLspShapeDiscretizationParameters.Builder aBuilder)
      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

      public ILcdModelXYZWorldTransformation getModelXYZWorldTransformation()
      Returns the custom ILcdModelXYZWorldTransformation to be used by the shape discretizer.
      Returns:
      the custom ILcdModelXYZWorldTransformation to 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

      public Set<TLcd3DPrimitiveType> 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, only TRIANGLES and LINES, are allowed.

      If this method returns null, all primitive types are allowed.

      Returns:
      the set of allowed primitive types that can be generated by the shape discretizer
    • getStyles

      public List<ALspStyle> getStyles()
      Returns the styles associated with the shape being discretized. This may be null if 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