Model.sl_meshsurfaces#

Model.sl_meshsurfaces(collection, file, reserved)#

Performs feature-based meshing of surfaces using an XML config file.

Parameters:
  • collection (Collection) – The collection containing the surface entities to mesh.

  • file (hwString) – The full name and path to the XML config file containing the mesh parameters.

  • reserved (int) – Reserved for future development. Must be set to 0.

Example#

Mesh all surfaces using the config file “c:/temp/config.xml”#
import hm
import hm.entities as ent

model = hm.Model()

surface_collection = hm.Collection(model, ent.Surface)

model.sl_meshsurfaces(
    collection=surface_collection, file="c:/temp/config.xml", reserved=0
)