public interface ILspShapeDiscretizer
ALspEditable3DMesh
object,
that describes the shape
using geometric primitives such as lines and triangles. Discretization is
performed by the discretize
method, and can be tweaked by the
parameters defined in TLspShapeDiscretizationParameters
. A
TLspDiscretizationException
is thrown when a given object cannot be
discretized with the specified parameters.TLspShapePainter.setShapeDiscretizer(ILspShapeDiscretizer)
Modifier and Type | Method and Description |
---|---|
void |
discretizeSFCT(Object aDomainObject,
TLspShapeDiscretizationParameters aParameters,
TLspContext aContext,
ALspEditable3DMesh a3DMeshSFCT)
Discretizes the given domain object, typically an
ILcdShape . |
void discretizeSFCT(Object aDomainObject, TLspShapeDiscretizationParameters aParameters, TLspContext aContext, ALspEditable3DMesh a3DMeshSFCT) throws TLspDiscretizationException
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.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.