Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从随机平面点的坐标或索引列表中绘制六边形多边形,这些点是多边形的顶点?
非常感谢,
亚瑟
一种可能的解决方案是使用这些点作为Voronoi 图的控制点。这将产生不规则的凸多边形,而不是六边形或矩形。但我不知道随机点是否可能。
我在 Jon Mirtschin (Geometry Gym) 的帮助下解决这个问题的方法是采用六边形网格代码,并从我的随机点集中识别到该网格的最近点。这会按照与网格相同的顺序对点索引进行排序。