Documentation of 'jvx.geom.PwMatching' Java class
PwMatching ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.geom

Class PwMatching

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PjWorkshopIf


    public class PwMatching
    extends PjWorkshop
    Class to match the triangles of a PgElementSet to pairs of neighboured triangles. Matched triangles are each other's 0-th neighbour triangle.
    See Also:
    Serialized Form
    Author:
    Ulrich Reitebuch
    Version:
    29.10.03, 1.00 created (ur)
    • Constructor Detail

      • PwMatching

        public PwMatching()
        Constructor.
        Author:
        Ulrich Reitebuch
        Version:
        29.10.03, 1.00 created (ur)
    • Method Detail

      • setGeometry

        public void setGeometry(PgElementSet geom)
        Store the geometry as PgElementSet to this workshop.
        Author:
        Ulrich Reitebuch
        Version:
        29.10.03, 1.00 created (ur)
      • setPreMatching

        public void setPreMatching(int type)
        Define the type of pre-matching.
      • init

        public void init()
        Description copied from class: PjWorkshop
        Initialize and reset project, stops the running animation if any. Does not reset any registered display nor geometry. They must be reset individually in each subclass.
        Overrides:
        init in class PjWorkshop
      • reset

        public void reset()
        Reset the workshop to its initial status.
        Overrides:
        reset in class PjWorkshop
        Author:
        Ulrich Reitebuch
        Version:
        29.10.03, 1.00 created (ur)
      • dijkstraMatching

        public void dijkstraMatching()
        Generate dijkstra distances for the vertices and match triangles, that share a common edge of the dijkstra level lines; somewhere triangles might have more possible matching partners, these will matched to one of them. Unmatched triangles are tried to match by greedy matching afterwards, so that every unmatched triangle will have matched neighbour triangles only. The matching is only stored to the internal data structure.
        Author:
        Ulrich Reitebuch
        Version:
        29.10.03, 1.00 created (ur)
      • conservativeMatching

        public void conservativeMatching()
        Store matchings of triangles, that are encoded in the 0-th neighbours allready; unmatched triangles are tried to match by greedy matching afterwards, so that every unmatched triangle will have matched neighbour triangles only. The matching is only stored to the internal data structure.
        Author:
        Ulrich Reitebuch
        Version:
        29.10.03, 1.00 created (ur)
      • greedyMatching

        public void greedyMatching()
        For all unmatched triangles try to find an unmatched neighbour triangle and match those. The matching is only stored to the internal data structure.
        Author:
        Ulrich Reitebuch
        Version:
        29.10.03, 1.00 created (ur)
      • turnTriangles

        public void turnTriangles()
        Change the internal order of indices of the vertices of all triangles such, that the 0-th neighbour is the matching partner according to the internal data structure of this class.
        Author:
        Ulrich Reitebuch
        Version:
        29.10.03, 1.00 created (ur)
      • match

        public void match()
        Invoke a matching of triangles and turn triangles according to the matching.
        Author:
        Ulrich Reitebuch
        Version:
        29.10.03, 1.00 created (ur)
      • matchAllInner

        public void matchAllInner()
        Invoke a Matching of all inner triangles. Boundaries of the elemtSet are closed by additional triangles, so the new elementSet has a perfect matching. After removing the new triangles again, there may be unmatched triangles at the boundary.
        Author:
        Ulrich Reitebuch
        Version:
        29.10.03, 1.00 created (ur)
      • makeQuadrangulation

        public void makeQuadrangulation()
        Find in a triangulation pairs of matched triangles, indicated by beeing each other's 0-th neighbour, and jaoin those to quadrangles.
        Author:
        Ulrich Reitebuch
        Version:
        05.11.03, 1.00 created. (ur)
      • scrambleTriangles

        public void scrambleTriangles()
        Change the internal order of indices of the vertices in all triangles by random to get arbitrary examples for testing the algorithm.
        Author:
        Ulrich Reitebuch
        Version:
        07.11.03, 1.00 created (ur)
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.