Home Search

DriveWorks Pro 23
PolygonCreateUniformThickLine

Send Feedback

PolygonCreateUniformThickLine

Returns a new polygon by creating the outline of a given series of points with a uniform thickness.

This function is intended to be used with the DriveWorks 3D Extrusion entity.

Syntax

PolygonCreateUniformThickLine(Points,Thickness,[Segments],[End Cap Segments])

Where:

Points: The points to create a line around.

Thickness: The thickness of the line in millimeters.

  • Single numeric value - Creates a consistent thickness for each line in the array.
  • Pipe-delimited list - Controls the thickness for each line in the array.

Segments (Optional): The number of segments at the junctions of the line.

  • 0 - Standard join.

    Segments 0

    There is a limit to how far away the generated point can be from the line before a value of 1 is used instead.

    BeforeAfter
    Segments 0 CautionSegments 1 Caution
  • 1 - Extended join.
  • Segments 1
  • Single numeric value - The number of segments to use at every junction of the line.
  • Pipe-delimited list - Controls the number of segments at each junction of the line independently.

End Cap Segments (Optional): The number of segments at the end of the line.

  • 0 - No end Cap.
  • 1 - Default end Cap
  • Single numeric value - The number of segments to use at both ends of the line.
  • Pipe-delimited pair of values - Controls the number of segments at each end of the line independently.
  • Examples

    Example 1

    Rule (Fill Paths)

    PolygonCreateUniformThickLine({"0|0","10|20","20|0","30|20","40|0"},4,2,3)

    Result

    {"-1.635395|-1.41837","-2.159338|0.1534596","8.557083|21.5863","10|22.14438","11.44292|21.5863","21.78885|0.8944272","20|0","18.21115|0.8944272","28.55708|21.5863","30|22.14438","31.44292|21.5863","42.15934|0.1534593","41.6354|-1.41837","40.15346|-2.159338","38.58163|-1.635395","28.21115|19.10557","30|20","31.78885|19.10557","21.44292|-1.586303","20|-2.14438","18.55708|-1.586303","8.211145|19.10557","10|20","11.78885|19.10557","1.418371|-1.635395","-0.1534593|-2.159338"}

    The line is created around the given points.

    See Also

    The following Polygon functions are also available:

    PolygonCombine - Combines two or more polygons.

    PolygonCreateArc - Returns a new arc polygon.

    PolygonCreateBox - Returns a new box polygon.

    PolygonCreateCircle - Returns a new circular polygon.

    PolygonCreateRoundedBox - Returns a new rounded box polygon.

    PolygonCreateThickLine - Returns a new polygon by creating the outline of a given series of points.

    PolygonCreateUniformThickLine - Returns a new polygon by creating a uniform outline of a given series of points.

    PolygonFromPoints - Returns a new polygon created from the given list of points.

    PolygonRotate- Returns a copy of the given polygon rotated around its local origin.

    PolygonScale - Returns a copy of the given polygon scaled along the X and Y axes.

    PolygonSpline - Creates a polygon that forms a cardinal spline path along the given polygon's points.

    PolygonTranslate - Returns a copy of the given polygon translated along the X and Y axes.