[Smtk-developers] cmb_v4 update

David Thompson david.thompson at kitware.com
Thu Dec 4 21:58:19 EST 2014


> ... do you think a "group" operator should be the "universal operators" ? Basically, this will be the operator to allow user to group entities based on some constraints or no constraints, such as face-group or edge-group in discrete bridge.

We could go either way but there is a caveat. If we make creating groups a "universal" operation, they would exist in the SMTK model Manager instance but not in the modeling kernel. So if we save entities back to a CAD file, the groups will not be preserved. On the other hand, I can see that it would allow grouping even when a bridge didn't support creating groups.

I haven't tested it, but it's possible we could create a universal "create group" operator and then override it on bridges that support the creation of groups. The thing that worries me about this is what we would do when someone asked for the modeling-kernel handle for the SMTK-only group...

>> I would have changed pqModelBuilderViewContextMenuBehavior::setBlockColor (and the other methods that change the visibility and opacity) so that they invoke the operator, but I don't see how to obtain the SMTK UUID associated the block in question. Can you give me a call tomorrow so we can discuss how to make that work?
> 
> Sure, I will call you tomorrow morning. BTW, I am very close to get some UI working for ModelEntityItem, hopefully you could give me some feedbacks on that.

Cool. See you then,

	David


More information about the Smtk-developers mailing list