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
> 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
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
> 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
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
> 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
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
> 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
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
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
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://
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
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
> 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
> 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
15 matches
Mail list logo