Create viewport and display geometry

Hi everyone,
I’m trying to create a viewport using rhino3dm and display some geometries in it. Is there a way to render or visualize objects directly with rhino3dm, or do I need to use another library alongside it? Any guidance or examples would be greatly appreciated!

Thanks in advance.

Which one API do you use? For JavaScrip I would suggest using ThreeJs in this project GitHub - mcneel/compute.rhino3d.appserver: A node.js server for solving Grasshopper definitions on Rhino Compute you would have an example on how you could implement this. PY/C# i have not tried yet.

Thanks
I need it for c#, i remember long time ago i see winforms app have viewport and can view 3dm file but i don’t find it

No

Yes.

rhino3dm does not contain viewport, drawing nor meshing technology.

You can with RhinoCommon / Rhino.Inside, but not pure rhino3dm. RhinoCommon and/or Rhino.Inside means users of your software will need to have a Rhino installation with a valid license.

You’ll have to find a library with which you can draw 3d and implement everything you need yourself if you intend to use rhino3dm.

Thanks @nathanletwory for clarification

Yes that what i did by using `HelixToolkit