Changeset ff4611 for molecuilder/src/tesselationhelpers.cpp
- Timestamp:
- Dec 19, 2009, 7:32:24 PM (16 years ago)
- Children:
- eda56a
- Parents:
- f78203
- File:
-
- 1 edited
-
molecuilder/src/tesselationhelpers.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/tesselationhelpers.cpp
rf78203 rff4611 558 558 * @return point which is second closest to the provided one 559 559 */ 560 TesselPoint* FindSecondClosest Point(const Vector* Point, const LinkedCell* const LC)560 TesselPoint* FindSecondClosestTesselPoint(const Vector* Point, const LinkedCell* const LC) 561 561 { 562 562 Info FunctionInfo(__func__); … … 613 613 * @return point which is closest to the provided one, NULL if none found 614 614 */ 615 TesselPoint* FindClosest Point(const Vector* Point, TesselPoint *&SecondPoint, const LinkedCell* const LC)615 TesselPoint* FindClosestTesselPoint(const Vector* Point, TesselPoint *&SecondPoint, const LinkedCell* const LC) 616 616 { 617 617 Info FunctionInfo(__func__); … … 639 639 helper.CopyVector(Point); 640 640 helper.SubtractVector((*Runner)->node); 641 double currentNorm = helper. Norm();641 double currentNorm = helper.NormSquared(); 642 642 if (currentNorm < distance) { 643 643 secondDistance = distance; … … 809 809 TesselPoint *Walker = NULL; 810 810 int i; 811 Vector *center = cloud->GetCenter();811 Vector *center = new Vector(); //cloud->GetCenter(); 812 812 if (rasterfile != NULL) { 813 813 //Log() << Verbose(1) << "Writing Raster3D file ... "; … … 866 866 } 867 867 *tecplot << "\", N=" << TesselStruct->PointsOnBoundary.size() << ", E=" << TesselStruct->TrianglesOnBoundary.size() << ", DATAPACKING=POINT, ZONETYPE=FETRIANGLE" << endl; 868 int i=0; 869 for (cloud->GoToFirst(); !cloud->IsEnd(); cloud->GoToNext(), i++); 868 int i=cloud->GetMaxId(); 870 869 int *LookupList = new int[i]; 871 870 for (cloud->GoToFirst(), i=0; !cloud->IsEnd(); cloud->GoToNext(), i++)
Note:
See TracChangeset
for help on using the changeset viewer.
