Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2018-10-10 Thread De zhang
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 De zhang posted a new comment: Thanks Jan, I have tried the procedure in stl-gts folder in trunk-2018.02b and I made it by following conversion: STL->GTS->Yade to convert format by using "stl2gts -r

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2018-10-10 Thread Jan Stránský
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Jan Stránský posted a new comment: Also see [1], might be the same problem Jan [1] https://answers.launchpad.net/yade/+question/537735 -- You received this question notification because your team yade-users

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2018-10-10 Thread Bruno Chareyre
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Bruno Chareyre posted a new comment: Hi, Please don't re-open an old question. http://yade-dem.org/wiki/Howtoask -- You received this question notification because your team yade-users is an answer contact

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2018-10-09 Thread De zhang
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 De zhang posted a new comment: Hi Jan, I have tried the code you provided above in version(2018.02b). It also came out the error message as following: ### ERROR /data/trunk/pkg/dem/STLImporter.cpp:23 import:

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-04 Thread Jan Stránský
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Jan Stránský posted a new comment: Hi Tina, > latest version (2017.01a) may contain a bug please send here (or open a bug issue) what error you get thanks Jan -- You received this question notification

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-03 Thread Tina Asia
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Tina Asia posted a new comment: Hi Jan, I have tried this code in Yade 1.20, and It gets a correct result. Anyway, thank you very much. The latest version (2017.01a) may contain a bug. Best regards, Tina --

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-03 Thread Jan Stránský
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Jan Stránský posted a new comment: Hi Tina, > but it still failed please always attach the error message (or be more specific why it does not work). This information alone has no value for the problem

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-03 Thread Tina Asia
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Answered => Solved Tina Asia confirmed that the question is solved: Thanks Jan Stránský, that solved my question. -- You received this question notification because your team yade-users is an

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-03 Thread Tina Asia
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Tina Asia posted a new comment: Thanks Jan, I just ran this code in my yade2017.01a, but it still failed. I guess something wrong happens when I copy the code, please send this code in .py format to my

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-03 Thread Jan Stránský
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Open => Answered Jan Stránský proposed the following answer: Hi Tina, > "Can't open file: tina.st" it means that the file cannot be opened :-) could you check if it exists? I put here a complete

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-03 Thread Tina Asia
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Answered => Open Tina Asia is still having a problem: Jan, Thanks for your patience, but the error---"Can't open file: tina.st" still exists. I guess there is something wrong with the

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-02 Thread Jan Stránský
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Open => Answered Jan Stránský proposed the following answer: Hi Tina, thanks for clarification :-) you have several options here, using existing answers of this question: (ymport.stl returns list of

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-02 Thread Tina Asia
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Answered => Open Tina Asia is still having a problem: Hi Jan, Thanks for your patience, but I got an error by importing the *.stl file generated by the above code. The error and my new code are as

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-02 Thread Jan Stránský
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Open => Answered Jan Stránský proposed the following answer: Hi Tina, it pretty much depends on what program/method you use for filling. In my opinion, both gts and stl are equally good, since they

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-03-01 Thread Tina Asia
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Answered => Open Tina Asia is still having a problem: Thanks Jan, My goal is to fill this polyhedron with some sub-particles, export *.stl may be an unwise decision. Is there any better method to

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-02-28 Thread Jan Stránský
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Open => Answered Jan Stránský proposed the following answer: Hi Tina, I have tried your code and did not face any problem.. please be more specific on "the *.stl only contains some triangles". The

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-02-28 Thread Tina Asia
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Answered => Open Tina Asia is still having a problem: Hi, Jan, I have tried your code, but the *.stl only contains some triangles, My code is as follows (My YADE is the latest vision): from yade

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-02-28 Thread Tina Asia
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Answered => Open Tina Asia is still having a problem: Hi, Thanks Jan, I tried some methods to convert *.txt to *.stl, but all failed, Can you give me a help? Thanks in advance, Tina -- You

Re: [Yade-users] [Question #497350]: Export a polyhedron into a *.stl or * .gts file

2017-02-28 Thread Jan Stránský
Question #497350 on Yade changed: https://answers.launchpad.net/yade/+question/497350 Status: Open => Answered Jan Stránský proposed the following answer: Hi Tina, you can do it "manually" if you know how to write .stl or .gts format. It is not (yet) implemented inside Yade. cheers Jan --