← Back to team overview

yade-users team mailing list archive

Re: [Question #246833]: gts surface import problem

 

Question #246833 on Yade changed:
https://answers.launchpad.net/yade/+question/246833

    Status: Open => Answered

Klaus Thoeni proposed the following answer:
Hi,

I guess there is something wrong with your gts-file. How did you create
it?

You can simply check it when looking at the file with a text editor. The
first line indicates how many vertexes, edges and faces you have. E.g. a
simple cube with two triangular element on each face should have written
"8 18 12" in the first line. This means the following 8 lines define the
vertexes (coordinates x y z), the subsequent 18 lines the connectivity
of the edges (vertex1 vertex2) and the last 12 lines the connectivity of
the faces (edge1 edge2 edge3). If you have a look at your file you will
probably see that the numbers specified in the first line do not
correspond to what follows after.

I usually don't use gts files but stl-files. You can convert a stl to
gts via:

stl2gts -r < cylinder.stl > cylinder.gts

You need to install libgts-bin.

HTH
Klaus

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.