Model.splitsolidelements#
- Model.splitsolidelements(collection, splittype)#
Divides the given solid elements into hexa or tetra elements.
- Parameters:
collection (Collection) – The collection containing the solid elements entities to be split.
splittype (int) –
A code that indicates the type of split to perform. Valid values are:
1 - Splits a hexa into 8 hexas.
2 - Splits a hexa into 5 or 6 tetras.
3 - Splits a hexa into 24 tetras.
Example#
Split the solid elements with IDs 100 through 110 into hexas#import hm import hm.entities as ent model = hm.Model() model.splitsolidelements( collection=hm.Collection( model, ent.Element, [100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110] ), splittype=1, )