Exemplo n.º 1
0
    public void SetPreprocessCGAL(int centerIndex, float radius)
    {
        CGAL.PreprocessDeformMesh(heart, centerIndex, radius, 0.5f);
        IntPtr asdf = CGAL.GetRoiVertices(heart);

        int[] lengthTemp = new int[1];
        Marshal.Copy(asdf, lengthTemp, 0, 1);
        int length = lengthTemp[0];

        int[] verticesIndex = new int[length];
        Marshal.Copy(asdf, verticesIndex, 1, length);
        Debug.Log(verticesIndex[0]);
        Debug.Log(verticesIndex.Length);
    }