Model.surfaceaddpointsfixed#

Model.surfaceaddpointsfixed(surfacecollection, pointcollection, tolerance, createplot)#

Adds meshing fixed points to a collection of surfaces, either by breaking edges or adding interior fixed points. The coordinates for the fixed points are supplied by a collection of points.

Parameters:
  • surfacecollection (Collection) – The collection containing the surface entities to modify.

  • pointcollection (Collection) – The collection containing the point entities to add.

  • tolerance (double) – The closeness tolerance used to decide which points belong to a surface. A point can be added to more than one surface out of the surfacecollection.

  • createplot (int) –

    Defines whether or not a plot element will be created between two points. It will be in the “^welds” component.

    \(= 0\) - Do not create a weld element

    \(\ne 0\)- Create a weld element

Example#

Add point with ID 9 to surface with ID 190#
import hm
import hm.entities as ent

model = hm.Model()

model.surfaceaddpointsfixed(
    surfacecollection=hm.Collection(model, ent.Surface, [190]),
    pointcollection=hm.Collection(model, ent.Point, [9]),
    tolerance=0.05,
    createplot=1,
)