Tango.Tango3DReconstruction.ExtractWholeMesh C# (CSharp) Method

ExtractWholeMesh() private method

Extract a mesh for the entire 3D reconstruction, into a suitable format for Unity Mesh.
private ExtractWholeMesh ( Vector3 vertices, Vector3 normals, Color32 colors, int triangles, int &numVertices, int &numTriangles ) : Status
vertices Vector3 On successful extraction this will get filled out with the vertex positions.
normals Vector3 On successful extraction this will get filled out whith vertex normals.
colors UnityEngine.Color32 On successful extraction this will get filled out with vertex colors.
triangles int On succesful extraction this will get filled out with vertex indexes.
numVertices int Number of vertexes filled out.
numTriangles int Number of triangles filled out.
return Status
        internal Status ExtractWholeMesh(
            Vector3[] vertices, Vector3[] normals, Color32[] colors, int[] triangles, out int numVertices,
            out int numTriangles)
        {
            numVertices = 0;
            numTriangles = 0;

            int result = API.Tango3DR_extractPreallocatedFullMesh(
                m_context, vertices.Length, triangles.Length / 3, vertices, triangles, normals, colors,
                out numVertices, out numTriangles);
            return (Status)result;
        }