matlab polyarea.stl non-convex cross section area where circumference is defined by adjacent xz point pairs that are not ordered -


this first post , need help. have 3d geometry model og elongated piece of steel rought surface in .stl format, see pic. 1 plot of .stl geometry marked cross section aim obtain detailed cross section area defined x-z vector pair along circumference cross section plotting , boundary. when plot points of vectors unsing plot(xvector,zvector,'.') blue line appears. point pairs not ordered along line adjacent points vector neighbours, if trying plot intersecting line plot(xvector,zvector), lines crosses internal geometry time. tried using boundary order points, if use high shrinking factor of cases have cut corners , give low area. after sorting bounds, use polyarea. red curve area bound boundary, , calculated polyarea. i'm not entierly satisfied tight fit. have checked out alphashape function, still need make nice sorting other boundary make fit. impossible connect non-convex unsorted polygon in unique way, in case close should possible? suggestions appreciated.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -