getModel

pyslm.geometry.getModel(models, mid)

Returns the Model found from a list of Model given a model id and build id.

Parameters:
  • models (List[Model]) – A list of models

  • mid (int) – The selected model id

Return type:

Optional[BuildStyle]

Returns:

The BuildStyle if found or None