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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access