How to update geometry preview, and then dispose of geometry inside of a loop C#

Try hiding and unhiding the object in the view. Here’s a hack I did with Python which could easily be ported to C.