static void OnTransparencyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { SurfaceModel3D surface = obj as SurfaceModel3D; surface.SetColorFromIndices(); surface.RecreateBuffers(); surface.RequestRender(EventArgs.Empty); }
static void OnMeshLinesChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { SurfaceModel3D surface = obj as SurfaceModel3D; surface.RequestRender(EventArgs.Empty); }