Model.surfacesplitwithplane#
- Model.surfacesplitwithplane(surface, plane_normal, plane_base)#
Splits a surface with an infinite plane.
- Parameters:
surface (Entity) – The entity surface to be split.
plane_normal (hwTriple) – The hwTriple object defining the plane normal components to split the surface. User can also supply a Python list of three doubles.
plane_base (hwTriple) – The hwTriple object defining the base point components of the plane to split the surface. User can also supply a Python list of three doubles.
Example#
Split the surface with ID 1 with the xy plane ( normal equals the z - axis )#import hm import hm.entities as ent model = hm.Model() model.surfacesplitwithplane( surface=ent.Surface(model, 1), plane_normal=[0.0, 0.0, 1.0], plane_base=[0.0, 0.0, 0.0], )