Model.display_thickness#
- Model.display_thickness(collection, thickness, update)#
Sets or reviews the thickness assigned to a midsurface.
- Parameters:
collection (Collection) – The collection containing the surface entities to set or review.
thickness (double) – The thickness to assign to the surfaces on the mark. A negative or zero value sets the thickness to 0. This is ignored, if
update=0.update (int) –
0 - Display the thickness of the selected surfaces in the graphics area.
1 - Update the thickness of the selected surfaces.
Examples#
Display the thicknesses of surfaces with IDs 1 , 5 , 6 , 7 , and 10#import hm import hm.entities as ent model = hm.Model() model.display_thickness( collection=hm.Collection(model, ent.Surface, [1, 5, 6, 7, 10]), thickness=0.0, update=0, )
Assign surfaces with IDs 1 , 5 , 6 , 7 , and 10 a thickness of 5.0#import hm import hm.entities as ent model = hm.Model() model.display_thickness( collection=hm.Collection(model, ent.Surface, [1, 5, 6, 7, 10]), thickness=5.0, update=1, )
Remove the thickness attribute from surfaces with IDs 1 , 5 , 6 , 7 , and 10 ( e.g. set thickness to zero )#import hm import hm.entities as ent model = hm.Model() model.display_thickness( collection=hm.Collection(model, ent.Surface, [1, 5, 6, 7, 10]), thickness=-1.0, update=1, )