Re: [Yade-users] [Question #631650]: Export the model as stl format

2017-05-15 Thread zhao dejin
Question #631650 on Yade changed:
https://answers.launchpad.net/yade/+question/631650

zhao dejin posted a new comment:
Hi, Jan/Klaus/Anton
  I'm  so sorry to reply your e-mail so late and Thanks for your suggestion, I 
will try them later.
  Thanks again.


  Zhao dejin

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #631650]: Export the model as stl format

2017-05-10 Thread Anton Gladky
Question #631650 on Yade changed:
https://answers.launchpad.net/yade/+question/631650

Anton Gladky proposed the following answer:
Hi,

you can use export.gmshGeo [1] to export spheres in geo-file. It can be than
imported into the GMSH, which is a three-dimensional finite element mesh 
generator [2].

Generated mesh exports in any available format, including STL,

[1] https://github.com/yade/trunk/blob/master/py/export.py#L894
[2] http://gmsh.info/

Cheers,

Anton

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #631650]: Export the model as stl format

2017-05-10 Thread Klaus Thoeni
Question #631650 on Yade changed:
https://answers.launchpad.net/yade/+question/631650

Klaus Thoeni proposed the following answer:
Hi, here my thoughts:

1. export your packing as txt (r,x,y,z)
2. export a sphere with radius r=1 as STL from e.g. Meshlab (you can specify 
the subdivision level, i.e., how fine you want your mesh)
3. use the in step 2 generated sphere as a template
4. write a script that reads your txt file and generates STL-spheres according 
to your template, i.e., apply a translation and a scale to your coordinates of 
the template
5. the same script should then also write the new STL file with all spheres.

HTH
Klaus

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #631650]: Export the model as stl format

2017-05-09 Thread Jan Stránský
Question #631650 on Yade changed:
https://answers.launchpad.net/yade/+question/631650

Jan Stránský proposed the following answer:
Thanks for more info. I think a good approach is to export spheres in a 
standard way and then convert this file to STL.
Than the question would become "how to triangulate spheres and save it in STL" 
and independent on Yade.
good luck
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #631650]: Export the model as stl format

2017-05-09 Thread zhao dejin
Question #631650 on Yade changed:
https://answers.launchpad.net/yade/+question/631650

zhao dejin posted a new comment:
  HI, Jan
 Thanks for your answers, the reason  I insist on STL is that  I need 
import this model to a FEM software to compute ,but that  software 
can import STL file noly.  A few hours ago,  there  are someone told me that 
maybe I can  obtain STL finally  by importVTK into paraview first. I will 
tried it later.

  Thanks again.

  ZDJ

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #631650]: Export the model as stl format

2017-05-09 Thread Jan Stránský
Question #631650 on Yade changed:
https://answers.launchpad.net/yade/+question/631650

Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

> the export format is STL,but I can't find the effective way to export
it

Why do you want/need to export your model to STL?
I am not very familiar with STL format, but according to [1] it represents 
solids as their triangulated surface.
Since your model is full of spheres, the choice of export format does not make 
sense to me and that you cannot find any effective way is the consequence..

If you insist on STL, you can triangulate surface of each sphere and do
the export of these triangulations. A problem, according to further
usage of the export, could be overlapping spheres.. Alternatovely you
can use some standard export of spheres and do the triangulation/STL
conversion as a postprocessing.

cheers
Jan

[1] https://en.wikipedia.org/wiki/STL_(file_format)

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #631650]: Export the model as stl format

2017-05-08 Thread zhao dejin
Question #631650 on Yade changed:
https://answers.launchpad.net/yade/+question/631650

Summary changed to:
Export the model as  stl format

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp