How to use TearingScenarioEngine? #127
Unanswered
RickYang1
asked this question in
Help - Using the software
Replies: 1 comment 1 reply
-
Hi, I understand... This is something that could be developed. I will see if we can add that to the roadmap of next month. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am developing continuous tearing simulation, I’ve tested the
TearingScenarioEngine
with following code:However, when I pull the tissue or cut it too quickly, Unity crashes:
![image](https://private-user-images.githubusercontent.com/142986134/369267379-a2b3ec2c-27cf-464c-bdeb-acc8cc6f0a3c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MTkyMDEsIm5iZiI6MTczOTUxODkwMSwicGF0aCI6Ii8xNDI5ODYxMzQvMzY5MjY3Mzc5LWEyYjNlYzJjLTI3Y2YtNDY0Yy1iZGViLWFjYzhjYzZmMGEzYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQwNzQxNDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYmY5ZTMxZGViNDJiMzViYjQ5ZTE3Y2IxOWUzY2IwZjdhMTg3YWQ3N2MyOTc2OTNlYTZjYmQyMDJhZjRkYWRlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.EYWupTy9iIR7iHWvf1h4BAs_yFnBzU7XoxY0L3XUUaE)
https://github.com/user-attachments/assets/c07e93b8-301d-4b34-bebd-5c1f9a93fc43
The crash log is as follows:
Editor.log
May I ask how to avoid this problem?
In addition, the parameter
startVertexId
ofTearingScenarioEngine
is the index of the midpoint of the tearing path.But in my case, I'd like to use the endpoint of last fracture, which is also the starting point of the next fracture, as input parameter,
since there could be no vertex just happen to be at the middle of my expected tearing path.
Which is, according to line 121 of TearingScenarioEngine.inl:
I'd like to invoke it with Pc and the fracture direction, but not Pa and the direction.
I don't know if this could be done.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions