Model.adaptive_wrapper_preview#
- Model.adaptive_wrapper_preview(num_cavities, display_rep=0)#
In case of a cavity mesh, this function can be used to preview cavities which are detected by the adaptive wrap mesher. For each cavity, a unique component is created which holds the shell elements defining the cavity.
This function must be called after
Model.adaptive_wrapper_build().- Parameters:
num_cavities (int) – The number of largest cavities to display. If 0 or not defined, then display all cavities.
display_rep (int) – Reserved for future development.
Example#
Usage of the adaptive_wrapper_build functions#import hm import hm.entities as ent model = hm.Model() # Initialization of wrapper mesh with base mesh elems = hm.Collection(model, ent.Element) model.adaptive_wrapper_init(collection=elems, clean_intersection=1, wrap_type=0) # Build skeletal octree structure model.adaptive_wrapper_build() #Preview all cavities model.adaptive_wrapper_preview() #Clear the preview model.adaptive_wrapper_preview_clear() # Generate mesh model.adaptive_wrapper_mesh(mesh_type=0, DoRemesh=1, RemeshGrowthRate=1.2) # End of wrapper mesh model.adaptive_wrapper_end()