> Ah! Alright. > This sure seems a better approach. > I did the following command > search -not -type region > to get all the objects which aren't a region.
I don’t think this is what you probably want either. There are objects above regions (combs that are assemblies/groups) and objects below regions (combs that are shapes and primitives). Processing tools usually want either objects above region, regions, or objects below regions, but I’ve never seen a need for “not regions”. > I tried doing it with model axis.g and there was no change in shape. > So thought maybe it would work with each model. > What I wanted to do was to get a mged object which includes the entire > model, and therefore after conversion we may get an obj file that > renders the entire model. A single object that represents everything or a set of objects that represents everything in the model? For the prior, that would be each top-level objects (run the “tops” command). For the latter, that would be all regions. > Our goal is to reduce the number of .obj files per model. And if > possible keep it to one per model for viewing purpose. > For further tweaking and analyzing like giving a different color to > each part of the model, we can render another version of the model > that has different obj file for different part of the model. Then it sounds like you need both, but the “tops” listing may be what you’re looking for. That’s the starting point on all models — save each top-level out as an obj. Note that doing this will only success approximately 90% of the time for any given object, so you will want some fallback or error handling code. Cheers! Sean ------------------------------------------------------------------------------ _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel