mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 00:09:41 +00:00
kludge to fix vnf_bend
This commit is contained in:
parent
60c3a99e90
commit
7c3990f2ed
1 changed files with 5 additions and 0 deletions
|
@ -158,7 +158,12 @@ function line_normal(p1,p2) =
|
|||
// the intersection lies on the segment. Otherwise it lies somewhere on
|
||||
// the extension of the segment. If lines are parallel or coincident then
|
||||
// it returns undef.
|
||||
|
||||
// This kludge of calling path2d is because vnf_bend passed 3d input. FIXME!
|
||||
|
||||
function _general_line_intersection(s1,s2,eps=EPSILON) =
|
||||
len(s1[0])==3 ? _general_line_intersection(path2d(s1), path2d(s2),eps)
|
||||
:
|
||||
let(
|
||||
denominator = cross(s1[0]-s1[1],s2[0]-s2[1])
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue