@JohnWang, I think I know how I'd do that.johnwang wrote: ↑Tue Jul 27, 2021 12:30 am Hope we can select an edge , then set it as a hinge. It should tell which two meshes it connected and which constrain to release.
Edit:
Maybe just after selected the edge, select the two meshes and save these info into a Hinge object.
Or select two meshes and find out the connection by code.
hinge2.jpg
hinge.FCStd
The best way I know of to do things like that is to use 1D elements wherever possible.
Basically, I would want to make a CBUSH connecting the two nodes together. The CBUSH would be co-linear with the edge, so that the lack of drilling stiffness in the shell elements wouldn't cause issues. Then, I'd put a PBUSH on there with stiffnesses of 1E8 in all components but component 4, the twisting stiffness. This would make it so that each CBUSH acted like a hinge.
If you can help me make a nearest neighbor tool of some kind, that can rapidly compute the node nearest to each other node in a list, I'd be able to use that to recreate the "Make 1-D Gaps" tool from Patran, which is an EXTREMELY good utility.
My largest fear in that regard though is just having someone actually skilled like you throw a giant, un-commented pile of python that's worse than Obfuscated C Code at me and having it be better than my work, freezing me in place; unable to help or move forward.
Steve already has such a super tool he mentions in the sci-py library, but I'm yet to find it. This code I've made is barely two days old now.
I have an octtree script in my back pocket that should work wonders, but I think it might be 200 lines of my python, and that feels tiring. I may need it to do the equivolencing scripts I want to do.
SIDENOTE: If anybody reading this wants to help me make this thing a gui, PLEASE MAKE YOURSELF KNOWN TO ME!!! I am the worst gui programmer who currently walks this earth. I use linux with i3wm, hate touching my mouse, have tried to play skyrim mouseless with vim keybindings, and think that terminal based software is more useable than regular software; as long as it isn't CAD software. SAVE ME FROM MYSELF, PLEASE.
Okay code time.