Model.solidmap_equivalence#
- Model.solidmap_equivalence(tolerance, find_faces)#
It equivalences two sets of nodes, based on a given tolerance and, optionally, does a special
find_facesoperation. This function is used by the solid mapping algorithm.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 functionModel.solid_facesfind(). This step is useful for continuing with the next solid map operation.- Parameters:
tolerance (double) – The tolerance to use for finding nodes in the equivalence operation.
find_faces (int) –
A flag indicating whether to perform the special faces operation. Valid values are:
0 - Do not perform the find.
1 - Perform the find.
Example#
Equivalence the solidmap and “^faces” nodes use a tolerance of 0.01 and find the new faces#import hm import hm.entities as ent model = hm.Model() model.solidmap_equivalence(tolerance=0.01, find_faces=1)