Can I create points on polygon with specific distance between them?
4 次查看(过去 30 天)
显示 更早的评论
Can someone help to make function to create points with specific distanace from each other on a polygon made of points in XY-plane with random distance between them.
for example: if I have the blue polygon made of X and Y point (file attached) as in the pictures1, can I create points (red) in as in picture 2. with distance D between them?
Picture 1
Picture 2
0 个评论
采纳的回答
Image Analyst
2019-2-16
This is what interparc does. See John D'Errico's File Exchange: interparc
7 个评论
更多回答(1 个)
Kevin Phung
2019-2-16
编辑:Kevin Phung
2019-2-16
depends if your y values are equally spaced in the first place.
Is this an appropriate workaround?:
% add this to your plot
hold on;
spacing= 10;
plot(xy(1:spacing:end,1),xy(1:spacing:end,2),'ro');
this is spacing the distance between each index used rather than the actual distance
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Elementary Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!