Model.findattachedelementfaces#

Model.findattachedelementfaces(collection, table_id)#

Returns information to a table about solid elements attached to quad/tria element. The table must be created with 6 integer columns using the Model.tablecreate function. The output to each column is as follows:

  1. Input element IDs

  2. Attached element IDs

  3. Attached element face IDs

  4. Attached element configs

  5. Input element collector IDs

  6. Input element normal reversed flags

Parameters:
  • collection (Collection) – The collection containing the input quad/tria element entities.

  • table_id (int) – The table ID to output the results to. The table must have 6 integer columns.

Example#

Find the elements attached to all tria3 and quad4 elements#
import hm
import hm.entities as ent

model = hm.Model()

model.tablecreate(
    name="attachedelementtable",
    color=1,
    config=1,
    string_array=["INT", "INT", "INT", "INT", "INT", "INT"],
    number_of_rows=0,
)

table = hm.Collection(model, ent.Table, "name=attachedelementtable")[0]

tableId = table.id

elems = hm.Collection(model,ent.Element,"config IN(104,103)")

model.findattachedelementfaces(collection=elems, table_id=tableId)