MainModel3Dgroup.Children.Clear(); double[,] val = CreatePoints(newval); xmin = 0; xmax = val.GetUpperBound(0); dx = 1; zmin = 0; zmax = val.GetUpperBound(1); dz = 1; texture_xscale = (xmax - xmin); texture_zscale = (zmax - zmin); // Create an altitude map. CreateAltitudeMap(val); // Create the model. DefineModel(MainModel3Dgroup, val); // Add the group of models to a ModelVisual3D. ModelVisual3D model_visual = new ModelVisual3D(); model_visual.Content = MainModel3Dgroup; MainViewport.Children.Clear(); // Display the main visual to the viewportt. MainViewport.Children.Add(model_visual);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)