SolidCode / SolidPython

A python frontend for solid modelling that compiles to OpenSCAD
1.11k stars 173 forks source link

linear_extrude does not accept segments argument #107

Closed ali1234 closed 5 years ago

ali1234 commented 5 years ago

The OpenScad linear_extrude accepts $fn but the SolidPython version does not accept segments.

Example:

linear_extrude(h=10, twist=30, segments=10)(
    square([3, 3, 3], center=True)
)
nickc92 commented 5 years ago

Yes, that fails for me too. I'll look into it!

nickc92 commented 5 years ago

Ok, try:

linear_extrude(h=10, twist=30, slices=10)(
    square([3, 3, 3], center=True)
)

I think in OpenSCAD you can use either $fn or slices, but here you must use slices.