Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/CoordinateSystem3D.cpp @ 986:4e2de6b8a70b
Uninit. var.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 09 Sep 2019 10:41:27 +0200 |
parents | 32eaf4929b08 |
children | 1f74bc3459ba |
comparison
equal
deleted
inserted
replaced
985:bb13876e529a | 986:4e2de6b8a70b |
---|---|
204 | 204 |
205 bool CoordinateSystem3D::ComputeDistance(double& distance, | 205 bool CoordinateSystem3D::ComputeDistance(double& distance, |
206 const CoordinateSystem3D& a, | 206 const CoordinateSystem3D& a, |
207 const CoordinateSystem3D& b) | 207 const CoordinateSystem3D& b) |
208 { | 208 { |
209 bool opposite; // Ignored | 209 bool opposite = false; // Ignored |
210 | 210 |
211 if (OrthancStone::GeometryToolbox::IsParallelOrOpposite( | 211 if (OrthancStone::GeometryToolbox::IsParallelOrOpposite( |
212 opposite, a.GetNormal(), b.GetNormal())) | 212 opposite, a.GetNormal(), b.GetNormal())) |
213 { | 213 { |
214 distance = std::abs(a.ProjectAlongNormal(a.GetOrigin()) - | 214 distance = std::abs(a.ProjectAlongNormal(a.GetOrigin()) - |