Changeset 1032 for cpp/frams/model/geometry/part_distance_estimator.h
- Timestamp:
- 11/27/20 20:54:50 (2 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/geometry/part_distance_estimator.h
r1031 r1032 56 56 /// tmpPart1 and tmpPart2 are copied for purpose and should not be passed as reference 57 57 /// This function can change some of the properties of those parts 58 /// tmpPart1 will be approximated by surface points. 59 /// The collision between the parts is detected when any of those points is inside tmpPart2 60 /// If tmpPart1 and tmpPart2 are swapped, the calculated distance may slightly differ 58 61 Pt3D directionVersor = tmpPart1.p - tmpPart2.p; 59 62 directionVersor.normalize(); 60 63 61 tmpPart1.p = Pt3D (0);62 tmpPart2.p = Pt3D (0);64 tmpPart1.p = Pt3D_0; 65 tmpPart2.p = Pt3D_0; 63 66 64 67 static double CBRT_3 = std::cbrt(3);
Note: See TracChangeset
for help on using the changeset viewer.