💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
![](https://box.kancloud.cn/b5494a9ebba24d49462c2586a1683f15_1121x451.png =230x) ### **MeshDual** * * * * * **Description**: This component computes the dual graph of a mesh. **Input**: Mesh: Input a mesh. withBoundary: Whether you want to create a dual graph with boundary or not. **Output**: Polyline: Return a polyline list as a dual graph. Ngon: Return a ngon list as a dual graph. **Algorithm Details**: Sometimes, we use it for designing building's curtain walls. The edge count of a polygon depends on its center point, which is a vertex from your original mesh. For example, if that vertex's valence is 6 (means this vertex is shared by 6 triangles) , you will get a hexagon though MeshDual. So, if you have a uniform triangular mesh (Every vertex valence is close to 6), you will get many hexagon polylines via this algorithm. However, if you input a quadrilateral mesh, you will get a new set of quadrilateral polylines, which are generated by interconnecting the center points of original quadrilateral mesh faces. ![](https://box.kancloud.cn/47dfb04bf2d52c1fd1028bfb0dc4fbca_1845x711.png =1000x)