CurveLoop#

class planestress.pre.geometry.CurveLoop(idx: int)[source]#

Bases: object

Class describing a curve loop of a 2D geometry, i.e. a group of facets.

Parameters:

idx (int) – Curve loop index.

Variables:

facets (list[planestress.pre.geometry.Facet]) – List of facets in the curve loop.

Methods

update_facet

If the curve loop contains the facet old, replace with new.

Attributes

idx

facets

update_facet(old: Facet, new: Facet) None[source]#

If the curve loop contains the facet old, replace with new.

Parameters:
  • old (Facet) – Old Facet to replace.

  • new (Facet) – Facet to replace old with.