which is the best way to obtain, from a c++ plug-in, the meshes representing all the surfaces contained in a document?
Several times I need to do that in my code, but I’m always a little bit confused by the severals way it is possible to represent a surface in Rhino. We have of course meshes, but also breps, and extrusions. Are they all ON_Surfaces?
Did I miss some surface type? Maybe some type of surface groups?
I would like to just write a function that allows to its callers to get all the “surfaces” (as mesh representation), open or not, present into the document.
An example would be very appreciated, but if exists, also a link to a page resuming all the possible Rhino supported surface representation would be of help.