Product : Engine, Version : 5.0.1.1034, ArticleID : 41023799

HowTo : GetSamplePoints: number of points produced

Article41023799
TypeHowTo
ProductEngine
Version5.0.1.1034
Date Added12/1/2004
Submitted byPanagiotis 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.