Textures from Graphic Images 1

This commit is contained in:
Richard Milewski
2025-06-19 16:21:24 -07:00
parent afd6e23454
commit 8c7c0d21c3

View File

@@ -3627,6 +3627,14 @@ function associate_vertices(polygons, split, curpoly=0) =
// tex = texture("bricks_vnf");
// cyl(d=10,h=15,texture=tex, tex_reps=[4,2],tex_samples=5,rounding=2);
// up(7)fwd(-3)right(15)cyl(d=10,h=15,texture=vnf_triangulate(tex), tex_reps=[4,2],tex_samples=5,rounding=2);
// Subsection: Textures from Graphic Images
// The BOSL2 scripts folder contains three scripts for creating texture arrays from graphic images.
// **img2scad.py is a python script that creates a texture array from most common raster image formats, including gif, png, jpeg.
// **img2scad.html** contains a javascript creates a texture array from any image your browser can render.
// **geotiff2scad.py** is a python script creates a texture array from geotiff depth maps.
// .
// All three of these scripts place a named array in an .scad file with names specified at run time. These files should be included in your model.
//
// Function: texture()