public void ClearPrimitives() { foreach ( Primitive P in m_Primitives ) P.Dispose(); m_Primitives.Clear(); }