Model.validatefeatures#

Model.validatefeatures(collection)#

Validates selected features entities and flags them for re-detection.

Parameters:

collection (Collection) – The collection containing the feature entities.

Examples#

Validate features with IDs 1 - 3#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the shell elements
filter_features = hm.FilterByEnumeration(ent.Feature, list(range(1, 4)))
collection_features = hm.Collection(model, filter_features)

model.validatefeatures(collection=collection_features)
Validate all 2D holes ( see` features` _ data names for the full list of valid config values )#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the 2D holes features
features = hm.Collection(model, ent.Feature)
holes2D_collection = hm.Collection([f for f in features if f.config == 4])

model.validatefeatures(collection=holes2D_collection)