Calculation of coordinates on a curved surface
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello dear community,
I am currently facing a problem that probably requires mathematical understanding. Since I'm looking for an algorithm in MATLAB, or I want to use an existing function, I ask my question here.
It is about finding coordinates on a curved surface. With STL-read I import a CAD file and get all curved surfaces, points and normal vectors of the corresponding model. At the same time I create a two-dimensional rectangle which is to be placed on the curved surface. First I search for the point of intersection between the centre of the two-dimensional rectangle and the curved surface using the xy-coordinates. Now I set the z-coordinate of the centre and the normal of the centre equal to the intersecting surface. Now I want to determine the coordinates of the remaining four points. I can determine the z-coordinate with the same procedure, but not the xy-coordinates. Because the xy-coordinates change due to the curvature, I am now looking for a possibility to determine them.
My first approach was to rotate the coordinates with the rotation matrix around the z-axis with the angle between the normal vectors of the centre and the other point of the rectangle. But unfortunately I got some nonsense.
Do you have an idea for an already implemented function or an algorithm? Here is another illustration that might help to show the problem:
Thanks for your help.
Best regards
2 Kommentare
KSSV
am 18 Okt. 2020
You will get the point of intersection of line and curve easily..that will be the mid point.
To get the ends...find the normal vectors to curve and get the intersection of normal vectors and the line...Or
Find the distance to each point of curve from one end of the line, the least distance one is your point of intersection.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!