void UpdateMeshes()
        {
            if (!m_ogc)
            {
                m_ogc = OutputGeomCache.Create();
            }

            if (m_gc.Assign(m_ogc))
            {
                var gm        = new GeomMesh();
                int meshCount = m_ogc.meshCount;
                for (int mi = 0; mi < meshCount; ++mi)
                {
                    m_ogc.GetMesh(mi, ref gm);
                    UpdateMesh(ref gm, FindOrAddMesh(m_gc.GetPath(mi)));
                }
            }
        }
Example #2
0
 [DllImport("NativeVertexCache")] static extern bool nvcGCGetCurrentCache(IntPtr self, OutputGeomCache ogc);
Example #3
0
 public bool Assign(OutputGeomCache ogc)
 {
     return(nvcGCGetCurrentCache(self, ogc));
 }