Skip to content

Commit

Permalink
Better commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico van Duijn committed Jul 9, 2018
1 parent 3dcafd8 commit 7c11d0d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_fcl_generate_bvh_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@

using namespace fcl;

/**
@details This function tests adding geometric primitives to a model, by first creating one
and then appending to it. It checks proper functionality of those simply by
verifying the return value, the number of vertices, triangles and the state of the model.
**/
template<typename BV, typename ShapeType>
void checkNumVerticesAndTris(BVHModel<BV>& model, const ShapeType& shape, uint8_t n, int vertices, int tris)
{
Expand Down Expand Up @@ -78,6 +83,10 @@ void checkNumVerticesAndTris(BVHModel<BV>& model, const Box<typename BV::S>& sha
EXPECT_EQ(model.build_state, BVH_BUILD_STATE_PROCESSED);
}

/**
@details This function tests that adding geometric primitives to a finalized model indeed
returns the BVH error we would expect.
**/
template<typename BV, typename ShapeType>
void checkAddToFinishedModel(BVHModel<BV>& model, const ShapeType& shape, uint8_t n)
{
Expand Down

0 comments on commit 7c11d0d

Please sign in to comment.