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)));
                }
            }
        }
Beispiel #2
0
 [DllImport("NativeVertexCache")] static extern bool nvcGCGetCurrentCache(IntPtr self, OutputGeomCache ogc);
Beispiel #3
0
 public bool Assign(OutputGeomCache ogc)
 {
     return(nvcGCGetCurrentCache(self, ogc));
 }