HowTo : GetSamplePoints: number of points produced
Article | 41023799 |
Type | HowTo |
Product | Engine |
Version | 5.0.1.1034 |
Date Added | 12/1/2004 |
Submitted by | Panagiotis Panagiotopoulos |
Keywords | |
Subject
GetSamplePoints: number of points produced
Summary
GetSamplePoints: number of points produced
Solution
About GetSamplePoints Function:
When the polyline is:
a)Quadratic
-Minimum number of points per segment=8
-Maximum number of all points=32767
--If PixelSize=0 then CurveResolution defines the number of the points per
segment
--Increasing CurveResolution and decreasing PixelSize causes more points to
be produced
--If pixelSize=0 and the polyline is Open then the number of the points to
be produced defined by: (NumberOfSides-1)*CurveResolution-(NumberOfSides-2)
If the polyline is Closed then the number is :
NumberOfSides*CurveResolution-(NumberOfSides-1). Notice that the number of
side is increased by one as the polyline is now closed.
--The points produced, are denser when they are in the intermediate
vertexes.
b)ControlPoints
-The same applied for ControlPoints but the points to be produced
defined by:
(NumberOfSides-2)*CurveResolution+1 for open polyline and
NumberOfSides*CurveResolution+1 for closed polyline
c)Fitting
This is more complex. The points to be produced depends on how the
polyline was drawn.
-If curveResolution=0 and PixelSize>0 then decreasing PixelSize causes more
points to be produced.
-If CurveResolution>0 then it depends from the value of curveResolution. Big
values will produce more points than small values.