Model.elementsaddelemsfixed#
- Model.elementsaddelemsfixed(collection)#
This functiond changes the densities of selected surface edges and remeshes the adjacent surfaces, according to the specified mode. This is an automesh function.
- Parameters:
collection (Collection) – The collection containing the 1D plot element entities that should be considered to form feature edges in the subsequent element remesh operation.
Note
The use of this function implies that it will be followed by a function that performs remeshing/meshing by elements, such as:
Example#
Remeshe the displayed elements and keep lines formed by plot elements with IDs in range 1600 to 2220#import hm import hm.entities as ent model = hm.Model() remesh_elems_col = hm.CollectionByDisplayed(model, ent.Element) model.setusefeatures(mode=1) oneD_elems_col = hm.Collection(model, ent.Element, list(range(1600, 2221))) model.elementsaddelemsfixed(collection=oneD_elems_col) model.defaultremeshelems( collection=remesh_elems_col, elem_size=3.0, elem_type=2, elem_type_2=2, comp_mode=0, size_control=1, skew_control=1, edge_mesh_type=1, min_size=0.0, max_size=0.0, max_deviation=0.0, max_angle=0.0, previous_settings=0, vertex_angle=30, )