WPF and Rhino3dmIO

It is bit off topic.
I want to use Rhino3dIO in WPF.
In RhinoCommon plugin I have mesh simulation with thousands of polygon, points and Lines.
I want to generate same geometry in WPF. So guess I need to use Rhino3dmIO.
and System.Windows.Media.Media3D;

Please give me some basic idea, how I can tie them up.
I need to create a communication between Rhino3dmIO geometry class and System.Windows.Media.Media3D . Should I use System.ICloneable, the way HelixToolKit inplemented for the Mesh reading as attached Mesh3D.cs . I guess I need to read back Rhino3dmIO mesh to System.Windows.Media.Media3D and then read in WPF.

If I am wrong then please give me some idea, how I can make the communication between two.
.Mesh3D.cs (17.4 KB)

Iā€™m not very experienced with the WPF 3d toolset, but I would imagine that you would have to write a routine to convert a Rhino.Geometry.Mesh into a MeshGeometry3d class

https://msdn.microsoft.com/en-us/library/system.windows.media.media3d.meshgeometry3d(v=vs.110).aspx

1 Like

Thanks for the clue, Steve. Much appreciated ! :slight_smile: