Model.midsurface_remove_plate_base_conflicts#
- Model.midsurface_remove_plate_base_conflicts(reserved1, reserved2)#
Removes conflicts between base surface information and planar or sweep plate information on all surfaces by changing the type of all relevant planar and sweep plates into offset plates.
If a surface is marked both as a base surface and as part of a planar or sweep plate, there is a conflict about how to create the corresponding midsurface. On one hand, it is marked to be base surface, which means the corresponding midsurface should be created by offset with a user-specified distance. On the other hand, it is marked as part of a planar or sweep plate, which means the corresponding midsurface should be inserted in the middle of the plate in a form of a piece of plane or sweep surface. These often contradict each other as only offset plates can contain base surfaces.
- Parameters:
reserved1 (int) – Reserved for future use. Must be set to 0.
reserved2 (int) – Reserved for future use. Must be set to 0.
Example#
Turn all planar and sweep plates that contain base surfaces into offset plates#import hm import hm.entities as ent model = hm.Model() model.midsurface_remove_plate_base_conflicts(reserved1=0, reserved2=0)