Taking a break form the Three.js and svg updates to look at embedding a Rhino 6 viewport in the wpf window.
I had the privilege of spending time at McNeel’s offices last week with the Thronton Tomasetti CORE group and among many things, got a crash course on using Eto within the .net framework.
Here is the first test of implementing:
- zoom extents / selected
- changing camera projections
- toggling grids & guide
Very cool and simple to get going (Im falling in love with the promise of Eto) and will make dashboard and report production incredibly powerful.
A few things I have not yet been able to successfully implement in the WPF hosting that will round off the desired application:
- Mouse Zoom / Pan
- GH geometry does not preview, requires baking
- Shading or anything but wireframe. I know its possible, not sure if the issue is WPF or my implementation.
The biggest issue has been setting the display mode, this is an edited snippet of the steps
public ViewportControl RhinoViewer = new ViewportControl(); //Option 1 (Not working) RhinoViewer.Viewport.DisplayMode = Rhino.Display.DisplayModeDescription.FindByName("Shaded"); //Option 2 (Not working) RhinoViewer.Viewport.DisplayMode = Rhino.Display.DisplayModeDescription.GetDisplayModes();
I know the DisplayModeDescription is working because I have been passing it as an output from the component to check, but I must be doing something wrong in applying the DisplayMode to the viewport.