← Back to team overview

yade-users team mailing list archive

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

 

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.