febiosoftware / FEBioStudio

https://febio.org/
MIT License
63 stars 21 forks source link

Function. merge objects always cannot work #96

Open dollPrincess opened 1 month ago

dollPrincess commented 1 month ago

I want to use the Function called merge objects ,but it always cannot work.

I create a box and a cylinder and put them like this in picture1, then I select the corresponding objects(picture2) and try to use the function by clicking "OK". But no matter what I tried, like if some options are checked off, or how the models are placed, however, the window shows this(p3).

1 p1 put them like this

2 p2 select the corresponding objects

3 p3 the window shows this

Additionally, whenever I change the options to see if this works and click OK, the default number in name is always incremented by one.This may bring some confusion.(see specific at bottom please) 4 p4

I have the following problem:

  1. How does this function work, and what kind of models, such as relationships and locations, can be successful?
  2. what is the purpose of each of the p4 options and how do they affect the final result?
  3. Why can't I use it successfully? Can you see what's wrong?
  4. Whenever I change the options to see if the function works, and click OK, the default number in name is always increased by one. Is this because after clicking OK, it shows a failure but actually generates a combined model, or is it because you don't take this into account and do a "++" operation by default? (I think it would be better not to add one to the name since it fails to generate, because it would be confusing as to whether it succeeded or not.)

Eagerly awaiting an answer! Sincerely beg you to answer all 4 questions I asked, preferably with the corresponding sub-points listed labeled! Thanks in advance, please please please!

michaelrossherron commented 1 month ago
  1. Only objects that have been meshed can be merged together. You are unable to merge these objects, because they haven't yet been meshed.
  2. The primary purpose of the merge tool is to "weld" two objects with conforming meshes together. To do this, you select the objects with conforming meshes, click the Merge tool, and then make sure that you have the Weld option checked and set an appropriate value in the Tolerance box. When the Merge tool is used in this way, it will look for any nodes on the two objects that are closer than the defined tolerance, and "weld" them together. "Welding" in this case means that one of the two nodes will be deleted, and the other node will replace the deleted node in all elements that previously included it. In other words, this welding process takes two meshes and attaches them to each other at their shared nodes. The Merge tool can also be run without using the Weld option, but doing so will not change the meshes of the objects, or attach them in any way. Using the tool without the Weld option simply groups the objects together under a single object, purely for organizational purposes.
  3. See the answer to the first question.
  4. We are indeed incrementing a counter each time the Merge tool is run, whether or not it is successful. Really, the only reason why we are doing this is to ensure that the final merged object has a unique name, and so it doesn't really matter what the number is. It is easy to tell whether or not the tool has succeeded either by looking at the Objects in the Model Tree, or by simply reading the message box that appears when the Merge tool is finished. However, I appreciate that this could be confusing for a user who doesn't yet understand how the Merge tool works, and so I can look into changing that.

Please let me know if you have any more questions.

Michael Herron

dollPrincess commented 1 month ago

It's such a joy to be able to hear back from you soon ! I am so happy. Your reply is specific and clear, and I 've figured out how to properbably use it!!