Model.surfacesplitwithcoords#

Model.surfacesplitwithcoords(surf_entity, x1, y1, z1, x2, y2, z2)#

Splits an input surface using a line created between points specified by input coordinates. The points specified by the input coordinates are expected to be in close proximity to the input surface.

Parameters:
  • surf_entity (Entity) – The object describing the surface entity to split.

  • x1 (double) – The x component of the coordinates of the first node.

  • y1 (double) – The y component of the coordinates of the first node.

  • z1 (double) – The z component of the coordinates of the first node.

  • x2 (double) – The x component of the coordinates of the second node.

  • y2 (double) – The y component of the coordinates of the second node.

  • z2 (double) – The z component of the coordinates of the second node.

Example#

Split the surface with ID 12 use a line between points specified by coordinates ( 1.0 , 2.0 , 3.0 ) and ( 4.0 , 5.0 , 6.0 )#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacesplitwithcoords(
    surf_entity=ent.Surface(model, 12), x1=1.0, y1=2.0, z1=3.0, x2=4.0, y2=5.0, z2=6.0
)