Model.midsurface_offset_by_targets_11#
- Model.midsurface_offset_by_targets_11(surface, mode)#
Offsets a surface according to the targets that are attached to its vertices and edges.
- Parameters:
surface (Entity) – The ID of the surface to offset.
mode (int) –
The mode for the selected surfaces. Valid values are:
1 - Preserves the planarity of the surfaces that were planar before the offset
Any other value - A planar surface might become curved if the targets set to offset the surface are not in one plane.
Example#
Offset the mid - surface from a surface with ID 109#import hm import hm.entities as ent model = hm.Model() model.midsurface_offset_by_targets_11(surface=ent.Surface(model, 109), mode=1)