Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philip Trettner
tg-samples
Commits
7fde57d4
Commit
7fde57d4
authored
Feb 28, 2020
by
Julian Schakib
Browse files
improved test (still fails)
parent
e29c3a1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/feature/intersections/plane-intersect.cc
View file @
7fde57d4
...
@@ -160,7 +160,8 @@ TG_FUZZ_TEST(Plane, Intersect)
...
@@ -160,7 +160,8 @@ TG_FUZZ_TEST(Plane, Intersect)
auto
rotation_mat
=
tg
::
rotation_around
(
any_normal
(
d
),
c
.
opening_angle
);
auto
rotation_mat
=
tg
::
rotation_around
(
any_normal
(
d
),
c
.
opening_angle
);
auto
new_normal
=
normalize
(
rotation_mat
*
d
);
auto
new_normal
=
normalize
(
rotation_mat
*
d
);
p
=
tg
::
plane3
(
new_normal
,
center
-
new_normal
*
100
);
new_normal
=
any_normal
(
new_normal
);
p
=
tg
::
plane3
(
new_normal
,
center
+
d
*
100
);
// TODO should not intersect! is moved away from center and normal is oriented so that the plane runs parallel to the cone (?)
// TODO should not intersect! is moved away from center and normal is oriented so that the plane runs parallel to the cone (?)
CHECK
(
!
intersects
(
c
,
p
));
CHECK
(
!
intersects
(
c
,
p
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment