How to find axis of revolution of cylindrical objects generated from STL files in matlab? -


i have 3d models in stl file format. reading files using "stlread" function provided here. gives me 2 outputs, faces , vertices. after plotting vertices (values of x,y,z stored in matrix format) using scatter3 plot, getting cluster of points. there way find out axis of revolution of cluster of point?

currently, used kmeans clustering algorithm find out 1 centroid points. drawing normal each plane(xy,yz,zx) on centroid. after getting 3 normals, calculated distance between each normal , each point. stored values in 3 vectors 1 each normal. normal has least unique distances axis of revolution. working symmetric rotational objects. unsymmetrical objects has elongation rotational surface, centroid shifted not able generate proper axis of rotation.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -