mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-28 15:59:45 +00:00
only $fn affects texture, not $fa or $fs
This commit is contained in:
parent
4e62854909
commit
6725f7311b
2 changed files with 5 additions and 6 deletions
10
skin.scad
10
skin.scad
|
@ -2969,7 +2969,7 @@ function associate_vertices(polygons, split, curpoly=0) =
|
|||
// rect(30), texture=tex, h=30,
|
||||
// tex_size=[10,10]
|
||||
// );
|
||||
// Example(3D): **"cones"** (VNF) = Raised conical spikes. Specify `$fn` to set the number of segments on the cone (will be rounded to a multiple of 4). If you use $fa and $fs then the number of segments is determined for the original VNF scale of 1x1. Giving `border=` specifies the horizontal border width between the edge of the tile and the base of the cone. The `border` value must be nonnegative and smaller than 0.5. Default: 0.
|
||||
// Example(3D): **"cones"** (VNF) = Raised conical spikes. Specify `$fn` to set the number of segments on the cone (will be rounded to a multiple of 4). The default is `$fn=16`. Note that `$fa` and `$fs` are ignored, since the scale of the texture is unknown at the time of definition. Giving `border=` specifies the horizontal border width between the edge of the tile and the base of the cone. The `border` value must be nonnegative and smaller than 0.5. Default: 0.
|
||||
// tex = texture("cones", $fn=16);
|
||||
// linear_sweep(
|
||||
// rect(30), texture=tex, h=30, tex_depth=3,
|
||||
|
@ -3011,13 +3011,13 @@ function associate_vertices(polygons, split, curpoly=0) =
|
|||
// rect(30), texture=tex, h=30,
|
||||
// tex_size=[10,10]
|
||||
// );
|
||||
// Example(3D): **"dimples"** (VNF) = Round divots. Specify `$fn` to set the number of segments on the cone (will be rounded to a multiple of 4). If you use $fa and $fs then the number of segments is determined for the original VNF scale of 1x1. Giving `border=` specifies the horizontal width of the flat border region between the tile edges and the edge of the dimple. Must be nonnegative and strictly less than 0.5. Default: 0.05.
|
||||
// Example(3D): **"dimples"** (VNF) = Round divots. Specify `$fn` to set the number of segments on the dimples (will be rounded to a multiple of 4). The default is `$fn=16`. Note that `$fa` and `$fs` are ignored, since the scale of the texture is unknown at the time of definition. Giving `border=` specifies the horizontal width of the flat border region between the tile edges and the edge of the dimple. Must be nonnegative and strictly less than 0.5. Default: 0.05.
|
||||
// tex = texture("dimples", $fn=16);
|
||||
// linear_sweep(
|
||||
// rect(30), texture=tex, h=30,
|
||||
// tex_size=[10,10]
|
||||
// );
|
||||
// Example(3D): **"dots"** (VNF) = Raised round bumps. Specify `$fn` to set the number of segments on the cone (will be rounded to a multiple of 4). If you use $fa and $fs then the number of segments is determined for the original VNF scale of 1x1. Giving `border=` specifies the horizontal width of the flat border region between the tile edge and the edge of the dots. Must be nonnegative and strictly less than 0.5. Default: 0.05.
|
||||
// Example(3D): **"dots"** (VNF) = Raised round bumps. Specify `$fn` to set the number of segments on the dots (will be rounded to a multiple of 4). The default is `$fn=16`. Note that `$fa` and `$fs` are ignored, since the scale of the texture is unknown at the time of definition. Giving `border=` specifies the horizontal width of the flat border region between the tile edge and the edge of the dots. Must be nonnegative and strictly less than 0.5. Default: 0.05.
|
||||
// tex = texture("dots", $fn=16);
|
||||
// linear_sweep(
|
||||
// rect(30), texture=tex, h=30,
|
||||
|
@ -3374,7 +3374,7 @@ function texture(tex, n, border, gap, roughness, inset) =
|
|||
assert(num_defined([gap,roughness])==0, "cones texture does not accept gap or roughness")
|
||||
let(
|
||||
border = default(border,0),
|
||||
n = quant(segs(1/2-border),4)
|
||||
n = $fn > 0 ? quantup($fn,4) : _tex_fn_default()
|
||||
)
|
||||
assert(border>=0 && border<0.5)
|
||||
[
|
||||
|
@ -3429,7 +3429,7 @@ function texture(tex, n, border, gap, roughness, inset) =
|
|||
assert(num_defined([gap,roughness])==0, str(tex," texture does not accept gap or roughness"))
|
||||
let(
|
||||
border = default(border,0.05),
|
||||
n = quant(segs(1/2-border),4)
|
||||
n = $fn > 0 ? quantup($fn,4) : _tex_fn_default()
|
||||
)
|
||||
assert(border>=0 && border < 0.5)
|
||||
let(
|
||||
|
|
1
vnf.scad
1
vnf.scad
|
@ -906,7 +906,6 @@ function _vnf_sort_vertices(vnf, idx=[2,1,0]) =
|
|||
) sorted_vnf;
|
||||
|
||||
|
||||
|
||||
// Function: vnf_slice()
|
||||
// Synopsis: Slice the faces of a VNF along an axis.
|
||||
// SynTags: VNF
|
||||
|
|
Loading…
Reference in a new issue