O'Reilly logo

3D Programming for Windows® by Charles Petzold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Manipulating Collections

The Positions collection defined by MeshGeometry3D is of type Point3DCollection, which derives from the Freezable class and includes an event named Changed, all of which implies that any change to the Positions collection—including changes to individual elements of the collection—triggers this event and causes the change to be recognized in the visual appearance of the object.

Dynamically manipulating collections such as Positions is a powerful technique, and I will use it in various ways in future chapters of this book. It is not too early to learn about making this process as efficient as possible, however.

Suppose mesh is an object of type MeshGeometry3D and a Viewport3D is currently displaying a figure based on this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required