Wireframe - Pychrono

40 views
Skip to first unread message

Gopi Krishna

unread,
Aug 3, 2023, 1:48:49 AM8/3/23
to ProjectChrono
Hello,

I'm new to pychrono and I'm trying to visualize the wireframe of a mesh.
Can anyone guide me how to do it?

Thanks,
Gopi

Radu Serban

unread,
Aug 3, 2023, 3:17:36 AM8/3/23
to ProjectChrono

Hi Gopi,

 

Use the method SetWireframe for a ChTriangleMeshShape (default is False). For example:

 

import pychrono.core as chrono

mesh_shape = chrono. ChTriangleMeshShape()

mesh_shape.SetWireframe(True)

 

--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/bf961348-471f-402f-973f-1d0805fa7793n%40googlegroups.com.

Gopi Krishna

unread,
Aug 3, 2023, 4:49:10 AM8/3/23
to ProjectChrono
Hi Radu,

Thank you for helping me,
How to visualize wireframe for other mesh types such as fea.ChMesh() ?, and is there any resources that can help me learn how to use pychrono?

Radu Serban

unread,
Aug 4, 2023, 11:59:06 AM8/4/23
to ProjectChrono

Hi Gopi,

 

There are Python FEA demos that show this. For example: demo_FEA_shells.py

 

There is no documentation specific to PyChrono.  Consult the C++ reference documentation (https://api.projectchrono.org/) and the numerous C++ demos (https://github.com/projectchrono/chrono/tree/main/src/demos). The Python syntax corresponds to the C++ syntax (of course, assuming that particular capability is wrapped in PyChrono – recall that not all Chrono functionality is available through Python).

Reply all
Reply to author
Forward
0 new messages