Ignore:
Timestamp:
Jan 26, 2010, 12:52:31 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
8d0b25, d34341
Parents:
551a58
Message:

GetDistanceToSurface() separated, filling now with water instead of boron, DissectMoleculeIntoConnectedSubgraphs() now working on list of molecules instead of single one.

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/tesselation.hpp

    r551a58 r478683  
    8787#define TesselPointList list <TesselPoint *>
    8888#define TesselPointSet set <TesselPoint *>
     89
     90#define ListOfTesselPointList list<list <TesselPoint *> *>
    8991
    9092/********************************************** declarations *******************************/
     
    298300    double PickFarthestofTwoBaselines(class BoundaryLineSet *Base);
    299301    class BoundaryPointSet *IsConvexRectangle(class BoundaryLineSet *Base);
    300     map<int, int> * FindAllDegeneratedTriangles();
    301     map<int, int> * FindAllDegeneratedLines();
     302    IndexToIndex * FindAllDegeneratedTriangles();
     303    IndexToIndex * FindAllDegeneratedLines();
    302304    void RemoveDegeneratedTriangles();
    303305    void AddBoundaryPointByDegeneratedTriangle(class TesselPoint *point, LinkedCell *LC);
    304306    int CorrectAllDegeneratedPolygons();
    305307
    306     set<TesselPoint*> * GetAllConnectedPoints(const TesselPoint* const Point) const;
    307     set<BoundaryTriangleSet*> *GetAllTriangles(const BoundaryPointSet * const Point) const;
    308     list<list<TesselPoint*> *> * GetPathsOfConnectedPoints(const TesselPoint* const Point) const;
    309     list<list<TesselPoint*> *> * GetClosedPathsOfConnectedPoints(const TesselPoint* const Point) const;
    310     list<TesselPoint*> * GetCircleOfSetOfPoints(set<TesselPoint*> *SetOfNeighbours, const TesselPoint* const Point, const Vector * const Reference = NULL) const;
    311     list<TesselPoint*> * GetCircleOfConnectedTriangles(set<TesselPoint*> *SetOfNeighbours, const TesselPoint* const Point, const Vector * const Reference) const;
    312     class BoundaryPointSet *GetCommonEndpoint(const BoundaryLineSet * line1, const BoundaryLineSet * line2) const;
    313     list<BoundaryTriangleSet*> *FindTriangles(const TesselPoint* const Points[3]) const;
    314     list<BoundaryTriangleSet*> * FindClosestTrianglesToPoint(const Vector *x, const LinkedCell* LC) const;
    315     class BoundaryTriangleSet * FindClosestTriangleToPoint(const Vector *x, const LinkedCell* LC) const;
     308    TesselPointSet * GetAllConnectedPoints(const TesselPoint* const Point) const;
     309    TriangleSet * GetAllTriangles(const BoundaryPointSet * const Point) const;
     310    ListOfTesselPointList * GetPathsOfConnectedPoints(const TesselPoint* const Point) const;
     311    ListOfTesselPointList * GetClosedPathsOfConnectedPoints(const TesselPoint* const Point) const;
     312    TesselPointList * GetCircleOfSetOfPoints(TesselPointSet *SetOfNeighbours, const TesselPoint* const Point, const Vector * const Reference = NULL) const;
     313    TesselPointList * GetCircleOfConnectedTriangles(TesselPointSet *SetOfNeighbours, const TesselPoint* const Point, const Vector * const Reference) const;
     314    class BoundaryPointSet * GetCommonEndpoint(const BoundaryLineSet * line1, const BoundaryLineSet * line2) const;
     315    TriangleList * FindTriangles(const TesselPoint* const Points[3]) const;
     316    TriangleList * FindClosestTrianglesToVector(const Vector *x, const LinkedCell* LC) const;
     317    BoundaryTriangleSet * FindClosestTriangleToVector(const Vector *x, const LinkedCell* LC) const;
    316318    bool IsInnerPoint(const Vector &Point, const LinkedCell* const LC) const;
     319    double GetDistanceSquaredToTriangle(const Vector &Point, const BoundaryTriangleSet* const triangle) const;
    317320    double GetDistanceSquaredToSurface(const Vector &Point, const LinkedCell* const LC) const;
    318321    bool AddBoundaryPoint(TesselPoint * Walker, const int n);
    319322    DistanceToPointMap * FindClosestBoundaryPointsToVector(const Vector *x, const LinkedCell* LC) const;
    320323    BoundaryLineSet * FindClosestBoundaryLineToVector(const Vector *x, const LinkedCell* LC) const;
    321     TriangleList * FindClosestTrianglesToVector(const Vector *x, const LinkedCell* LC) const;
    322     BoundaryTriangleSet* FindClosestTriangleToVector(const Vector *x, const LinkedCell* LC) const;
    323324
    324325    // print for debugging
Note: See TracChangeset for help on using the changeset viewer.