mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-12-09 15:29:09 +00:00
Textures from Graphic Images 1
This commit is contained in:
parent
afd6e23454
commit
8c7c0d21c3
1 changed files with 8 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue