Say Hello to Aviary


(David Mans) #24

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:

  • Antialiasing
  • 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()[0];

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.

(Steve Baer) #25

3 posts were split to a new topic: Viewport Control Bugs


What is formatting platform?


GH cant find all components (despite meticulous unblocking of library files). Ideas anyone?


Thanks for the great tool @DavidMans! Referring to your January 31 GIF. It seems to be a bit less smooth when you use a slider in window to do those same adjustments, is that right? or am I wrong?

(David Mans) #29

Yes, when the slider is being moved a html file is being written with the full three.js scene then read by a web browser component and then drawn to the window. This does result in a delay. Some minor improvements in the speed will be gained in the next release, where the scene and the geometry will be written to separate files. However there will always be somewhat of a delay. The alternate method of using the WPF viewer will be faster, but with less options. And the third option, available in Rhino 6 only, will using the Rhino viewport in a window as a control. This will be the fastest of all the options, but is just a viewer to Rhino, which means that you will always need Rhino and GH to be open. The advantage the Three.js viewer has, is that the model is written to the file and can be opened in any browser.


@laurent_delrieu This looks very interesting. I’m really curious on how you managed to cluster the meshes, can you shed some light on this?

Mesh clustering
(Laurent Delrieu) #31

Here the explanation


Hi, I was wondering if Aviary(or any of its libraries) can be use for playing a video file,something similar to the Dashboard.Control.Frame for Bitmaps?

(David Mans) #33

Antonio, not currently.
The only way would be to use the browser component, which is just a simple WPF web browser.
I’ll look into adding a component in for video playing next release.


Hello David, Do you have an example of the implementation of aviary to save to three.js? I’m confused on how to achieve that,


(David Mans) #35

Unfortunately it is still under development and not available in the current release.
I paused development due to other obligations and the need to develop a new version of Mesh+
Hopefully I will get back to developing Aviary shortly and release an update.
There are a lot of improvements to bitmap manipulation coming as well.


Thanks! I´m sure will worth the wait, also a new mesh+ sounds exiting!!


It’s been a while since I followed up on this thread, looks like there has been a bunch of development. Looking forward to testing out the new versions!


(Michael Pryor) #38

New Mesh+, yes!



Is it possible to export as SVG a chart??


Is it possible to export a chart as SVG?


(David Mans) #41

Not at the moment, the closest you can get is to use the print component and print to pdf.



thanks for answering

(Matus Peklansky) #43

Hi David,

first of all, thanks a lot for this amazing plugin, according what I have seen in sample files it does exactly what I was looking for in Grashopper.

Maybe this is primitive question, but after long struggling I have to ask if you have got any idea what is wrong with my data in the picture? Why it is not visible in Launch window, or it is just visible as 0. Is my data format wrong? I assumed that for one data branch, it should create and visualize one bar of values in the branch. Am I wrong?

Thanks for a response,