← Back to team overview

yade-dev team mailing list archive

Re: Facet Highlight

 

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 <eudoxos@xxxxxxxx>

>
> > 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 python, it is called
> as callback when you select a body with shift+right mouse button:
> scripts/simple-scene.py shows that. In that functions, you can do other
> things; I used it to dump all interaction properties of that body to the
> console etc, for debugging.
>
> HTH, Vaclav
>
> > ______________________________
> > [ENG] Best Regards
> > [GER] Mit freundlichen Grüßen
> > [RUS] С наилучшими пожеланиями
> > [UKR] З найкращими побажаннями
> >
> > Anton Gladkyy
> > _______________________________________________
> > Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> > Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> > More help   : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help   : https://help.launchpad.net/ListHelp
>

Attachment: fp.tgz
Description: GNU Zip compressed data


Follow ups

References