Projecting a point along normal direction
4 次查看(过去 30 天)
显示 更早的评论
So there is the InterX code available on matlab which finds out where two curves intersect.
Basically given two curves A and B,I select a point in A,and then project it along the normal direction.
Then I use InterX to find where this projection will meet the curve B
This is the code i am currently referring to
the projection part is in in line 19-23.
But doing so gives me the following result.So i want to know if i want to project along normal direction,then is this method correct,and what can be done to ensure that points are projected along the normal.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/739244/image.png)
The normals on this curve are as follows
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/739249/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/739254/image.png)
have enclosed the set of points as well as the normals
0 个评论
采纳的回答
KSSV
2021-9-15
You may use this file exchange function: https://in.mathworks.com/matlabcentral/fileexchange/32696-2d-line-curvature-and-normals
7 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Nonlinear Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!