Irregular Polygon with Spline

The target is: Buld an Irregular Polygon with both caps using Spline.
Please check the following simple but not working script.
*********************************************************
--------------------------------------
--Irregular Polygon with spline
--------------------------------------
fn POLY_IRR =
(
PolyIrr = splineShape ()
addnewSpline PolyIrr
addknot PolyIrr 1 #corner #line [ 0.0,0.0,0.0]
addknot PolyIrr 1 #corner #line [ 5.0,0.0,0.0]
addknot PolyIrr 1 #corner #line [ 5.0,5.0,0.0]
addknot PolyIrr 1 #corner #line [ 2.5,2.5,0.0]
addknot PolyIrr 1 #corner #line [ 0.0,2.0,0.0]
addknot PolyIrr 1 #corner #line [ 0.0,0.0,0.0]
close PolyIrr 1
updateShape PolyIrr
addModifier PolyIrr (extrude amount:1.0 \
segs:2 \
capStart:true \
capEnd:true \
capType:1 \
output:0 \
matIDs:false \
mapCoords:true \
realWorldMapSize:true)
)
POLY_IRR ()

*********************************************************

The "capStart:true" and "capEnd:true" are not working!
Where is my error?
Thanks.

amelia

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
amelia's picture

"in abbundantiam non stat

"in abbundantiam non stat virtus"

The last "addknot PolyIrr 1 #corner #line [ 0.0,0.0,0.0]" must be removed.

amelia

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.