Home Search

DriveWorks Pro 22
PolygonSpline

Send Feedback

PolygonSpline

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

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

Syntax

PolygonSpline(Polygon,Segments,[Tension],[Closed])

Where:

Polygon: The polygon whose points the spline will be formed from.

Segments: The number of spline segments between each of the given polygon's points.

Tension (optional): A number between 0 and 1 that controls the tightness of the spline.

Closed (optional): Whether the first and last points should be connected by the spline.

Examples

Example 1

Rule (Fill Paths)

PolygonSpline(PolygonCreateBox(0,0,100,200),12,0.5,TRUE)

Result

{"0|0","5.150463|-7.638889","12.03704|-13.88889", "20.3125|-18.75","29.62963|-22.22222", "39.6412|-24.30556","50|-25", "60.3588|-24.30556","70.37037|-22.22222", "79.6875|-18.75","87.96296|-13.88889", "94.84954|-7.638889","100|0","103.8194|10.30093", "106.9444|24.07407","109.375|40.625","111.1111|59.25926", "112.1528|79.28241","112.5|100", "112.1528|120.7176","111.1111|140.7407", "109.375|159.375","106.9444|175.9259", "103.8194|189.6991","100|200","94.84954|207.6389", "87.96296|213.8889","79.6875|218.75", "70.37037|222.2222","60.3588|224.3056", "50|225","39.6412|224.3056", "29.62963|222.2222","20.3125|218.75", "12.03704|213.8889","5.150463|207.6389", "0|200","-3.819444|189.6991", "-6.944445|175.9259","-9.375|159.375", "-11.11111|140.7407","-12.15278|120.7176", "-12.5|100","-12.15278|79.28241","-11.11111|59.25926", "-9.375|40.625","-6.944445|24.07407","-3.819444|10.30093"}

A new polygon, derived from samples along a cardinal spline using the box as control points.