comparison Framework/Toolbox/Slice.cpp @ 158:a053ca7fa5c6 wasm

LinearAlgebra toolbox
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Feb 2018 08:58:31 +0100
parents e2fe9352f240
children 0a73d76333db
comparison
equal deleted inserted replaced
157:2309e8d86efe 158:a053ca7fa5c6
85 { 85 {
86 LOG(ERROR) << "Invalid syntax"; 86 LOG(ERROR) << "Invalid syntax";
87 return false; 87 return false;
88 } 88 }
89 89
90 if (!GeometryToolbox::IsCloseToZero(offset0)) 90 if (!LinearAlgebra::IsCloseToZero(offset0))
91 { 91 {
92 LOG(ERROR) << "Invalid syntax"; 92 LOG(ERROR) << "Invalid syntax";
93 return false; 93 return false;
94 } 94 }
95 95
302 302
303 bool opposite; 303 bool opposite;
304 return (GeometryToolbox::IsParallelOrOpposite(opposite, 304 return (GeometryToolbox::IsParallelOrOpposite(opposite,
305 GetGeometry().GetNormal(), 305 GetGeometry().GetNormal(),
306 plane.GetNormal()) && 306 plane.GetNormal()) &&
307 GeometryToolbox::IsNear(GetGeometry().ProjectAlongNormal(GetGeometry().GetOrigin()), 307 LinearAlgebra::IsNear(GetGeometry().ProjectAlongNormal(GetGeometry().GetOrigin()),
308 GetGeometry().ProjectAlongNormal(plane.GetOrigin()), 308 GetGeometry().ProjectAlongNormal(plane.GetOrigin()),
309 thickness_ / 2.0)); 309 thickness_ / 2.0));
310 } 310 }
311 311
312 312
313 void Slice::GetExtent(std::vector<Vector>& points) const 313 void Slice::GetExtent(std::vector<Vector>& points) const
314 { 314 {