Model.solidmesh12lines#
- Model.solidmesh12lines(lines, density1, density2, density3)#
Creates a solid mesh in a volume formed by twelve lines.
- Parameters:
lines (EntityList) – The list which contains the lines that define a solid.
density1 (int) – The density of the elements in the first direction.
density2 (int) – The density of the elements in the second direction.
density3 (int) – The density of the elements in the third direction.
Example#
Create a solid from lines with IDs 1-12 with uniform density in 3 directions of 1 unit#import hm import hm.entities as ent model = hm.Model() lineList = list(hm.Collection(model, ent.Line, list(range(1, 13)))) model.solidmesh12lines(lines=lineList, density1=1, density2=1, density3=1)