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) } }); }