← Back to team overview

yade-users team mailing list archive

[Question #681343]: import stl format file into yade

 

New question #681343 on Yade:
https://answers.launchpad.net/yade/+question/681343

We can use the ymport.stl function to import facet from stl format file. 
I want to ask if the coding of the file must be binary or not? 
In my case, i need to do some modifications to the geometry, such as move and scale.  
So first i save my geometry to stl file using ASCii coding and open it with python, like 'fd=open(stlfile, 'r')', then i can do some modifications. After that, i save the file in the ascii coding too. In order to import it into Yade, i use the paraview to change the coding of the stl file from ascii to binary. 
It is so fussy. Could anyone give me some advice? 

Thanks, 
Xuesong 


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