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 ...
Get 3D Programming for Windows® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.