HMIN_deleteunusedentity()

Sets a flag to delete unused entities or entities that are not referenced in any other entities for a given entity type.

Syntax

void HMIN_deleteunusedentity (HM_entitytype entity_type, int flag);

Type

HyperMesh hminlib Function

Description

Sets a flag to delete all unused entity or entities that are not referenced in any other entities for a given entity type. HyperMesh deletes unused entities after a model is read. This call must be made before HMIN_readmodel().

Inputs

entity_type
The type of entity to delete unused/not referenced entities.
flag
If 0, HyperMesh does not delete empty components after a model is read.

Examples

To delete all unused sets or all sets not referenced in any of the entities in the model:
HMIN_deleteunusedentity(HM_ENTITYTYPE_SETS,1);
To delete all unused properties or all properties not referenced in any of the entities:
HMIN_deleteunusedentity(HM_ENTITYTYPE_PROPS,1);

Version History