Model.solidmap_solids_set_elemsize#

Model.solidmap_solids_set_elemsize(edge_collection, elemsize)#

This function is for setting the per edge elem size for solid map meshing. The size value specified is only a target value. Depending on solvability, the resulting mesh may take on a modified value. This function can only be called between the Model.solidmap_solids_begin() and Model.solidmap_solids_end() function pair.

Parameters:
  • edge_collection (Collection) – The collection containing the line entities to set the element size for.

  • elemsize (double) – The value to set the elem size to for the selected lines/edges.

Example#

Mesh the solids with IDs 32 and 41 with a default elem size of 2.0 except on edges with IDs 2 and 4 which should have an element size of 1.0#
import hm
import hm.entities as ent

model = hm.Model()

model.solidmap_solids_begin(collection=hm.Collection(model,ent.Solid,[32,41]),options=0,elem_size=2.0)
model.solidmap_solids_set_elemsize(edge_collection=hm.Collection(model,ent.Line,[2,4]),elemsize=1.0)
model.solidmap_solids_end()