delete the spring between two discrete element overlap

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

delete the spring between two discrete element overlap

LE Ba Danh
Hi all,
I use the PlugIn ConvertElementPairToSpring to connect the discrete elements (see Figure).
When the overlap between these elements superior 80%, the element 1 (see figure) can connect together with element 2 and element 3 by two springs.
How to remove the spring between element 1 and element 3?

Thank for your help.

Danh
Reply | Threaded
Open this post in threaded view
|

Re: delete the spring between two discrete element overlap

Damien André
Administrator
Hello Danh,
You can create a new plugin that checks the penetration value of each spring. If their values is higher than 80%, you can delete them. To do such things :
- create a new SetOf<spring>
- put the spring that you want to delete in this setof
- invoke the "ClearAndDelete()" method of this setof to delete the spring
- delete the setof

Hope this help, Damien.
Reply | Threaded
Open this post in threaded view
|

Re: delete the spring between two discrete element overlap

LE Ba Danh
Thank Damien,
I will write this PlugIn.
Danh