VectorGraphicEngineProjectOnSurface Method |
Projects all layers and fillings on the provided surface.
Namespace: RAYLASE.Marker.VectorGraphicElementAssembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.22.0
Syntaxpublic void ProjectOnSurface(
IList<Facet> facets,
dmat4 transformation,
dmat4 surfaceTransformation,
double defaultZ,
double maxLength,
MarkingMode markingMode,
bool useTop = true,
int numberOfPoints = 500,
double collinearityDistance = 100
)
Parameters
- facets IListFacet
- Surface facets.
- transformation dmat4
- Job element transformation.
- surfaceTransformation dmat4
- Surface transformation.
- defaultZ Double
- Z height of XY positions not included in surface.
- maxLength Double
- Maximal distance between two polypoints. Line will be split, of distance is larger.
- markingMode MarkingMode
- As filling is converted to contour, initial filling or outline layers will be disabled according to marking mode.
- useTop Boolean (Optional)
- Uses top of the surface, otherwise bottom.
- numberOfPoints Int32 (Optional)
-
Number of points of the resulting polyline.
Remarks
This is important for example if you want to replace a cubic curve
by a polyline: In a first step the cubic curve is replaced by a
polyline (with this number of points), and in a second step
superfluous points are removed according to the collinearityDistance"/>.
- collinearityDistance Double (Optional)
-
A point is considered to be laying on the line defined by two other points if its perpendicular distance from the line is less than this value, measured in micrometers.
See for details.
ExceptionsException | Condition |
---|
ArgumentException | maxLength must be at least 1. |
See Also