Model.solidmesh9lines#
- Model.solidmesh9lines(lines, density1, density2, density3)#
Creates a solid mesh on a volume formed by nine lines.
- Parameters:
lines (EntityList) – The list which contains 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 mesh in the volume formed by connected lines with IDs 10, 11, 12, connected lines with IDs 1, 2, and 3, and connecting lines with IDs 20, 21, and 22, with densities 3, 8 and 12#import hm import hm.entities as ent model = hm.Model() lineList = [ent.Line(model, id) for id in [10, 11, 12, 1, 2, 3, 20, 21, 22]] model.solidmesh9lines(lines=lineList, density1=3, density2=8, density3=12)