Last edited by hbghlyj at 2025-4-10 05:45:56
在这段Asymptote代码中,给出凸多面体的顶点,然后指定每条棱和每个面.
在Mathematica中有ConvexHullMesh可以仅给定顶点画出凸多面体.
例如,画出一个四面体,只需给定它的顶点
- p = {{2, 1, 6}, {4, 3, 0}, {5, 2, 5}, {3, 5, 4}}
- chull = ConvexHullMesh[p]
Copy the Code
在Asymptote中,如何制作一个函数,仅给定顶点画出凸多面体? |