public class TLspShapeDiscretizer extends Object implements ILspShapeDiscretizer
ILspShapeDiscretizer
. This implementation
supports the following shapes:
ILcdArc
ILcdArcBand
ILcdCircle
ILcdEllipse
ILcdPolyline
ILcdPolygon
ILcdComplexPolygon
ILcdGeoBuffer
ILcdCurve
ILcdRing
ILcdSurface
ILcdText
ILcdBounds
ILcdExtrudedShape
if the base shape is
any of the aboveTLcdLonLatBuffer
TLcdLonLatHeightBuffer
TLcdLonLatHeightDome
TLcdLonLatHeightSphere
ILcdVariableGeoBuffer
ILcd3DArcBand
ILcdShapeList
ILcdText
objects, a default font is used.Constructor and Description |
---|
TLspShapeDiscretizer()
Creates a new
TLspShapeDiscretizer instance. |
Modifier and Type | Method and Description |
---|---|
void |
discretizeSFCT(Object aDomainObject,
TLspShapeDiscretizationParameters aParameters,
TLspContext aContext,
ALspEditable3DMesh a3DMeshSFCT)
Discretizes the given domain object, typically an
ILcdShape . |
public TLspShapeDiscretizer()
TLspShapeDiscretizer
instance.public void discretizeSFCT(Object aDomainObject, TLspShapeDiscretizationParameters aParameters, TLspContext aContext, ALspEditable3DMesh a3DMeshSFCT) throws TLspDiscretizationException
ILspShapeDiscretizer
ILcdShape
.
The result of the discretization is output to an
ALspEditable3DMesh
.
The result of this method is dependent on the contents of aParameters
, which
determines e.g. which parts of the shape (outline, interior) need to be discretized.
Implementations of ILspShapeDiscretizer
should ignore values of
TLspShapeDiscretizationParameters.getMaximalEdgeLength()
}
smaller than or equal to 0.discretizeSFCT
in interface ILspShapeDiscretizer
aDomainObject
- the object to be discretizedaParameters
- provides parameters for the discretizationaContext
- context information regarding the objecta3DMeshSFCT
- receives the results of the discretizationTLspDiscretizationException
- Instances of ILspShapeDiscretizer
should throw this
exception when they cannot discretize the specified
combination of domain object and discretization parameters.