comparison Framework/Toolbox/CoordinateSystem3D.cpp @ 1161:19b1c8caade4 broker

fix sagittal geometry
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 19 Nov 2019 17:30:05 +0100
parents ac88989817e3
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1160:59906485896f 1161:19b1c8caade4
239 << " axisX: " << that.axisX_ << " axisY: " << that.axisY_ 239 << " axisX: " << that.axisX_ << " axisY: " << that.axisY_
240 << " D: " << that.d_; 240 << " D: " << that.d_;
241 return s; 241 return s;
242 } 242 }
243 243
244
245 CoordinateSystem3D CoordinateSystem3D::NormalizeCuttingPlane(const CoordinateSystem3D& plane)
246 {
247 double ox, oy;
248 plane.ProjectPoint(ox, oy, LinearAlgebra::CreateVector(0, 0, 0));
249
250 CoordinateSystem3D normalized(plane);
251 normalized.SetOrigin(plane.MapSliceToWorldCoordinates(ox, oy));
252 return normalized;
253 }
244 } 254 }