stl file import for Chrono-Bullet

40 views
Skip to first unread message

Jiapeng Liu

unread,
Oct 10, 2023, 5:22:15 PM10/10/23
to ProjectChrono
Hi all,

We know that Chrono uses Bullet package to do contact detection. 

If I import two triangular meshes based on two *.stl files. Can I do contact detection between these two meshes? Which "shape" object should I use to import these two *.stl files?

Best
Jiapeng

Radu Serban

unread,
Oct 11, 2023, 1:31:49 AM10/11/23
to ProjectChrono

Hi Jiapeng,

 

You would create a trimesh collision shape, based on a ChTriangleMeshConnected object.

I added the ability to read a ChTriangleMeshConnected from an STL file a few months ago (see ChTriangleMeshConnected::CreateFromSTLFile and ChTriangleMeshConnected:: LoadSTLMesh), so you can only do this with the latest code in the ‘main’ branch of the Chrono git repository.

 

--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 on the web visit https://groups.google.com/d/msgid/projectchrono/3c2b8893-9632-4b0a-b901-cdf2b7d0bcc4n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages