Model.processflange#
- Model.processflange(surf_collection, point_collection, distance_tol, angle_tol)#
Given a set of fixed points, this function splits the edges of surfaces by adding a fixed point on the edge. The projection of the point is controlled by tolerances for the maximum distance and maximum deviation from the normal.
- Parameters:
surf_collection (Collection) – The collection containing the surface entities.
point_collection (Collection) – The collection containing the point entities.
distance_tol (double) – The radial distance to search around each point for surface edges to project to.
angle_tol (double) – The maximum deviation from the normal when projecting the point to the edge.
Note
The function accepts an empty
surf_collection. In this case, the function uses any surfaces to which any of the points is associated. If none of the points is associated to a surface, then the function fails.Example#
Process a flange on surface with ID 91 using fixed point IDs 25 - 30 , within a maximum distance of 1.1 and within a maximum deviation from normal of 5.0 degrees#import hm import hm.entities as ent model = hm.Model() model.processflange( surf_collection=hm.Collection(model, ent.Surface, [91]), point_collection=hm.Collection(model, ent.Point, [25, 26, 27, 28, 29, 30]), distance_tol=1.1, angle_tol=5.0, )