Model.create_shell_mesh_features#
- Model.create_shell_mesh_features(collection, feature_angle, reserved)#
Generates plot elements between 2D elements whose normals exceed a specific angle. Connects features to the boundary or to other features, trying to create convex areas. All features generated are placed into a component named “^feature”.
Connected features are created by default for interactive and automatic elements remesh.
- Parameters:
collection (Collection) – The collection containing the 2D element entities. Valid entities are components and elements.
feature_angle (double) – The maximum angle allowed between any two plate elements before a plot element is generated between the shared sides of the two elements.
reserved (double) – Reserved for future use. Must be set to 0.
Example#
Create connected lines represent features on the component named “ hood “ based on a 30.0 degree feature angle#import hm import hm.entities as ent model = hm.Model() # Creating connected lines representing features on the component named "hood" based on a 30.0 degree feature angle comp_collection = hm.Collection(model, ent.Component, "name=hood") model.create_shell_mesh_features( collection=comp_collection, feature_angle=30.0, reserved=0.0 )