Summary
Variable Extrude
About this Library
This is an implementation of linear_extrude, where the scale parameter can also be a function.
With the exeption of the scale parameter this works like the built in linear_extrude(the v parameter from the snapshot version is not implemented).
Usage
1. Add to your library
- Copy the variable_extrude.scad to your scad library folder.
- add "use
; " in your scad file - use variable_extrude with same parameter as linear_extrude (exept v)
2.How to use the scale paramter
Like the original linear_extrude the scale parameter exepts either a scalar(single_value) or a vector([x_value,y_value]). In this implementation the values can either be a number or a function. The function used takes one parameter, wich is the progress of the extrusion (0-1) and returns a number, that is used at that heigth for scaling. The scad file includes some examples and the included stl variable_extrude_examples.stl is the result.
If someone involved with the development of OpenScad sees this think about implementing this functionality into the native linear_extrude module.
Note: I if you find a bug write a comment
모델 소스
