Changes in src/tesselationhelpers.cpp [88b400:bcf653]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tesselationhelpers.cpp
r88b400 rbcf653 1 /* 2 * Project: MoleCuilder 3 * Description: creates and alters molecular systems 4 * 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 1 8 /* 2 9 * TesselationHelpers.cpp … … 5 12 * Author: heber 6 13 */ 14 15 // include config.h 16 #ifdef HAVE_CONFIG_H 17 #include <config.h> 18 #endif 7 19 8 20 #include "Helpers/MemDebug.hpp" … … 165 177 Center += helper[1] * b; 166 178 Center += helper[2] * c; 167 Center.Scale(1./(helper[0]+helper[1]+helper[2])); 179 if (fabs(helper[0]+helper[1]+helper[2]) > MYEPSILON) 180 Center.Scale(1./(helper[0]+helper[1]+helper[2])); 168 181 Log() << Verbose(1) << "INFO: Center (2nd algo) is at " << Center << "." << endl; 169 182 };
Note:
See TracChangeset
for help on using the changeset viewer.