Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tg-samples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Philip Trettner
tg-samples
Commits
7ee1460d
Commit
7ee1460d
authored
4 years ago
by
Philip Trettner
Browse files
Options
Downloads
Patches
Plain Diff
gcc fix
parent
454ead81
No related branches found
No related tags found
No related merge requests found
Pipeline
#17458
failed
4 years ago
Stage: Build
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
extern/glow-extras
+1
-1
1 addition, 1 deletion
extern/glow-extras
extern/typed-geometry
+1
-1
1 addition, 1 deletion
extern/typed-geometry
tests/feature/intersections/ray-intersect.cc
+3
-2
3 additions, 2 deletions
tests/feature/intersections/ray-intersect.cc
with
5 additions
and
4 deletions
glow-extras
@
3b6ed5b0
Subproject commit
75e4b97dc37f6e570f15f6bdc618cbc0acbdf4e4
Subproject commit
3b6ed5b04d27ea6a1881dd8c9c4e3a953c278edb
This diff is collapsed.
Click to expand it.
typed-geometry
@
284afd6d
Subproject commit
9b094fe5b91fe61e87c3eb16cbc4de1866a8fc2e
Subproject commit
284afd6d95f579066d800345648367e7d986d8cf
This diff is collapsed.
Click to expand it.
tests/feature/intersections/ray-intersect.cc
+
3
−
2
View file @
7ee1460d
...
@@ -13,8 +13,9 @@ TG_FUZZ_TEST(TypedGeometry, Intersections)
...
@@ -13,8 +13,9 @@ TG_FUZZ_TEST(TypedGeometry, Intersections)
auto
const
t
=
tg
::
closest_intersection_parameter
(
ray
,
obj
);
auto
const
t
=
tg
::
closest_intersection_parameter
(
ray
,
obj
);
if
(
t
.
has_value
())
if
(
t
.
has_value
())
{
{
CHECK
(
t
.
value
()
==
ts
.
first
());
CHECK
(
t
.
value
()
==
approx
(
ts
.
first
()));
CHECK
(
closest_intersection
(
ray
,
obj
)
==
ray
[
t
.
value
()]);
CHECK
(
closest_intersection
(
ray
,
obj
).
has_value
());
CHECK
(
closest_intersection
(
ray
,
obj
).
value
()
==
approx
(
ray
[
t
.
value
()],
0.01
f
));
CHECK
(
intersects
(
ray
,
obj
));
CHECK
(
intersects
(
ray
,
obj
));
}
}
else
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment