On May 29, 2012, at 11:31 AM, phoenix wrote: > > So then the main question remaining is how to distinguish the different > > forms, particularly brep vs brep+csg but also as it'll apply to the other > > formats? Space separated using the names above would be: EVALUATE="bot > > nmg brep+csg" > > It's really quite complicated to distinguish them. How about using a number > to represent a specific type of conversion? For example, if 1 stands for bot, > 2 for nmg, 3 for brep+csg, and we want to test all of the three types of > conversion, set EVALUATE=123; if we want to test bot and nmg only, > EVALUATE=12, and so on. Of course, we need to add notice to the help command > to tell the user of how to set EVALUATE.
I'm not at all a fan of numeric indirection. It's easy to implement but generally very clumsy to use, especially infrequently, and leads to translation errors unless it's interactively prompted. I'd opt for 10 new options specific to each format before going that route.. :) The other options that came to mind were to either go the negative route where you'd have an EXCLUDE option for output formats you don't want (e.g., EXCLUDE="nmg brep+csg", EXCLUDE=bot, etc) or let EVALUATE merely specify primitive types (e.g., EVALUATE="bot brep") and have a second option toggle retention of the CSG hierarchy (e.g., HIERARCHY=1). The latter would probably imply needing to add that support for the bot and nmg types at the same time (so it's consistently all or nothing). > And now since we can't convert the comb to brep, many of the conversions when > using conversion.sh are failed. I want to come out an idea to deal with comb. > Add a function rt_comb_brep() to walk the tree? Or other good ideas? rt_comb_brep() should be consistent with the other routines and generate a brep version of that comb, so that's something for later after surface-surface intersections are working. The brep command could certainly walk a hierarchy, though, and produce a new hierarchy of breps (similar to clone command, perhaps calling it underneath). Alternatively, you could do all that work inside the conversion.sh script manually converting all primitives to the various requested EVALUATE formats. Cheers! Sean ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
