ISuspendController MechanicalGraphicsWrapper.Suspend()

Prevents the scene to redraw until the Resume controller method was called.

Remarks

This method should be called before mutating the scene to prevent multiple redraws. It should be used in association with a using/with block to ensure the Resume controller method to be called. Indeed, the Dispose method of controller automatically calls the Resume method.

Examples

C#: using(graphics.Suspend()) { // mutating the scene. ... }
Python: with graphics.Suspend(): # mutating the scene. ...

Return Value

Return a disposable ISuspendController.