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
244ebc3b
Commit
244ebc3b
authored
Feb 13, 2020
by
Aaron Grabowy
Browse files
Updated tg after fixing some triangle functions
parent
f4fc2c64
Pipeline
#13576
failed with stage
in 6 minutes and 15 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
typed-geometry
@
20a2a44c
Subproject commit
975139e586166d9893b05af72e8e46430b088f18
Subproject commit
20a2a44c1b70ec06462264e1e7f7ee761df644af
tests/feature/objects/project.cc
View file @
244ebc3b
...
...
@@ -2,9 +2,7 @@
#include
<typed-geometry/tg-std.hh>
#include
<iostream>
TG_FUZZ_TEST_MAX_ITS
(
TypedGeometry
,
Project
,
20
)
TG_FUZZ_TEST_MAX_ITS_MAX_CYCLES
(
TypedGeometry
,
Project
,
25
,
100'000'000'000
)
{
auto
const
test_obj
=
[
&
rng
](
auto
p
,
auto
o
)
{
auto
proj
=
project
(
p
,
o
);
...
...
@@ -147,10 +145,8 @@ TG_FUZZ_TEST_MAX_ITS(TypedGeometry, Project, 20)
test_obj_and_boundary
(
p4
,
tg
::
sphere4
(
pos40
,
r
));
test_obj_and_boundary
(
p3
,
tg
::
sphere2in3
(
pos30
,
r
,
n3
));
// triangle
(
void
)
pos22
;
(
void
)
pos32
;
// FIXME: test_obj(p2, tg::triangle2(pos20, pos21, pos22));
// FIXME: test_obj(p3, tg::triangle3(pos30, pos31, pos32));
test_obj
(
p2
,
tg
::
triangle2
(
pos20
,
pos21
,
pos22
));
test_obj
(
p3
,
tg
::
triangle3
(
pos30
,
pos31
,
pos32
));
// test_obj(p4, tg::triangle4(pos40, pos41, pos42));
}
...
...
tests/feature/random/uniform.cc
View file @
244ebc3b
...
...
@@ -326,7 +326,7 @@ TG_FUZZ_TEST_MAX_ITS(TypedGeometry, UniformCapsule, 10)
{
auto
tolerance
=
0.01
f
;
auto
range3
=
tg
::
aabb3
(
tg
::
pos3
(
-
10
),
tg
::
pos3
(
10
));
auto
r
=
uniform
(
rng
,
0
.0
f
,
10.0
f
);
auto
r
=
uniform
(
rng
,
1
.0
f
,
10.0
f
);
auto
pos0
=
uniform
(
rng
,
range3
);
auto
pos1
=
uniform
(
rng
,
range3
);
auto
n
=
normalize
(
pos1
-
pos0
);
...
...
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