Ignore:
Timestamp:
Apr 12, 2010, 4:44:29 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
4283d0
Parents:
41c00d
git-author:
Frederik Heber <heber@…> (04/12/10 16:35:12)
git-committer:
Frederik Heber <heber@…> (04/12/10 16:44:29)
Message:

Changes to BoundaryTriangleSet and CandidateForTesselation.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/tesselation.hpp

    r41c00d ra732ff  
    4242
    4343#define DoTecplotOutput 1
    44 #define DoRaster3DOutput 0
     44#define DoRaster3DOutput 1
    4545#define DoVRMLOutput 0
    4646#define TecplotSuffix ".dat"
     
    163163    bool IsPresentTupel(const BoundaryPointSet * const Points[3]) const;
    164164    bool IsPresentTupel(const BoundaryTriangleSet * const T) const;
     165    void SetTopNode(const BoundaryTriangleSet * const topnode);
    165166
    166167    class BoundaryPointSet *endpoints[3];
    167168    class BoundaryLineSet *lines[3];
     169    const BoundaryTriangleSet *top; //!< triangle was instantiated during tesselation from this triangle
     170    double AngleFromTop;
    168171    Vector NormalVector;
    169172    Vector SphereCenter;
     
    249252  public :
    250253  CandidateForTesselation(BoundaryLineSet* currentBaseLine);
    251   CandidateForTesselation(TesselPoint* candidate, BoundaryLineSet* currentBaseLine, Vector OptCandidateCenter, Vector OtherOptCandidateCenter);
     254  CandidateForTesselation(TesselPoint* candidate, BoundaryLineSet* currentBaseLine, BoundaryPointSet *point, Vector OptCandidateCenter, Vector OtherOptCandidateCenter);
    252255  ~CandidateForTesselation();
    253256
     
    255258
    256259  TesselPointList pointlist;
    257   BoundaryLineSet *BaseLine;
     260  const BoundaryLineSet * BaseLine;
     261  const BoundaryPointSet * ThirdPoint;
     262  const BoundaryTriangleSet *T;
     263  Vector OldCenter;
    258264  Vector OptCenter;
    259265  Vector OtherOptCenter;
     
    289295    void FindStartingTriangle(const double RADIUS, const LinkedCell *LC);
    290296    void FindSecondPointForTesselation(class TesselPoint* a, Vector Oben, class TesselPoint*& OptCandidate, double Storage[3], double RADIUS, const LinkedCell *LC);
    291     void FindThirdPointForTesselation(Vector &NormalVector, Vector &SearchDirection, Vector &OldSphereCenter, CandidateForTesselation &CandidateLine, const class TesselPoint  * const ThirdNode, const double RADIUS, const LinkedCell *LC) const;
     297    void FindThirdPointForTesselation(Vector &NormalVector, Vector &SearchDirection, Vector &OldSphereCenter, CandidateForTesselation &CandidateLine, const class BoundaryPointSet  * const ThirdNode, const double RADIUS, const LinkedCell *LC) const;
    292298    bool FindNextSuitableTriangle(CandidateForTesselation &CandidateLine, BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell *LC);
    293299    int CheckPresenceOfTriangle(class TesselPoint *Candidates[3]) const;
Note: See TracChangeset for help on using the changeset viewer.