Model.morphremeshedges#
- Model.morphremeshedges(e_collection, starg, size, skew, mesh, preserve, qa)#
Remeshes the selected domains or elements using the parameters specified. If domains are selected, edge domains between selected domains or along free edges will also be remeshed.
Shapes will be preserved no matter if they are saved as node or handle perturbations. Note that the morphs on the undo/redo list are not preserved unless the preserve flag is set.
If auto smoothing is turned on, remeshed domains will also be smoothed.
During remeshing, HyperMorph will preserve nodes which are part of morph constraints or which have handles attached to them.
- Parameters:
e_collection (Collection) – The collection containing the the domains or elements entities.
starg (double) – The target element size. If ≤ 0, the target element size used will be the average element size for the entities on the
e_collection.size (int) –
0 - Do not use size control in remeshing
1 - Use size control
skew (int) –
0 - Do not use skew control in remeshing
1 - Use skew control
mesh (int) –
0 - Mesh with trias
1 - Mesh with quads
2 - Mesh with trias and quads
3 - Mesh with right trias
preserve (int) –
0 - Do not preserve shapes after remesh, do auto QA if set.
1 - Preserve shapes after remesh, do auto QA if set.
2 - Do not preserve shapes after remesh, do not do auto QA if set.
3 - Preserve shapes after remesh, do not do auto QA if set.
qa (int) –
0 - Do not wait during auto quality check
1 - Wait for mouse click during auto quality check
Examples#
Remesh all domains with a target element size of 10.0 model units#import hm import hm.entities as ent model = hm.Model() domain_collection = hm.Collection(model, ent.Domain) model.morphremeshedges( e_collection=domain_collection, starg=10.0, size=1, skew=1, mesh=1, preserve=1, qa=0 )
Remesh all elements with a target element size of 10.0 model units#import hm import hm.entities as ent model = hm.Model() elems_collection = hm.Collection(model, ent.Element) model.morphremeshedges( e_collection=elems_collection, starg=10.0, size=1, skew=1, mesh=1, preserve=1, qa=0 )