From 5bfaa32c7c7e6f7d98f6cef0dbca289ba8b02a78 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 24 Apr 2022 14:51:24 +0200 Subject: [PATCH] #1153 add ray_distance to tree result --- src/ifcgeom/IfcGeomTree.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcgeom/IfcGeomTree.h b/src/ifcgeom/IfcGeomTree.h index eb586c27e0..656ae2c868 100644 --- a/src/ifcgeom/IfcGeomTree.h +++ b/src/ifcgeom/IfcGeomTree.h @@ -46,6 +46,7 @@ namespace IfcGeom { IfcUtil::IfcBaseEntity* instance; std::array position; std::array normal; + double ray_distance; double dot_product; }; @@ -467,6 +468,7 @@ namespace IfcGeom { ordered.insert({ u, { u, sidx, c, {P.X(), P.Y(), P.Z()}, {V.X(), V.Y(), V.Z()}, + d.XYZ().Dot(p0.XYZ() - P.XYZ()), V.Dot(d) } }); }