svalinn / dagmc_stats

Tool for calculating and reporting statistics about DAGMC models
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Get a list of EntityHandles for any geometry type #1

Closed gonuke closed 5 years ago

gonuke commented 5 years ago

Write a function that will return a list of EntityHandles that refer to all the EntitySets that represent a given geometric type (e.g. volume, surface, curve, node) in a model

gonuke commented 5 years ago

Psuedo-code:

assume: already loaded model into a MOAB instance "mb"
inputs: g
outputs: list of entityHandles

def get_all_volumes(geom_dim, geom_tag)

     all_entities = mb.get_entities_by_tag_and_type(geom_tag, 0, geom_dim) # check this syntax

    return all_volumes
gonuke commented 5 years ago

This function may not be necessary since it is ultimately a single pyMOAB function call

gonuke commented 5 years ago

Closed because it's handled by #3