How to draw a patch with different front-face and back-face colors?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Consider drawing a patch, say
patch([0 1 1], [0 0 1], [1 2 3], 1).
I want the patch sides to be of different color: say, "red" when I look at its front-face and "blue" when I look at its back side. Is it possible?
Or maybe it's possible to switch on the "back-face culling" in MATLAB?
2 Kommentare
Agustín Trujillo-Pino
am 4 Sep. 2015
Bearbeitet: Agustín Trujillo-Pino
am 4 Sep. 2015
You need to create your own callback every time the user moves the mouse to rotate, and in that callback you compute what faces are front-facing or back-facing to the camera, and set the corresponding color for each one.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Tracking and Motion Estimation finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!