Changeset 1056 for cpp/frams/genetics/fS/fS_general.cpp
- Timestamp:
- 12/28/20 02:06:52 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/frams/genetics/fS/fS_general.cpp ¶
r1032 r1056 12 12 #include "../genooperators.h" 13 13 #include "common/nonstd_math.h" 14 #include "../../model/geometry/part_distance_estimator.h"14 #include <frams/model/geometry/part_distance_estimator.h> 15 15 16 16 int fS_Genotype::precision = 4; … … 482 482 Pt3D scale; 483 483 calculateScale(scale); 484 return GeometryUtils::isSolidPartScaleValid(partShape, scale );484 return GeometryUtils::isSolidPartScaleValid(partShape, scale, true); //2020-12: mac->JS: I set the last argument to true because this is how the original code worked, but I think it should be ensureCircleSection? 485 485 } 486 486 … … 910 910 Part *parentTmpPart = PartDistanceEstimator::buildTemporaryPart(parent->partShape, parentScale, parent->getRotation()); 911 911 912 double result;913 912 tmpPart->p = state->v; 914 result = PartDistanceEstimator::calculateDistance(*tmpPart, *parentTmpPart, genotypeParams.distanceTolerance, genotypeParams.relativeDensity); 915 913 double result = PartDistanceEstimator::calculateDistance(*tmpPart, *parentTmpPart, genotypeParams.distanceTolerance, genotypeParams.relativeDensity); 916 914 917 915 delete tmpPart;
Note: See TracChangeset
for help on using the changeset viewer.