# On RenderMesh: generation method and diff vs default mesh

**URL:** <https://discourse.mcneel.com/t/on-rendermesh-generation-method-and-diff-vs-default-mesh/23088>\
**Category:** Rhino Developer\
**Tags:** rendermesh, opennurbs\
**Created:** [July 31, 2015, 11:17pm UTC](https://discourse.mcneel.com/t/on-rendermesh-generation-method-and-diff-vs-default-mesh/23088 "2015-07-31T23:17:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yifan](https://avatars.discourse-cdn.com/v4/letter/y/f19dbf/32.png) [@Yifan](https://discourse.mcneel.com/u/Yifan)\
**Post date:** [July 31, 2015, 11:17pm UTC](https://discourse.mcneel.com/t/on-rendermesh-generation-method-and-diff-vs-default-mesh/23088/1 "2015-07-31T23:17:50Z")

</div>

Hello,

I am developing on the free OpenNURBS toolkit. I am trying to extract mesh data from NURBS. I know with the free openNURBS toolkit does not create mesh. A work around I am trying is to get the mesh data from rendermesh. It seems that as long as a user has ever used shaded mode, the model will have rendermesh in every breps and extrusion. I am not exactly sure though, so I’d appreciate it if anyone can confirm this?  
Another assumption of this work around is that rendermesh looks the same as the defaultmesh( I assume default mesh is the mesh you get by calling createMesh). Is it true that rendermesh is the same as defaultmesh?

Thanks a lot!  
Yifan

---

<div class="post-metadata">

**Author:** ![menno](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/menno/32/770384_2.png) [@menno](https://discourse.mcneel.com/u/menno)\
**Post date:** [August 1, 2015, 6:54am UTC](https://discourse.mcneel.com/t/on-rendermesh-generation-method-and-diff-vs-default-mesh/23088/2 "2015-08-01T06:54:50Z")

</div>

Not necessarily, because a user can choose not to save the render mesh with the option “save small”. Also, the render mesh sons can be customized, so the mesh need not be the default mesh.  
Just out of curiosity, if you rely on a file that was generated in Rhino, why do you use opennurbs, instead of the full Rhino sdk?

---

<div class="post-metadata">

**Author:** ![Yifan](https://avatars.discourse-cdn.com/v4/letter/y/f19dbf/32.png) [@Yifan](https://discourse.mcneel.com/u/Yifan)\
**Post date:** [August 3, 2015, 2:37am UTC](https://discourse.mcneel.com/t/on-rendermesh-generation-method-and-diff-vs-default-mesh/23088/3 "2015-08-03T02:37:13Z")

</div>

Thank you Menno! To answer your question, we are developing a larger platform that supports more file formats than just Rhino. Our software architecture works better with OpenNurbs toolkit so we’d like to evaluate it’s feasibility first.

A follow up question is what generates default mesh? in what scenario will default mesh be missing?

Thank you!  
Yifan

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/772741_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [August 3, 2015, 4:14pm UTC](https://discourse.mcneel.com/t/on-rendermesh-generation-method-and-diff-vs-default-mesh/23088/4 "2015-08-03T16:14:41Z")

</div>

Hi Yifan,

Here is a code snipped that might help you.

[http://wiki.mcneel.com/developer/onrendermesh](http://wiki.mcneel.com/developer/onrendermesh)

> [@Yifan](#):
>
> A follow up question is what generates default mesh? in what scenario will default mesh be missing?

The most common way to generate render meshes in Rhino is to either Shade or Render a viewport. Meshes can be generated on other indirect ways too.

Render meshes might be missing from a file if the user never shaded or renders a viewport. Also, uses often run the “SaveSmall” command to purge models of their cached render meshes to save disk space.

– Dale

---

<div class="post-metadata">

**Author:** ![Yifan](https://avatars.discourse-cdn.com/v4/letter/y/f19dbf/32.png) [@Yifan](https://discourse.mcneel.com/u/Yifan)\
**Post date:** [August 3, 2015, 7:54pm UTC](https://discourse.mcneel.com/t/on-rendermesh-generation-method-and-diff-vs-default-mesh/23088/5 "2015-08-03T19:54:06Z")

</div>

Thanks Dale.

We are switching to developing a plugin in light of your information.

Regards,  
Yifan
