Skip to content

Commit dcc0017

Browse files
committed
fix(RayTracing): modify vectors to cover more directions
1 parent 963b9c6 commit dcc0017

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/geode/model/helpers/ray_tracing.cpp

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,19 @@ namespace geode
103103
bool is_point_inside_block(
104104
const BRep& brep, const Block3D& block, const Point3D& point )
105105
{
106-
std::array< Vector3D, 12 > directions = { { Vector3D{ { 0., 0., 1. } },
107-
Vector3D{ { 0.1, 0., 1. } }, Vector3D{ { 0.3, 0., 1. } },
108-
Vector3D{ { 0.5, 0., 1. } }, Vector3D{ { 0., 1., 0. } },
109-
Vector3D{ { 0.1, 1., 0. } }, Vector3D{ { 0.3, 1., 0. } },
110-
Vector3D{ { 0.5, 1., 0. } }, Vector3D{ { 1., 0., 0. } },
111-
Vector3D{ { 1., 0., 0.1 } }, Vector3D{ { 1., 0., 0.3 } },
112-
Vector3D{ { 1., 0., 0.5 } } } };
106+
std::array< Vector3D, 12 > directions = { { geode::Vector3D{
107+
{ 1., 0., 0. } },
108+
geode::Vector3D{ { 1., 0., 0.1 } },
109+
geode::Vector3D{ { 1., 0., 0.3 } },
110+
geode::Vector3D{ { 1., 0., 0.5 } },
111+
geode::Vector3D{ { 0., 1., 0. } },
112+
geode::Vector3D{ { 0.1, 1., 0. } },
113+
geode::Vector3D{ { 0.3, 1., 0. } },
114+
geode::Vector3D{ { 0.5, 1., 0. } },
115+
geode::Vector3D{ { 0., 0., 1. } },
116+
geode::Vector3D{ { 0., 0.1, 1. } },
117+
geode::Vector3D{ { 0., 0.3, 1. } },
118+
geode::Vector3D{ { 0., 0.5, 1. } } } };
113119

114120
for( const auto& direction : directions )
115121
{

0 commit comments

Comments
 (0)