Whether the polygons of different planes can be divided directly using poly2tri

15 views
Skip to first unread message

Ning Xue

unread,
Apr 11, 2022, 5:57:05 AM4/11/22
to poly2tri
        Vec3[] polygon1 = new Vec3[4];
        polygon1[0] = new Vec3(1, 1, -2);
        polygon1[1] = new Vec3(-1, 1, -2);
        polygon1[2] = new Vec3(-1, -1, -2);
        polygon1[3] = new Vec3(1, -1, -2);

        Vec3[] polygon2 = new Vec3[4];
        polygon2[0] = new Vec3(1, 1, -1);
        polygon2[1] = new Vec3(1, -1, -1);
        polygon2[2] = new Vec3(1, -1, 1);
        polygon2[3] = new Vec3(1, 1, 1);

Can these two polygons of different planes be directly divided into 4 triangles using this library?
Reply all
Reply to author
Forward
0 new messages