Interface ILspShapeDiscretizer
- All Known Implementing Classes:
TLspShapeDiscretizer
public interface ILspShapeDiscretizer
Interface for a class that can discretize geometric shapes into a format
that is easier to use for painters. The result of a discretization is an
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.- Since:
- 2012.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
discretizeSFCT
(Object aDomainObject, TLspShapeDiscretizationParameters aParameters, TLspContext aContext, ALspEditable3DMesh a3DMeshSFCT) Discretizes the given domain object, typically anILcdShape
.
-
Method Details
-
discretizeSFCT
void discretizeSFCT(Object aDomainObject, TLspShapeDiscretizationParameters aParameters, TLspContext aContext, ALspEditable3DMesh a3DMeshSFCT) throws TLspDiscretizationException Discretizes the given domain object, typically anILcdShape
. The result of the discretization is output to anALspEditable3DMesh
. The result of this method is dependent on the contents ofaParameters
, which determines e.g. which parts of the shape (outline, interior) need to be discretized. Implementations ofILspShapeDiscretizer
should ignore values ofTLspShapeDiscretizationParameters.getMaximalEdgeLength()
} smaller than or equal to 0.- Parameters:
aDomainObject
- the object to be discretizedaParameters
- provides parameters for the discretizationaContext
- context information regarding the objecta3DMeshSFCT
- receives the results of the discretization- Throws:
TLspDiscretizationException
- Instances ofILspShapeDiscretizer
should throw this exception when they cannot discretize the specified combination of domain object and discretization parameters.
-