Circle tangents
1432 3 0- sessionbeer
- Member
- 39 posts
- Joined: 7月 2014
- Offline
- BabaJ
- Member
- 2120 posts
- Joined: 9月 2015
- Offline
One of the 'issues' is that you are running over points in your wrangle.
In your common_tangents node you have:
Running over points means for your function arguments you will have a list for point1 as scene pt0, and point2 as scene pt1;
But also you will have a list as point1 as scene pt1 and point2 as scene pt1 also, which I don't think is the list you want.
I haven't studied your algorithm for the circle tangents so I don't know if you need two lists of points but if you do, just do the wrangle in detail and create two lists with the function done twice, reversing the point number reference.
As for your lines wrangle, again, haven't studied the algorithm but I suspect you need to do that in detail as well and you seem to still be in the prototype stage with your function as you are using invalid subscripts(e.g. .a,.b,and.c) on floats that you are looking at as if they are float arrays. You are also seemingly only interested in 3 elements(.a,.b,and.c)of the array constructed in the previous wrangle step yet those arrays have more than 3 elements.
In your common_tangents node you have:
vector point1 = @P;; vector point2 = (0,"P",1);
Running over points means for your function arguments you will have a list for point1 as scene pt0, and point2 as scene pt1;
But also you will have a list as point1 as scene pt1 and point2 as scene pt1 also, which I don't think is the list you want.
I haven't studied your algorithm for the circle tangents so I don't know if you need two lists of points but if you do, just do the wrangle in detail and create two lists with the function done twice, reversing the point number reference.
As for your lines wrangle, again, haven't studied the algorithm but I suspect you need to do that in detail as well and you seem to still be in the prototype stage with your function as you are using invalid subscripts(e.g. .a,.b,and.c) on floats that you are looking at as if they are float arrays. You are also seemingly only interested in 3 elements(.a,.b,and.c)of the array constructed in the previous wrangle step yet those arrays have more than 3 elements.
- sessionbeer
- Member
- 39 posts
- Joined: 7月 2014
- Offline
- srcare
- Member
- 2 posts
- Joined: 1月 2021
- Offline
-
- Quick Links