Skip to content

CheL3: The level 3 of CHE

moutella edited this page Sep 9, 2021 · 1 revision

This class represents the level 2 of CHE, it stores the a direct reference of each element of a mesh, i.e. sets a half-edge to represent each vertex, and a half-edge to represent each edge.

Attributes

  • _nCurves: stores the amount of boundary curves of the mesh.
  • _tableCurveHalfEdge: Stores the half-edge that represents each curve.
  • _che: References the Che orchestrator class.

Initializers

  • computeCurveHalfEdge()
    • Computes which half-edges represent each curve.

Getters

  • getCurveHalfEdge(curveId)
    • returns the half-edge that represents a boundary curve.

Setters:

  • setSpecialOpposite(heId, nCurve)
    • sets the opposite of a half-edge that does not contain an opposite, to the Boundary Curve it is a part of.

Integrity

  • checkTableCurveHalfEdge()

  • Checks if the value stored in _nCurves is the number of elements in the _tableCurveHalfEdge array.

  • checkOpposites()

  • checks if all the values in the level 1 table of opposites reference an valid half edge or an existing boundary curve.

Clone this wiki locally