From 0e34b6799be479a5876e9ac5a1a75b768a2ab1b6 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Thu, 13 Oct 2022 00:15:50 -0700 Subject: [PATCH] Cleaning up textures docs. --- shapes3d.scad | 7 ++++++- skin.scad | 10 +++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/shapes3d.scad b/shapes3d.scad index 45a74ac..13d2efc 100644 --- a/shapes3d.scad +++ b/shapes3d.scad @@ -1155,10 +1155,15 @@ function cylinder(h, r1, r2, center, l, r, d, d1, d2, anchor, spin=0, orient=UP) // cyl(l|h, r|d, rounding2=, ...); // cyl(l|h, r|d, rounding1=, rounding2=, ...); // +// Usage: Textured Cylinders +// cyl(l|h, r|d, texture=, [tex_size=]|[tex_counts=], [tex_scale=], [tex_rot=], [tex_samples=], [tex_style=], [tex_taper=], [tex_inset=], ...); +// cyl(l|h, r1=, r2=, texture=, [tex_size=]|[tex_counts=], [tex_scale=], [tex_rot=], [tex_samples=], [tex_style=], [tex_taper=], [tex_inset=], ...); +// cyl(l|h, d1=, d2=, texture=, [tex_size=]|[tex_counts=], [tex_scale=], [tex_rot=], [tex_samples=], [tex_style=], [tex_taper=], [tex_inset=], ...); +// // Topics: Cylinders, Textures, Rounding, Chamfers // // Description: -// Creates cylinders in various anchorings and orientations, with optional rounding and chamfers. +// Creates cylinders in various anchorings and orientations, with optional rounding, chamfers, or textures. // You can use `h` and `l` interchangably, and all variants allow specifying size by either `r`|`d`, // or `r1`|`d1` and `r2`|`d2`. Note: the chamfers and rounding cannot be cumulatively longer than // the cylinder's length. diff --git a/skin.scad b/skin.scad index b38781a..f6f6090 100644 --- a/skin.scad +++ b/skin.scad @@ -508,6 +508,8 @@ function skin(profiles, slices, refine=1, method="direct", sampling, caps, close // Function&Module: linear_sweep() // Usage: // linear_sweep(region, [height], [center=], [slices=], [twist=], [scale=], [style=], [convexity=]) [ATTACHMENTS]; +// Usage: With Texturing +// linear_sweep(region, [height], [center=], texture=, [tex_size=]|[tex_counts=], [tex_scale=], [style=], [tex_samples=], ...) [ATTACHMENTS]; // Description: // If called as a module, creates a polyhedron that is the linear extrusion of the given 2D region or polygon. // If called as a function, returns a VNF that can be used to generate a polyhedron of the linear extrusion @@ -767,12 +769,14 @@ function linear_sweep( // Function&Module: rotate_sweep() // Usage: As Function -// vnf = rotate_sweep(shape, angle, ...); +// vnf = rotate_sweep(shape, [angle], ...); // Usage: As Module -// rotate_sweep(shape, angle, ...) [ATTACHMENTS]; +// rotate_sweep(shape, [angle], ...) [ATTACHMENTS]; +// Usage: With Texturing +// rotate_sweep(shape, texture=, [tex_size=]|[tex_counts=], [tex_scale=], [tex_samples=], [tex_rot=], [tex_inset=], ...) [ATTACHMENTS]; // Topics: Extrusion, Sweep, Revolution // Description: -// Takes a polygon or [region](regions.scad) and sweeps it in a rotation around the Z axis. +// Takes a polygon or [region](regions.scad) and sweeps it in a rotation around the Z axis, with optional texturing. // When called as a function, returns a [VNF](vnf.scad). // When called as a module, creates the sweep as geometry. // Arguments: