Model.body_split_with_points#

Model.body_split_with_points(collection, splinepoints, options)#

Splits surfaces or solids using swept lines.

Parameters:
  • collection (Collection) – The collection containing the entities to split. Valid values are solids or surfaces.

  • splinepoints (hwDoubleList) – A list of X, Y, Z coordinates for a series of points. HyperMesh uses these points to generate the splitting surface.

  • options (int) –

    Determines the extent of the split:

    0 - constructs the splitting surface strictly within the boundaries of the selected points (3 points produce a triangular splitting surface, even in a solid cube).

    1 - The splitting surface extends beyond the chosen points to the full extent of the selected solids/surfaces (so 3 points would create a quadrilateral splitting surface within a solid cube).

Example#

Split the solid with ID 1 along a surface passing through points (1, 2, 3), (4, 5, 6),and (7, 8, 9), without extending the cutting surface#
import hm
import hm.entities as ent

model = hm.Model()

model.body_split_with_points(
    collection=hm.Collection(model, ent.Solid, [1]),
    splinepoints=[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0],
    options=0
)