← Back to team overview

yade-users team mailing list archive

Re: [Question #247095]: filling STL surface with spheres

 

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

Hongyang Alex Cheng proposed the following answer:
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ý <
question247095@xxxxxxxxxxxxxxxxxxxxx> 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 <
> question247095@xxxxxxxxxxxxxxxxxxxxx>:
>
> > 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     : yade-users@xxxxxxxxxxxxxxxxxxx
> > 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     : yade-users@xxxxxxxxxxxxxxxxxxx
> 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.