Changes in src/triangleintersectionlist.cpp [bcf653:952f38]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/triangleintersectionlist.cpp
rbcf653 r952f38 1 /*2 * Project: MoleCuilder3 * Description: creates and alters molecular systems4 * Copyright (C) 2010 University of Bonn. All rights reserved.5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.6 */7 8 1 /* 9 2 * triangleintersectionlist.cpp … … 16 9 */ 17 10 18 // include config.h19 #ifdef HAVE_CONFIG_H20 #include <config.h>21 #endif22 23 11 #include "Helpers/MemDebug.hpp" 24 12 … … 28 16 29 17 #include "Helpers/Info.hpp" 30 #include "BoundaryMaps.hpp"31 #include "BoundaryPointSet.hpp"32 #include "BoundaryLineSet.hpp"33 #include "BoundaryTriangleSet.hpp"34 18 #include "tesselation.hpp" 35 19 #include "LinearAlgebra/Vector.hpp" … … 39 23 * 40 24 */ 41 TriangleIntersectionList::TriangleIntersectionList(const Vector &x, const Tesselation *surface, const LinkedCell* LC) :25 TriangleIntersectionList::TriangleIntersectionList(const Vector *x, const Tesselation *surface, const LinkedCell* LC) : 42 26 Point(x), 43 27 Tess(surface), … … 86 70 } 87 71 // return reference, if none can be found 88 return Point;72 return *Point; 89 73 }; 90 74 … … 115 99 if (runner != IntersectionList.end()) { 116 100 // if we have found one, check Scalarproduct between the vector 117 Vector TestVector = ( Point) - (*(*runner).second);101 Vector TestVector = (*Point) - (*(*runner).second); 118 102 if (fabs(TestVector.NormSquared()) < MYEPSILON) // 119 103 return true; … … 154 138 // get intersection with triangle plane 155 139 Intersection = new Vector; 156 (*TriangleRunner)->GetClosestPointInsideTriangle(Point, *Intersection);157 //Log() << Verbose(1) << "Intersection between " << Point << " and " << **TriangleRunner << " is at " << *Intersection << "." << endl;140 (*TriangleRunner)->GetClosestPointInsideTriangle(Point, Intersection); 141 //Log() << Verbose(1) << "Intersection between " << *Point << " and " << **TriangleRunner << " is at " << *Intersection << "." << endl; 158 142 IntersectionList.insert( pair<BoundaryTriangleSet *, Vector * > (*TriangleRunner, Intersection) ); 159 143 } … … 167 151 if (DistanceList.empty()) 168 152 for (TriangleVectorMap::const_iterator runner = IntersectionList.begin(); runner != IntersectionList.end(); runner++) 169 DistanceList.insert( pair<double, BoundaryTriangleSet *> (Point .distance(*(*runner).second), (*runner).first) );153 DistanceList.insert( pair<double, BoundaryTriangleSet *> (Point->distance(*(*runner).second), (*runner).first) ); 170 154 171 155 //for (DistanceTriangleMap::const_iterator runner = DistanceList.begin(); runner != DistanceList.end(); runner++)
Note:
See TracChangeset
for help on using the changeset viewer.