Bent – sorry for the (very) late reply. I can confirm that there is an issue with collision detection of non-convex trimeshes. Looking at the results, I suspect a bug in edge-edge collision. But I did not write this part of the code and have never looked at it very closely. The reason things appear to work fine for the original track-shoe meshes in demo_MBS_collision_trimesh is that these are relatively fine meshes and so collision pairs get generated between many features of these meshes. When switching to box meshes, any issue in a particular type of pairwise feature interaction will result in obvious errors. By the way, I pushed a modification of that demo that allows switching between the two types of meshes and control other setting s to help identify such problems. If I get some time, I will chase down this bug; or hopefully someone else gets to it before me.
Antoine – having said all that, for your particular problem with gears, I would still try to leverage collision between convex shapes as that is a much more robust algorithm. Instead of providing the entire gear mesh as one collision shape for a gear body, it would be much better (for robustness, but also computational efficiency) to create a model for the collision shape of a single tooth (that is a convex mesh) and then replicate that as many times as necessary in the collision model associated with the gear body. Look at the function CreateLuggedGeometry() in demo_VEH_SCMTerrain_WheeledVehicle for an example of generating a (non-convex) collision model by assembling multiple instances of the same (convex) mesh and using convex hull collision shapes for each of these parts.
--Radu
--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
projectchron...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/projectchrono/10cc7f1a-18d8-46aa-a421-a844f277d60cn%40googlegroups.com.