Skip to content

Commit

Permalink
debug: print getMOdelType
Browse files Browse the repository at this point in the history
  • Loading branch information
proyan committed Apr 15, 2022
1 parent c8373f9 commit d63ea45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/hpp/fcl/BVH/BVH_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class HPP_FCL_DLLAPI BVHModelBase : public CollisionGeometry {

/// @brief Model type described by the instance
BVHModelType getModelType() const {
std::cerr<<"num_tris "<<num_tris<<"num_vertices"<<num_vertices<<std::endl;
if (num_tris && num_vertices)
return BVH_MODEL_TRIANGLES;
else if (num_vertices)
Expand Down
3 changes: 3 additions & 0 deletions include/hpp/fcl/internal/traversal_node_setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ bool initialize(MeshCollisionTraversalNode<BV, 0>& node,
const BVHModel<BV>& model1, const Transform3f& tf1,
const BVHModel<BV>& model2, const Transform3f& tf2,
CollisionResult& result) {
std::cerr<<"XXXXXXXXXXXXXXXXXXXXXXXXXX"<<std::endl;
std::cerr<<model1.getModelType()<<" vs "<<BVH_MODEL_TRIANGLES<<std::endl;
std::cerr<<"YYYYYYYYYYYYYYYYYYYYYYYYYY"<<std::endl;
if (model1.getModelType() != BVH_MODEL_TRIANGLES)
HPP_FCL_THROW_PRETTY(
"model1 should be of type BVHModelType::BVH_MODEL_TRIANGLES.",
Expand Down

0 comments on commit d63ea45

Please sign in to comment.