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.
我实际上在 Android 上开发了一个 3D 应用程序,并且我操作 3D 对象。
我想根据立方体或圆柱体等另一种多边形形式来挖掘多边形。在下图中,您可以想象我有两个叠加的多边形,一个圆柱体和一个长方体。如果我得到这两个多边形的交集并计算逆(包含在矩形长方体中),我会得到一个新多边形,该多边形有一个圆柱形状的孔,如图所示。
我不知道如何使用 libGDX 实现这一点,我知道 Intersector 类,但我不知道如何检索两个多边形之间交集的反向。