Model.midsurface_switch_sides_within_plate#
- Model.midsurface_switch_sides_within_plate(collection, reserved1, reserved2)#
Deletes the two components that contain copies of the model surfaces belonging to two sides of a given plate.
Switches the side number to which the surfaces on the input
collectionbelong to the opposite side. If the selected surfaces happen to include surfaces from more than one plate, or surfaces that do not have plate information, the function will not do anything.- Parameters:
collection (Collection) – The collection containing the input surface entities.
reserved1 (int) – Reserved for future use. Must be set to 0.
reserved2 (int) – Reserved for future use. Must be set to 0.
Example#
Set the surfaces with IDs 5 - 7 to belong to the opposite of their current side , assume the input surfaces belong to the same plate#import hm import hm.entities as ent model = hm.Model() surface_collection = hm.Collection(model, ent.Surface, [5, 6, 7]) model.midsurface_switch_sides_within_plate( collection=surface_collection, reserved1=0, reserved2=0 )