mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
doc tweaks
This commit is contained in:
parent
5375e41af4
commit
7c737fd0a3
@ -1444,6 +1444,8 @@ function bezier_patch_normals(patch, u, v) =
|
|||||||
|
|
||||||
|
|
||||||
// Function: bezier_sheet()
|
// Function: bezier_sheet()
|
||||||
|
// Synopsis: Creates a thin sheet from a bezier patch by extruding in normal to the patch
|
||||||
|
// SynTags: VNF
|
||||||
// Topics: Bezier Patches
|
// Topics: Bezier Patches
|
||||||
// See Also: bezier_patch_normals(), vnf_sheet()
|
// See Also: bezier_patch_normals(), vnf_sheet()
|
||||||
// Description:
|
// Description:
|
||||||
|
@ -852,21 +852,25 @@ function grid_copies(spacing, n, size, stagger=false, inside=undef, nonzero, p=_
|
|||||||
// yrot(90) cylinder(h=20, r1=5, r2=0);
|
// yrot(90) cylinder(h=20, r1=5, r2=0);
|
||||||
// color("red",0.333) yrot(90) cylinder(h=20, r1=5, r2=0);
|
// color("red",0.333) yrot(90) cylinder(h=20, r1=5, r2=0);
|
||||||
module rot_copies(rots=[], v, cp=[0,0,0], n, sa=0, offset=0, delta=[0,0,0], subrot=true)
|
module rot_copies(rots=[], v, cp=[0,0,0], n, sa=0, offset=0, delta=[0,0,0], subrot=true)
|
||||||
{
|
{ echo("hi");
|
||||||
req_children($children);
|
req_children($children);
|
||||||
sang = sa + offset;
|
sang = sa + offset;
|
||||||
|
echo(sang=sang);
|
||||||
angs = !is_undef(n)?
|
angs = !is_undef(n)?
|
||||||
(n<=0? [] : [for (i=[0:1:n-1]) i/n*360+sang]) :
|
(n<=0? [] : [for (i=[0:1:n-1]) i/n*360+sang]) :
|
||||||
rots==[]? [] :
|
rots==[]? [] :
|
||||||
assert(!is_string(rots), "Argument rots must be an angle, a list of angles, or a range of angles.")
|
assert(!is_string(rots), "Argument rots must be an angle, a list of angles, or a range of angles.")
|
||||||
assert(!is_undef(rots[0]), "Argument rots must be an angle, a list of angles, or a range of angles.")
|
assert(!is_undef(rots[0]), "Argument rots must be an angle, a list of angles, or a range of angles.")
|
||||||
[for (a=rots) a];
|
[for (a=rots) a];
|
||||||
|
echo(angs=angs);
|
||||||
|
echo(subrot=subrot);
|
||||||
for ($idx = idx(angs)) {
|
for ($idx = idx(angs)) {
|
||||||
$ang = angs[$idx];
|
$ang = angs[$idx];
|
||||||
$axis = v;
|
$axis = v;
|
||||||
translate(cp) {
|
translate(cp) {
|
||||||
|
echo(rotang=$ang);
|
||||||
rotate(a=$ang, v=v) {
|
rotate(a=$ang, v=v) {
|
||||||
translate(delta) {
|
translate(delta) { echo(sang=sang);
|
||||||
rot(a=(subrot? sang : $ang), v=v, reverse=true) {
|
rot(a=(subrot? sang : $ang), v=v, reverse=true) {
|
||||||
translate(-cp) {
|
translate(-cp) {
|
||||||
children();
|
children();
|
||||||
|
2
vnf.scad
2
vnf.scad
@ -1762,7 +1762,7 @@ function vnf_small_offset(vnf, delta, merge=true) =
|
|||||||
[offset,faces];
|
[offset,faces];
|
||||||
|
|
||||||
// Function: vnf_sheet()
|
// Function: vnf_sheet()
|
||||||
// Synopsis: Extends a VNF into a thin sheet by forming a small offset
|
// Synopsis: Extends a VNF into a thin sheet by extruding normal to the VNF
|
||||||
// SynTags: VNF
|
// SynTags: VNF
|
||||||
// Topics: VNF Manipulation
|
// Topics: VNF Manipulation
|
||||||
// See Also: vnf_small_offset(), vnf_boundary(), vnf_merge_points()
|
// See Also: vnf_small_offset(), vnf_boundary(), vnf_merge_points()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user