我真的希望你能帮我修复这段代码:
List<Vector3> verticesToExport = new List<Vector3>();//vertices of the triangles facingList<int> trianglesToExport = new List<int>();//new triangle facing upwards.Vector3 a = vertices[triangles[i + 1]] -
我希望在每个节点上添加一个类型(例如,作为一个具有某些自定义排序的整数),并具有以下属性:请注意,拓扑排序实际上满足反向性质:
if there exists a path from Node1 to Node2 then Node1.type <= Node2现在请注意,这里不能使用具有自然排序的整数,因为每两个整数都可以进行比较