Model.surfacemarksplitwithplane#
- Model.surfacemarksplitwithplane(collection, plane_normal, plane_base)#
Splits a group of surfaces with an infinite plane.
- Parameters:
collection (Collection) – The collection containing the surface entities.
plane_normal (hwTriple) – The hwTriple object defining the plane normal components to split the surfaces. 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 surfaces. User can also supply a Python list of three doubles.
Example#
Split surfaces with IDS 10 and 20 with the xy plane ( normal equals the z - axis )#import hm import hm.entities as ent model = hm.Model() model.surfacemarksplitwithplane( collection=hm.Collection(model, ent.Surface, [10, 20]), plane_normal=[0.0, 0.0, 1.0], plane_base=[0.0, 0.0, 0.0], )