mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
circle_2tangents() diagnostic
This commit is contained in:
parent
062c172716
commit
ae466c2cb3
2 changed files with 2 additions and 2 deletions
|
@ -1108,7 +1108,7 @@ function circle_2tangents(r, pt1, pt2, pt3, tangents=false, d) =
|
|||
assert(r!=undef, "Must specify either r or d.")
|
||||
assert( ( is_path(pt1) && len(pt1)==3 && is_undef(pt2) && is_undef(pt3))
|
||||
|| (is_matrix([pt1,pt2,pt3]) && (len(pt1)==2 || len(pt1)==3) ),
|
||||
"Invalid input points." )
|
||||
str("Invalid input points. pt1=",pt1,", pt2=",pt2,", pt3=",pt3))
|
||||
is_undef(pt2)
|
||||
? circle_2tangents(r, pt1[0], pt1[1], pt1[2], tangents=tangents)
|
||||
: is_collinear(pt1, pt2, pt3)? undef :
|
||||
|
|
|
@ -1388,7 +1388,7 @@ function cylinder(h, r1, r2, center, r, d, d1, d2, anchor, spin=0, orient=UP) =
|
|||
// Example: Rounding
|
||||
// cyl(l=40, d=40, rounding=10);
|
||||
//
|
||||
// Example: Teardrop Bottom Rounding
|
||||
// Example(VPD=175;VPR=[90,0,0]): Teardrop Bottom Rounding
|
||||
// cyl(l=40, d=40, rounding=10, teardrop=true);
|
||||
//
|
||||
// Example: Heterogenous Chamfers and Rounding
|
||||
|
|
Loading…
Reference in a new issue