mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Merge pull request #788 from revarbat/revarbat_dev
Added custom named anchors docs for onion()
This commit is contained in:
commit
60d593fd35
1 changed files with 5 additions and 1 deletions
|
@ -2264,6 +2264,10 @@ function teardrop(h, r, ang=45, cap_h, r1, r2, d, d1, d2, cap_h1, cap_h2, l, anc
|
||||||
// spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
// spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0`
|
||||||
// orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
// orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP`
|
||||||
//
|
//
|
||||||
|
// Extra Anchors:
|
||||||
|
// cap = The center of the top of the cap, oriented with the cap face normal.
|
||||||
|
// tip = The position where an un-capped onion would come to a point, oriented in the direction the point is from the center.
|
||||||
|
//
|
||||||
// Example: Typical Shape
|
// Example: Typical Shape
|
||||||
// onion(r=30, ang=30);
|
// onion(r=30, ang=30);
|
||||||
// Example: Crop Cap
|
// Example: Crop Cap
|
||||||
|
@ -2279,7 +2283,7 @@ function teardrop(h, r, ang=45, cap_h, r1, r2, d, d1, d2, cap_h1, cap_h2, l, anc
|
||||||
// onion(d=50, cap_h=30);
|
// onion(d=50, cap_h=30);
|
||||||
// }
|
// }
|
||||||
// Example: Standard Connectors
|
// Example: Standard Connectors
|
||||||
// onion(r=30, ang=30, cap_h=40) show_anchors();
|
// onion(d=30, ang=30, cap_h=20) show_anchors();
|
||||||
module onion(r, ang=45, cap_h, d, anchor=CENTER, spin=0, orient=UP)
|
module onion(r, ang=45, cap_h, d, anchor=CENTER, spin=0, orient=UP)
|
||||||
{
|
{
|
||||||
r = get_radius(r=r, d=d, dflt=1);
|
r = get_radius(r=r, d=d, dflt=1);
|
||||||
|
|
Loading…
Reference in a new issue