The file 'Variable Extrude An OpenScad Library: Linear_extrude With Function Driven Scaling 3D Printer Model' is (scad,stl) file type, size is 850.4KB.
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
variable_extrude.scad
to your scad library folder.use<variable_extrude.scad>;
" in your scad filevariable_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
variable_extrude.scad | 2.5KB | |
variable_extrude.stl | 1.4MB | |
variable_extrude1.stl | 374.3KB | |
variable_extrude_examples.stl | 372.9KB |