Vladimír Vondruš
eef921c238
It's October already?!
2 years ago
Vladimír Vondruš
bab1559852
Consistently use "out of range" instead of "out of bounds".
...
Not that C++ STL and exceptions would be anything to take inspiration
from, but there's std::out_of_range. Python IndexError is also specified
as "index out of range", not "bounds".
3 years ago
Vladimír Vondruš
8d023a7612
MeshTools: remove redundant MeshTools:: prefixes where possible.
...
Except for test cases that ended up having the same name as the API they
test.
3 years ago
Vladimír Vondruš
bbb54a9df8
It's 2023 already!
3 years ago
Vladimír Vondruš
6bdffb2796
Test: make use of CORRADE_SKIP_IF_NO_ASSERT().
4 years ago
Vladimír Vondruš
822fa0d644
Updated copyright year.
4 years ago
Vladimír Vondruš
ec19c25e46
Adapt to Corrade changes.
5 years ago
Vladimír Vondruš
294c910d44
MeshTools: don't #include <vector> unless absolutely necessary.
5 years ago
Vladimír Vondruš
3d136503d8
Updated copyright year.
5 years ago
Vladimír Vondruš
19e0e96d74
Updated copyright year.
6 years ago
Vladimír Vondruš
65a2ced2a7
Make this compile and test cleanly with CORRADE_NO_ASSERT defined.
6 years ago
Vladimír Vondruš
c07af0340f
MeshTools: port tests and benchmarks away from MeshData3D.
6 years ago
Vladimír Vondruš
aeedf1264d
MeshTools: generateSmoothNormals() taking also type-erased indices.
6 years ago
Vladimír Vondruš
1684ccac2d
MeshTools: simplify test code a bit.
...
We have new less shitty APIs, so use them!
6 years ago
Vladimír Vondruš
db502c1acf
MeshTools: this test didn't test the NaNs at all.
...
I wonder what was I doing back then.
6 years ago
Vladimír Vondruš
24d01e29c8
MeshTools: update an assertion text, add a test for it.
6 years ago
Vladimír Vondruš
29f0fdb188
MeshTools: explicit generateSmoothNormals() overloads for each index type.
...
The templated version had the unfortunate "feature" of not being able to
figure out the type when an array view or a C array got passed to it.
That led to worse-than-ideal UX and even though it's now a bit more
verbose on the implementation side, it's the preferred solution.
6 years ago
Vladimír Vondruš
a6dd63af0f
Math: make batch functions actually usable.
...
No longer it's needed to add ugly explicit template types or casts.
6 years ago
Vladimír Vondruš
904a63f33b
MeshTools: make generateSmoothNormals() working with NaNs.
7 years ago
Vladimír Vondruš
32da5d7587
MeshTools: benchmark generate{Flat,Smooth}Normals().
...
There's some room for improvement so I want to be able to see the
difference.
7 years ago
Vladimír Vondruš
a4310b9a31
MeshTools: added generateSmoothNormals().
...
This was a *fun* algorithmic exercise. Seriously.
7 years ago
Vladimír Vondruš
d20a17c5c3
MeshTools: ability to generate flat normals in compile().
7 years ago
Vladimír Vondruš
1de258a6b2
MeshTools: de-STL-ify generateFlatNormals().
...
Also move it to a new GenerateNormals.h header so we can easily add
generateSmoothNormals() to it. The old API and header is deprecated and
will be removed in the future. I can't be bothered rewriting the old
code using the new thing, so it's preserved there as a mausoleum until
it gets finally nuked from the orbit.
7 years ago