'No spheres are produced by regularHexa-function'

Asked by Mamun Al-Siraj

Hi there,

I am using Ubuntu 18.04.2 LTS and yade version 2018.02b.
Started yade for 1 week now.

I was simply trying the example code below along with the
'horse.coarse.gts' .

these are my commands:
In [1]: import gts
   ...: surf=gts.read(open('horse.coarse.gts'))
   ...:

In [2]: pred=pack.inGtsSurface(surf)
   ...: aabb=pred.aabb()
   ...: radius=(aabb[1][0]-aabb[0][0])/40
   ...: O.bodies.append(pack.regularHexa(pred,radius=radius,gap=radius/4.))

[and this came as output]
/usr/lib/x86_64-linux-gnu/yade/py/yade/pack.py:359: RuntimeWarning: No spheres are produced by regularHexa-function
  warnings.warn('No spheres are produced by regularHexa-function',category=RuntimeWarning)

I have no sphere inside the Scene.
What I am doing wrong, you think?

The same problem I have experienced for example of 'horse.py' or 'get.horse.py' also.
There was simply nothing/ no spheres inside the scene.

Any advice would be appreciated.

Best

Mamun

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hi Mamun,

I have tried your code, but had no problems and got expected result..
I also used Ubuntu 18.04 and yade version 2018.02b. I have no idea what could be wrong in your case..

cheers
Jan

Revision history for this message
Mamun Al-Siraj (mamoon1834) said :
#2

Oh :-(. That't bad...

Probably, my gts file is corrupted,or?
here I am sharing it via google drive. If possible please try it:
https://drive.google.com/file/d/1FE8-ds516Zntt_QY5-Q--tVhKuRmUWNz/view?usp=sharing

Although you said that you have no clue for my case, can you make some possible cases
where pack.regularHexa can produce no sphere at all?

Thank you very much for the help.

Regards,
Mamun

Revision history for this message
Best Jan Stránský (honzik) said :
#3

> can you make some possible cases where pack.regularHexa can produce no sphere at all?

one case is when the specified radius would produce a sphere larger than the predicate

Jan

Revision history for this message
Mamun Al-Siraj (mamoon1834) said :
#4

Thanks Jan Stránský, that solved my question.