How can I calculate the normal vectors for each point on a curved surface?

7 次查看(过去 30 天)
Hello,
I want to calculate the normal vectors for each point on a curved surface. I tried surfnorm, but my data does not have the correct input for surfnorm. I have an STL file with a surface and the x, y and z coordinates for all points. I want to have the normal vector for all points, so I can select the points I am interested in, using the x, y and z coordinates. In the zip file I attached an example image of the surface and an example of the STL file.
Does anyone have an idea how I can use surfnorm or which other options there are to do this? Thank you!

回答(1 个)

KSSV
KSSV 2017-7-26
Check this file exchange: https://in.mathworks.com/matlabcentral/fileexchange/22409-stl-file-reader?focused=5193625&tab=function This function reads the stl file and also it calculates the normal vectors.

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by