mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
a few more examples
This commit is contained in:
parent
87abec1a7f
commit
1b218145fd
1 changed files with 18 additions and 0 deletions
18
skin.scad
18
skin.scad
|
@ -2841,6 +2841,18 @@ function associate_vertices(polygons, split, curpoly=0) =
|
|||
// rect(50), texture=tex, h=40,
|
||||
// tex_size=[12.5,20]
|
||||
// );
|
||||
// Example(3D): "tri_grid" texture with large inset. (Max inset for tri_grid is 1/6.)
|
||||
// tex = texture("tri_grid",inset=.12);
|
||||
// linear_sweep(
|
||||
// rect(50), texture=tex, h=40,
|
||||
// tex_size=[12.5,20]
|
||||
// );
|
||||
// Example(3D): "tri_grid" texture scaled by sqrt(3) so triangles are equilateral and grooves are all the same width. Note we have to ensure the height evenly fits the scaled texture tiles.
|
||||
// tex = texture("tri_grid",inset=.04);
|
||||
// linear_sweep(
|
||||
// rect(50), texture=tex, h=quantup(40,10*sqrt(3)),
|
||||
// tex_size=[10,10*sqrt(3)], tex_scale=3
|
||||
// );
|
||||
// Example(3D): "hex_grid" texture.
|
||||
// tex = texture("hex_grid");
|
||||
// linear_sweep(
|
||||
|
@ -2853,6 +2865,12 @@ function associate_vertices(polygons, split, curpoly=0) =
|
|||
// rect(50), texture=tex, h=40,
|
||||
// tex_size=[12.5,20]
|
||||
// );
|
||||
// Example(3D): "hex_grid" scaled vertically by sqrt(3) so hexagons are regular and grooves are all the same width. Note height of cylinder is also scaled so tile fits without being automatically adjusted to fit, ruining our choice of scale.
|
||||
// tex = texture("hex_grid",inset=.04);
|
||||
// linear_sweep(
|
||||
// rect(50), texture=tex, h=quantup(40,10*sqrt(3)),
|
||||
// tex_size=[10,10*sqrt(3)], tex_scale=3
|
||||
// );
|
||||
// Example(3D): "checkers" texture.
|
||||
// tex = texture("checkers");
|
||||
// linear_sweep(
|
||||
|
|
Loading…
Reference in a new issue