Ignore:
Timestamp:
Aug 4, 2009, 1:48:57 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
7aa922
Parents:
04dcc0
Message:

Fixes for concave hull creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/tesselation.hpp

    r04dcc0 reeefb3  
    9595    bool ContainsBoundaryPoint(class BoundaryPointSet *point);
    9696    bool CheckConvexityCriterion(ofstream *out);
     97    class BoundaryPointSet *GetOtherEndpoint(class BoundaryPointSet *);
    9798
    9899    class BoundaryPointSet *endpoints[2];
     
    116117    bool ContainsBoundaryLine(class BoundaryLineSet *line);
    117118    bool ContainsBoundaryPoint(class BoundaryPointSet *point);
     119    class BoundaryPointSet *GetThirdEndpoint(class BoundaryLineSet *line);
    118120    bool IsPresentTupel(class BoundaryPointSet *Points[3]);
     121    void GetCenter(Vector *center);
    119122
    120123    class BoundaryPointSet *endpoints[3];
     
    202205
    203206    // convex envelope
    204     class BoundaryTriangleSet * FindClosestTriangleToPoint(ofstream *out, Vector *x);
    205207    void TesselateOnBoundary(ofstream *out, PointCloud *cloud);
    206208    void GuessStartingTriangle(ofstream *out);
    207     bool InsertStraddlingPoints(ofstream *out, PointCloud *cloud);
     209    bool InsertStraddlingPoints(ofstream *out, PointCloud *cloud, LinkedCell *LC);
    208210    bool CorrectConcaveBaselines(ofstream *out);
    209211
    210     list<TesselPoint*> * getClosestConnectedAtoms(TesselPoint* Atom, TesselPoint* AtomToCheck);
     212    list<TesselPoint*> * getCircleOfConnectedPoints(ofstream *out, TesselPoint* Point, Vector* Reference);
    211213    list<BoundaryTriangleSet*> *FindTriangles(TesselPoint* Points[3]);
     214    list<BoundaryTriangleSet*> * FindClosestTrianglesToPoint(ofstream *out, Vector *x, LinkedCell* LC);
     215    class BoundaryTriangleSet * FindClosestTriangleToPoint(ofstream *out, Vector *x, LinkedCell* LC);
     216    bool IsInnerPoint(ofstream *out, Vector Point, LinkedCell* LC);
     217    bool IsInnerPoint(ofstream *out, TesselPoint *Point, LinkedCell* LC);
    212218
    213219    PointMap PointsOnBoundary;
     
    227233bool CheckLineCriteriaforDegeneratedTriangle(class BoundaryPointSet *nodes[3]);
    228234bool sortCandidates(class CandidateForTesselation* candidate1, class CandidateForTesselation* candidate2);
    229 TesselPoint* findClosestAtom(const TesselPoint* Atom, LinkedCell* LC);
    230 double getAngle(Vector point, Vector reference, Vector center, Vector OrthogonalVector);
    231 bool IsInnerPoint(Vector Point, class Tesselation *Tess, LinkedCell* LC) ;
    232 bool IsInnerPoint(TesselPoint *Atom, class Tesselation *Tess, LinkedCell* LC);
     235TesselPoint* findClosestPoint(const Vector* Point, LinkedCell* LC);
     236double getAngle(const Vector &point, const Vector &reference, const Vector &center, Vector OrthogonalVector);
    233237
    234238#endif /* TESSELATION_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.