Effacer les filtres
Effacer les filtres

Projecting a point along normal direction

4 vues (au cours des 30 derniers jours)
sparsh garg
sparsh garg le 15 Sep 2021
Modifié(e) : sparsh garg le 15 Sep 2021
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.
The normals on this curve are as follows
have enclosed the set of points as well as the normals

Réponse acceptée

KSSV
KSSV le 15 Sep 2021
  7 commentaires
KSSV
KSSV le 15 Sep 2021
Check the units you are using. They are in degrees or radians?
sparsh garg
sparsh garg le 15 Sep 2021
Modifié(e) : sparsh garg le 15 Sep 2021
degree this is how their projection comes out
using angles computed from normals
using 90 degree instead of the angle
projection code is as follows
xc=x-10*cosd(angles(i));yc=y-10*sind(angles(i));
L1=[x xc;y yc];
the new normals computed from LineCurvature2D ,angles and the subset of spline_pts is as follows

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Nonlinear Optimization dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by