Shape(Mesh) Edit Mode by Code
Posted: 17 Aug 2023, 23:17
I want to represent soil being deformed by a wheel. I have found a page that teaches how to edit a mesh by mouse:
"https://www.coppeliarobotics.com/helpFi ... itMode.htm". The button showed in this page is called "Toggle shape edit mode" in my version of CoppeliaSim (4.3.0 rev.12). It allows me to select triangles, vertex or edges. Once I have one entity selected, I activate "Object/item shift" and them I can drag the entity with the mouse, deforming the shape.
I wanted to do this by code, an Associated child script in Lua for example, or by other means. Do you guys know if it is possible to edit vertex or triangles of a mesh by code? I want to create a thin cuboid, discretize it in hundreds of triangles, and then deform the triangles or vertex downwards when the wheel is closer than an epsilon to the entity, and with this, leave wheel marks in the soil(mesh). Thank you in advance.
"https://www.coppeliarobotics.com/helpFi ... itMode.htm". The button showed in this page is called "Toggle shape edit mode" in my version of CoppeliaSim (4.3.0 rev.12). It allows me to select triangles, vertex or edges. Once I have one entity selected, I activate "Object/item shift" and them I can drag the entity with the mouse, deforming the shape.
I wanted to do this by code, an Associated child script in Lua for example, or by other means. Do you guys know if it is possible to edit vertex or triangles of a mesh by code? I want to create a thin cuboid, discretize it in hundreds of triangles, and then deform the triangles or vertex downwards when the wheel is closer than an epsilon to the entity, and with this, leave wheel marks in the soil(mesh). Thank you in advance.