Model.findedges1#

Model.findedges1(collection, edge_type, created_entity, smooth, break_angle)#

Finds and displays element free or T-connected edges as either free lines or plot elements in a new component named ^edges.

Parameters:
  • collection (Collection) – The collection containing the entities.

  • edge_type (int) –

    The type of edges to find:

    0 - Free edges.

    1 - T-connected edge

  • created_entity (int) –

    The entity type to create on the found edges:

    0 - Plot elements

    1 - Free lines

  • smooth (int) –

    The smoothing to use when created_entity is 1:

    0 - No smoothing.

    1 - Smooth the lines through the nodes.

  • break_angle (double) – The angle specifying when to break the feature line created into multiple line segments when created_entity=1. When the angle between adjoining elements along the feature is larger than the specified value, it splits the line into multiple segments.

Example#

Check the free edges on all of the elements contained in the component fender and create plot elements#
import hm
import hm.entities as ent

model = hm.Model()

comps = hm.Collection(model, ent.Component, "name=fender")

model._findedges1(
  collection=comps,
  edge_type=0,
  created_entity=1,
  smooth=0,
  break_angle=0
)