Exemple #1
0
    public List <int> FindPaintedTriangles(DMesh3 mesh, int colorId)
    {
        List <int> indices = FaceGroupUtil.FindTrianglesByGroup(mesh, colorId);

        Debug.Log($"Painted Triangles: {indices.Count}");

        if (indices.Count <= 0)
        {
            Debug.Log("No colored triangles found");
        }
        return(indices);
    }