filling STL surface with spheres

Asked by Mayank Sabharwal

I am trying to fill spheres into a STL surface.
My only objective is to use this STL as a predicate to be able to use the different sphere packings.
Is it possible with the current yade?

I tried converting the stl to gts but for some reason the stl2gts tool is not working (it doesnot give errors but doesnot give any output either)

It would be great help if someone could help me out here

thanks,
Mayank

Question information

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

Hi Mayank,

your approach is correct. STL could not be used directly in Yade as a
predicate (to be filled by spheres), but can be converted to gts and with
gts it is possible. Are you sure you use stl2gts correctly? Also have a
look at discussion [1].
cheers
Jan

[1] https://answers.launchpad.net/yade/+question/246833

2014-04-16 20:26 GMT+02:00 Mayank Sabharwal <
<email address hidden>>:

> New question #247095 on Yade:
> https://answers.launchpad.net/yade/+question/247095
>
> I am trying to fill spheres into a STL surface.
> My only objective is to use this STL as a predicate to be able to use the
> different sphere packings.
> Is it possible with the current yade?
>
> I tried converting the stl to gts but for some reason the stl2gts tool is
> not working (it doesnot give errors but doesnot give any output either)
>
> It would be great help if someone could help me out here
>
> thanks,
> Mayank
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Hongyang Cheng (alex-cheng) said :
#2

Hi, Mayank

Here is my approach. Hope it could give you some hint.

I used autocad to built the predicate and output it as an stl file.
Using 'stl2gts' my stl file was converted to the gts file which can be
imported into Yade.

As for preparing spheres using predicate as boundary, you can always use
the function 'pack.filterSpherePack()'. Bruno Chareyre's suggestion in [1]
will definitely help.

[1] https://answers.launchpad.net/yade/+question/246971

Regards,

Alex

On Thu, Apr 17, 2014 at 8:01 AM, Jan Stránský <
<email address hidden>> wrote:

> Question #247095 on Yade changed:
> https://answers.launchpad.net/yade/+question/247095
>
> Status: Open => Answered
>
> Jan Stránský proposed the following answer:
> Hi Mayank,
>
> your approach is correct. STL could not be used directly in Yade as a
> predicate (to be filled by spheres), but can be converted to gts and with
> gts it is possible. Are you sure you use stl2gts correctly? Also have a
> look at discussion [1].
> cheers
> Jan
>
> [1] https://answers.launchpad.net/yade/+question/246833
>
>
>
> 2014-04-16 20:26 GMT+02:00 Mayank Sabharwal <
> <email address hidden>>:
>
> > New question #247095 on Yade:
> > https://answers.launchpad.net/yade/+question/247095
> >
> > I am trying to fill spheres into a STL surface.
> > My only objective is to use this STL as a predicate to be able to use the
> > different sphere packings.
> > Is it possible with the current yade?
> >
> > I tried converting the stl to gts but for some reason the stl2gts tool is
> > not working (it doesnot give errors but doesnot give any output either)
> >
> > It would be great help if someone could help me out here
> >
> > thanks,
> > Mayank
> >
> > --
> > You received this question notification because you are a member of
> > yade-users, which is an answer contact for Yade.
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~yade-users
> > Post to : <email address hidden>
> > Unsubscribe : https://launchpad.net/~yade-users
> > More help : https://help.launchpad.net/ListHelp
> >
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Can you help with this problem?

Provide an answer of your own, or ask Mayank Sabharwal for more information if necessary.

To post a message you must log in.