- edited description
Recommended way to obtain all entities from a tag
What would be the best way to get all entities from a tag, of any type (i.e. all entities with data)? The only way that I can see is to use get_entities_by_type_and_tag
but It doesn't seem the best way since I have to pass a type argument.
Comments (5)
-
reporter -
Depending on the dimension of the mesh, you really have a small subset of types to check (if your mesh is of mixed types). So calling
get_entities_by_type_and_tag
in a loop for different types will be the cleanest option.@iulian07 do you think it makes sense to create a new API method for
get_entities_by_tag
that returns all entities with non-default values ? -
reporter @vijaysm OK I see. Thanks.
Just as a reminder, PyTAPS had these
all
enumerations: * http://pythonhosted.org/PyTAPS/ibase.html#enumerations * http://pythonhosted.org/PyTAPS/imesh.html#enumerationsI couldn't understand the implementation, though.
-
@pshriwise Perhaps we can create high level enumerators that make sense in this context in PyMOAB, rather than introducing additional API routines in MOAB directly.
-
@pshriwise Do you think adding some higher level enumerators like this would be useful ? If so, one more for your TODO list!
- Log in to comment