Model.morphconvertmv#
- Model.morphconvertmv(ccollection, han, ord, tan, mode, nauto)#
Converts the morph volumes on the collection to hexa elements or vice-versa.
- Parameters:
ccollection (Collection) – The collection containing the morph volumes entities.
han (int) –
0 - Do not create handles for morph volumes
1 - Create handles for morph volumes
ord (int) – Order of morph volumes
tan (int) –
0 - No tangency
1 - Make neighboring morph volume edges continuously tangent
mode (int) –
0 - Morph volumes to hexas
1 - Hexas to morph volumes
nauto (int) –
0 - Do not register all nodes found inside morph volumes
1 - Register all nodes found inside morph volumes
Example#
Convert the morph volumes on the collection to hexa elements or convert the hexa elements on the collection to hypercubes with the given options for handles , order , tangency , and node registration#import hm import hm.entities as ent model = hm.Model() model.morphconvertmv( ccollection=hm.Collection(model, ent.Morphvolume, [1]), han=1, ord=1, tan=1, mode=0, nauto=1, )
Note
Morph volumes will always get converted to second order hexa elements.