0

I want to create a path that traverses three specific points. My goal is to cross the midpoint as a curve(blend path), I used b_splinepolytraj in MATLAB function and it works. but I want to coding and implementing b_spline without using prepare function. so I would appreciate it if someone could guide me!!

at the first and before I using bspline function I did this: consider 3 points as p1 , p2 and p3. I specified a point in the distance between p1 and p2 (Supposedly m1)and also between p2 and p3 (Supposedly m2).So that m1p2 is equal to p2m2. Then I drew the perpendicular of the p1p2 line at m1 and also perpendicular of the p2p3 line at m2. The point where two perpendicular lines intersect was considered as the center of the circle and The distance between center and m1 or distance between center and m2 was considered as radius of circle. Because I thought that these two distances (center-m1 and center-m2) should be equal to each other. but in some test I discover they may not be equal and It creates a toothy state in the output path. I have no idea to improve it..

enter image description here

after that, I tried to use bspline function and it worked. but I do not know how to coding it.

Hadis
  • 13
  • 6

0 Answers0