Page MenuHome

BLI_math_geom_test.cc - new tests
Needs ReviewPublic

Authored by Michał Ziobro (Muchomor) on Dec 2 2015, 12:20 AM.

Details

Summary

Some simple tests for some of the geometry functions from task T41253.

Diff Detail

Repository
rB Blender

Event Timeline

Michał Ziobro (Muchomor) retitled this revision from to New tests for geometry functions..
Michał Ziobro (Muchomor) updated this object.
Michał Ziobro (Muchomor) set the repository for this revision to rB Blender.
Michał Ziobro (Muchomor) added projects: BF Blender, Restricted Project.
Michał Ziobro (Muchomor) removed rB Blender as the repository for this revision.

Some new tests for functions generating barycentric coordinates.

Some of them seems to be quite inaccurate (see test InteprWeightsPoly3DQuadruple), but maybe it's fine
(don't know how precise they should be).

Michał Ziobro (Muchomor) set the repository for this revision to rB Blender.

Fix of the previous diff.

Now there are some test to each of listed functions.

Waiting for feedback.

Michał Ziobro (Muchomor) retitled this revision from New tests for geometry functions. to BLI_math_geom_test.cc - new tests.Jan 18 2016, 2:00 PM

I changed some ugly parts.

Should I leave big tests (like IsectPointTri2DManyTriangles) or give few smaller instead of them?