Page 1 of 1

Contact Geometry Error

Posted: Thu Jun 07, 2018 7:34 am
by cscott
For the model that I'm creating, I needed to create a contact mesh for a cylinder and a sphere. When I tried to load the model into OpenSim I got the following error:


java.lang.RuntimeException: SimTK Exception thrown at ContactGeometry_TriangleMesh.cpp:447:
Bad call to Simbody API method ContactGeometry::TriangleMesh::Impl::TriangleMesh::Impl(): Multiple faces have an edge between vertices 1 and 2 in the same order.



How would I fix this error?

Re: Contact Geometry Error

Posted: Thu Jun 07, 2018 2:26 pm
by tkuchida
It sounds like there are faces in your mesh that share an edge but have defined it in the same direction (i.e., the vertices are specified in the same order). This situation is inadmissible because you will end up with either (i) overlapping faces with outward-facing normals or (ii) faces whose normals are pointed in the wrong direction. Here's the code: https://github.com/simbody/simbody/blob ... h.cpp#L402.