mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-28 15:59:45 +00:00
doc tweaks
This commit is contained in:
parent
5375e41af4
commit
7c737fd0a3
3 changed files with 9 additions and 3 deletions
|
@ -1444,6 +1444,8 @@ function bezier_patch_normals(patch, u, v) =
|
|||
|
||||
|
||||
// Function: bezier_sheet()
|
||||
// Synopsis: Creates a thin sheet from a bezier patch by extruding in normal to the patch
|
||||
// SynTags: VNF
|
||||
// Topics: Bezier Patches
|
||||
// See Also: bezier_patch_normals(), vnf_sheet()
|
||||
// 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);
|
||||
// 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)
|
||||
{
|
||||
{ echo("hi");
|
||||
req_children($children);
|
||||
sang = sa + offset;
|
||||
echo(sang=sang);
|
||||
angs = !is_undef(n)?
|
||||
(n<=0? [] : [for (i=[0:1:n-1]) i/n*360+sang]) :
|
||||
rots==[]? [] :
|
||||
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.")
|
||||
[for (a=rots) a];
|
||||
echo(angs=angs);
|
||||
echo(subrot=subrot);
|
||||
for ($idx = idx(angs)) {
|
||||
$ang = angs[$idx];
|
||||
$axis = v;
|
||||
translate(cp) {
|
||||
echo(rotang=$ang);
|
||||
rotate(a=$ang, v=v) {
|
||||
translate(delta) {
|
||||
translate(delta) { echo(sang=sang);
|
||||
rot(a=(subrot? sang : $ang), v=v, reverse=true) {
|
||||
translate(-cp) {
|
||||
children();
|
||||
|
|
2
vnf.scad
2
vnf.scad
|
@ -1762,7 +1762,7 @@ function vnf_small_offset(vnf, delta, merge=true) =
|
|||
[offset,faces];
|
||||
|
||||
// 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
|
||||
// Topics: VNF Manipulation
|
||||
// See Also: vnf_small_offset(), vnf_boundary(), vnf_merge_points()
|
||||
|
|
Loading…
Reference in a new issue