Model.elementqualitysplitedge#
- Model.elementqualitysplitedge(element, edge_index, optimize=False)#
Splits an edge between two elements.
This function only functions between a
Model.elementqualitysetup()function and aModel.elementqualityshutdown()function.Current element quality criteria for optimization must be set before using this function. The function may be applied at any time without resetting the current quality criteria.
- Parameters:
element (Entity) – The element entity.
edge_index (int) – The ID of the line to split.
optimize (bool) – Option to optimize the node after the split operation is performed (default False).
Example#
Split element with ID 20 and line 2 with optimization#import hm import hm.entities as ent model = hm.Model() collection = hm.Collection(model, ent.Element, populate=True) model.elementqualitysetup_new(collection=collection) element = ent.Element(model, 20) model.elementqualitysplitedge(element=element, edge_index=2, optimize=True) model.elementqualityshutdown(dontsaveflag=0)