Model.solid_fixedptsmaker#

Model.solid_fixedptsmaker(surf_collection, comp_collection, tol_rel)#

Used in the solidmap panel to create fixed points on the edges of selected components. These points are generated from nodes on the component’s edges that fall within a specified tolerance, and are meant to be transitory.

Parameters:
  • surf_collection (Collection) – The collection containing the surface entities. Fixed points are to be made on the edges of these surfaces.

  • comp_collection (Collection) – The collection containing the component entities. Nodes of the elements in the components of the collecion are considered for making fixed points.

  • tol_rel (double) – Tolerance relative to the average element size calculated from the elements in the inputted components.

Example#

Create fixed points on the edges of the surface with ID 10 considering nodes and elements from the component with ID 3 with a relative tolerance of 5.0#
import hm
import hm.entities as ent

model = hm.Model()

model.solid_fixedptsmaker(
    surf_collection=hm.Collection(model, ent.Surface, [10]),
    comp_collection=hm.Collection(model, ent.Component, [3]),
    tol_rel=5.0,
)