Model.adjustnodes#
- Model.adjustnodes(collection, reduction, scale, segment, magnitude_mode)#
Fixes the penetrations by moving only the failed nodes.
- Parameters:
collection (Collection) – The collection containing the entities to be modified.
reduction (double) – The average thickness reduction.
scale (double) – The thickness scale factor.
segment (int) – The segment orientation option.
magnitude_mode (int) –
Determines if a magnitude percentage or a uniform size is to be used.
0 - Uniform size.
1 - Magnitude percentage.
Example#
Move the failed nodes of group “ E2E “#import hm import hm.entities as ent model = hm.Model() groups = hm.Collection(model,ent.Group,"name=E2E") model.adjustnodes( collection=groups reduction=1, scale=0.0, segment=1, magnitude_mode=1 )