Plotting multiple 2D alphaShape polygons with different z-values
2 次查看(过去 30 天)
显示 更早的评论
I am trying to plot multiple 2D alphaShape polygons with different z-offsets.
Method I tried:
Since 2D alphaShape objects do not have z values, I attempted to add an array of constant z values alongside the x and y values and recreate the polygon with alphaShape. When I tried plotting it, it does not work.
I would greatly appreciate any help regarding this
shp = alphaShape(x_wkspace',y_wkspace',1);
vertices = shp.Points;
phi_array = ones(length(vertices),1) .* phi;
vertices_z = [vertices,phi_array];
updated_shp = alphaShape(vertices_z);
plot(updated_shp);
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bounding Regions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
