Changeset 1056 for cpp/frams/model/geometry/part_distance_estimator.h
- Timestamp:
- 12/28/20 02:06:52 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/geometry/part_distance_estimator.h
r1032 r1056 7 7 8 8 #include "frams/model/geometry/meshbuilder.h" 9 #include <cmath> 9 10 10 11 class PartDistanceEstimator … … 54 55 static double calculateDistance(Part tmpPart1, Part tmpPart2, double distanceTolerance, double relativeDensity) 55 56 { 56 /// tmpPart1 and tmpPart2 are copied for purpose and should not be passed as reference 57 /// This function can change some of the properties of those parts 57 /// tmpPart1 and tmpPart2 are copied for purpose and should not be passed as reference. 58 /// This function can change some of the properties of those parts. 58 59 /// tmpPart1 will be approximated by surface points. 59 /// The collision between the parts is detected when any of th ose points is inside tmpPart260 /// If tmpPart1 and tmpPart2 are swapped, the calculated distance may slightly differ 60 /// The collision between the parts is detected when any of these points is inside tmpPart2. 61 /// If tmpPart1 and tmpPart2 are swapped, the calculated distance may slightly differ. 61 62 Pt3D directionVersor = tmpPart1.p - tmpPart2.p; 62 63 directionVersor.normalize();
Note: See TracChangeset
for help on using the changeset viewer.