public static class TLspShapeDiscretizationParameters.Builder extends Object
TLspShapeDiscretizationParameters
.Constructor and Description |
---|
Builder()
Creates a new Builder to initialize a new
TLspShapeDiscretizationParameters instance. |
public Builder()
TLspShapeDiscretizationParameters
instance.
By default the builder creates a TLspShapeDiscretizationParameters
instance with
no styles or maximal edge length constraints and
TLspShapeDiscretizationParameters.getModes()
containing both TLspShapeDiscretizationMode.INTERIOR
and TLspShapeDiscretizationMode.OUTLINE
.
public TLspShapeDiscretizationParameters.Builder modes(Collection<TLspShapeDiscretizationMode> aModes)
TLspShapeDiscretizationParameters
to build.aModes
- the given modesthis
public TLspShapeDiscretizationParameters.Builder modes(TLspShapeDiscretizationMode... aModes)
TLspShapeDiscretizationParameters
to build.aModes
- the given modesthis
public TLspShapeDiscretizationParameters.Builder maximalEdgeLength(double aMaxEdgeLength)
TLspShapeDiscretizationParameters
to build.aMaxEdgeLength
- the given maximum edge length for outlinesthis
public TLspShapeDiscretizationParameters.Builder maximalFillEdgeLength(double aMaxEdgeLength)
TLspShapeDiscretizationParameters
to build.aMaxEdgeLength
- the given maximum edge length for fillsthis
public TLspShapeDiscretizationParameters.Builder styles(List<ALspStyle> aStylesList)
TLspShapeDiscretizationParameters
to build.aStylesList
- the given stylesthis
public TLspShapeDiscretizationParameters.Builder bufferCapsPrecision(int aBufferCapsPrecision)
ILcdGeoBuffer
s to use.
The precision represents the amount of edges per quarter-circle used for discretization of caps and joins.
Default value is 8. Recommended values are in the range of 1 to 12.aBufferCapsPrecision
- The precision to use.this
public TLspShapeDiscretizationParameters.Builder allowPrimitiveType(TLcd3DPrimitiveType aPrimitiveType)
aPrimitiveType
- a primitive type that can be used to generate
the resulting mesh.this
public TLspShapeDiscretizationParameters.Builder all(TLspShapeDiscretizationParameters aParams)
TLspShapeDiscretizationParameters
instance.aParams
- the provided TLspShapeDiscretizationParameters
instance.this
public TLspShapeDiscretizationParameters.Builder modelXYZWorldTransformation(ILcdModelXYZWorldTransformation aTransformation)
ILcdModelXYZWorldTransformation
to be used by the shape
discretizer. By default this transformation is set to null
. In this case
the shape discretizer uses the ILcdModelXYZWorldTransformation
instance
provided by the given TLspContext
.aTransformation
- the custom ILcdModelXYZWorldTransformation
to be used
by the shape discretizer.this
public TLspShapeDiscretizationParameters build()
TLspShapeDiscretizationParameters
instance with settings
derived from this builder.TLspShapeDiscretizationParameters
instance