Model.solid_cavity_detect_local#
- Model.solid_cavity_detect_local(collection, face_id, fill_flag)#
Extracts cavity surfaces based on input rims and a face of that cavity.
This function must be followed by a call to
Model.solid_cavity_detect_end().- Parameters:
collection (Collection) – The collection containing the line entities of the surface edges defining the rims of the cavity.
face_id (unsigned int) – The ID of a surface within the cavity.
fill_flag (unsigned int) –
0 - Creates a region entity.
1 - Creates a solid from the cavity.
Example#
Extract the cavity and creates a solid represent that cavity, with IDs of rim edges 1724 , 210 , 961 and 333 , and face ID 73#import hm import hm.entities as ent model = hm.Model() model.solid_cavity_detect_start( collection=hm.Collection(model, ent.Surface), all_cavities=1, get_n_cavities=0, max_radius=-1, max_length=-1, min_concavity=0.5, ) model.solid_cavity_detect_local(collection=hm.Collection(model,ent.Line,[1724, 210, 961, 333]),face_id=73,fill_flag=1) model.solid_cavity_detect_end()