Model.solidmap_equivalence2#
- Model.solidmap_equivalence2(collection, tolerance, find_faces)#
Equivalences two sets of nodes, based on a given tolerance and, optionally, does a special
find_facesoperation.For equivalencing, the first set of nodes are from the elements in the solidmap and ^faces components. The second set of nodes consists of all of the nodes not included in the first set but falling within the specified tolerance.
For the
find_facesoperation, 3D elements in the solidmap component are used to find the faces. All pre-existing faces are filtered out and the remaining faces are added to the ^faces component. See the function . This step is useful for continuing with the next solid map operation.- Parameters:
collection (Collection) – The collection containing the element entities.
tolerance (double) – The value of tolerance used for finding nodes during the equivalencing operation.
find_faces (int) –
The flag indicating whether to perform the special faces operation.
0 - Do not perform the find.
1 - Perform the find.
Example#
Equivalence the displayed elements incollectionwith “^faces” nodes use a tolerance of 0.1 and find the new faces#import hm import hm.entities as ent model = hm.Model() model.solidmap_equivalence2( collection=hm.CollectionByDisplayed(model, ent.Element), tolerance=0.1, find_faces=1, )