[Yade-dev] Facet Highlight

2009-08-07 Thread Anton Gladky
Is it possible to highlight facets like boxes do? __ [ENG] Best Regards [GER] Mit freundlichen Grüßen [RUS] С наилучшими пожеланиями [UKR] З найкращими побажаннями Anton Gladkyy ___ Mailing list: https://launchpad.net/~yade-de

Re: [Yade-dev] Facet Highlight

2009-08-11 Thread Václav Šmilauer
> Is it possible to highlight facets like boxes do? Yes, but the facet must not be drawn as wire. If #3 is facet, do something like this: bs=O.bodies[3].shape shape['wire']=False shape['highlight']=True (translated straightforwardly to c++) Note that if you define onBodySelected function in py

Re: [Yade-dev] Facet Highlight

2009-08-12 Thread Anton Gladky
I have tried this, but it does not highlight facets. Please, check the attached script. __ [ENG] Best Regards [GER] Mit freundlichen Grüßen [RUS] С наилучшими пожеланиями [UKR] З найкращими побажаннями Anton Gladkyy 2009/8/11 Václav Šmilauer > > > Is it possible to

Re: [Yade-dev] Facet Highlight

2009-08-12 Thread Václav Šmilauer
> I have tried this, but it does not highlight facets. > > Please, check the attached script. Eh, you are passing highlight to utils.facet... that is something different from what I said. I added that parameter in r1939 though so it works now as you expect. The trick is that the **kw params are

Re: [Yade-dev] Facet Highlight

2009-08-13 Thread Anton Gladky
It works very interesting, Facets change their color all the time :) Like chameleon __ [ENG] Best Regards [GER] Mit freundlichen Grüßen [RUS] С наилучшими пожеланиями [UKR] З найкращими побажаннями Anton Gladkyy 2009/8/12 Václav Šmilauer > > > I have tried this, bu

Re: [Yade-dev] Facet Highlight

2009-08-13 Thread Václav Šmilauer
> It works very interesting, Facets change their color all the time :) Well, the point of highlighting is to make a body visible among bunch of other bodies. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net

Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Anton Gladky
Is it difficult to make "normal" highlight (like BOXes do), and "chameleon" make like an option? What files should I inspect for that? Thank you 2009/8/13 Václav Šmilauer > > > It works very interesting, Facets change their color all the time :) > > Well, the point of highlighting is to make

Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Václav Šmilauer
> Is it difficult to make "normal" highlight (like BOXes do), and > "chameleon" make like an option? There is no special box highlight... The only highlight it the "chameleon" one, the rest is picking brighter color for that body in question. ___ Ma

Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Anton Gladky
Please, try this script. The color is the same, but facets have no shadows _ from yade import utils o=Omega() kw_facets={'frictionAngle':0.3,'young':37e9,'wire':False,'dynamic':False,'highlight':False} q1 = Quaternion(Vector3(0,0,1),0) o1,o_angl = q1.ToAxisAngle() id=o.bodies.append(utils.face

Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Václav Šmilauer
ok, I get your point. That is caused by the way openGL rendering code is written; somehow boxes have glossy surface and facets don't. I am in no way familiar with opengl, it is mostly code Olivier has written in the prehistoric (= pre-python) period. If you know something about opengl, go for it, i

Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Václav Šmilauer
In another words: box's color depends on its relative orientation to the light source, with facets, the color is always the same regardless of orientation WRT the light source. It makes facet's surfaces much less 3d actually. ___ Mailing list: https://

Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Anton Gladky
Ok, thanks for information. It is interesting, and I will try to find out how it was made. Actually, what is the difference between Blueprints and Bugs? Blueprints are proposals? So, maybe it is a blueprint? 2009/8/26 Václav Šmilauer > In another words: box's color depends on its relative or

Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Anton Gladky
https://blueprints.launchpad.net/yade/+spec/facets-shadow 2009/8/26 Václav Šmilauer > > Actually, what is the difference between Blueprints and Bugs? > > Blueprints are proposals? So, maybe it is a blueprint? > Oh yes, that's right. (I would use bugs for small things, but this is > definitely

Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Václav Šmilauer
> Actually, what is the difference between Blueprints and Bugs? > Blueprints are proposals? So, maybe it is a blueprint? Oh yes, that's right. (I would use bugs for small things, but this is definitely a bigger one.) ___ Mailing list: https://launchpa

Re: [Yade-dev] Facet Highlight

2009-08-27 Thread Václav Šmilauer
> https://blueprints.launchpad.net/yade/+spec/facets-shadow FYI it was quite trivial and is commited in r1744. ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev