yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #14560
Re: Potential Blocks and Potential Particles - Documentation
-
To:
yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Janek Kozicki <janek_listy@xxxxx>
-
Date:
Sun, 27 Jan 2019 16:06:39 +0100
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<CAJjzU-QE6+zf_QJSJ7d4YGoqjiAsmC7Gc39K_SpcZUqZhfC08Q@mail.gmail.com>
Hi Boon,
great thanks. I think that fixing orientation should be possible :)
I cannot find your pull request though. Can you send a link?
cheers
Janek
Chia Weng Boon said: (by the date of Sun, 27 Jan 2019 22:28:11 +0800)
> Hi Janek,
> I submitted a Pull Request. I fixed the display for the free fall examples
> using Marching Cubes. However, the orientation of the particles are not
> completely correct yet in QT. See for example the Wedge Example.
> I think that was the reason why I moved to ParaView.
>
> Boon
>
> On Sat, Jan 26, 2019 at 11:19 PM Janek Kozicki <janek_listy@xxxxx> wrote:
>
> > Hi Boon,
> >
> > thanks for you reply. Yes, I think that this marching cubes method
> > can work really good. The only missing thing is to make the caching
> > of calculated triangles correctly. Once the triangles for the shape
> > are calculated you can use them all the time, unless the body deforms or
> > is cut in half (I'm not sure if this can happen).
> >
> > A thing to discuss: you could store cached triangles not inside
> > Gl1_PotentialParticle but inside PotentialParticle with Attr::hidden
> > or (Attr::hidden|Attr::noSave). For example see into
> > pkg/common/Cylinder.hpp as an example. In this way you will not need
> > this loop in pkg/common/Gl1_PotentialParticle.cpp line 112, and
> > automatically you have solved the problem what to draw when a body
> > was deleted or added to scene. Because you only recalculate marching
> > cubes for particular single body when you need to draw it and it
> > wasn't generated yet.
> >
> > I hope that the post which I have just sent to mailing list about
> > object oriented design deficiencies of your code wasn't too harsh.
> > My apologies.
> >
> > best regards
> > Janek
> >
> > Chia Weng Boon said: (by the date of Sat, 26 Jan 2019 11:12:40 +0800)
> >
> > > Dear Janek,
> > > I will look into it. Thanks. In the python script, the vtk files at
> > > specific time intervals are output into the vtk folder. I have been
> > using
> > > ParaView mainly for visualisation for both Potential Particles and
> > > Potential Blocks. The colour of the particles can also be changed in
> > > ParaView. I suspect that the Marching Cube display is not showing the
> > > position and size of the particles correctly (I abandoned the marching
> > > cubes quite long ago, but agree that real time display with simulation is
> > > more user friendly)
> > >
> > > Let me check the example files again.
> > >
> > > Boon
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~yade-dev
> > Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~yade-dev
> > More help : https://help.launchpad.net/ListHelp
> >
--
Janek Kozicki http://janek.kozicki.pl/ |
Follow ups
References
-
Potential Blocks and Potential Particles - Documentation
From: Chia Weng Boon, 2019-01-21
-
Re: Potential Blocks and Potential Particles - Documentation
From: Vasileios Angelidakis (PGR), 2019-01-21
-
Re: Potential Blocks and Potential Particles - Documentation
From: Jerome Duriez, 2019-01-22
-
Re: Potential Blocks and Potential Particles - Documentation
From: Robert Caulk, 2019-01-22
-
Re: Potential Blocks and Potential Particles - Documentation
From: Bruno Chareyre, 2019-01-22
-
Re: Potential Blocks and Potential Particles - Documentation
From: Chia Weng Boon, 2019-01-22
-
Re: Potential Blocks and Potential Particles - Documentation
From: Bruno Chareyre, 2019-01-23
-
Re: Potential Blocks and Potential Particles - Documentation
From: Janek Kozicki, 2019-01-24
-
Re: Potential Blocks and Potential Particles - Documentation
From: Bruno Chareyre, 2019-01-25
-
Re: Potential Blocks and Potential Particles - Documentation
From: Janek Kozicki, 2019-01-25
-
Re: Potential Blocks and Potential Particles - Documentation
From: Bruno Chareyre, 2019-01-25
-
Re: Potential Blocks and Potential Particles - Documentation
From: Chia Weng Boon, 2019-01-26
-
Re: Potential Blocks and Potential Particles - Documentation
From: Janek Kozicki, 2019-01-26
-
Re: Potential Blocks and Potential Particles - Documentation
From: Chia Weng Boon, 2019-01-27