surfo

버전 1.2.0.0 (2.8 KB) 작성자: Andres
workaround for surface lighting with OpenGL
다운로드 수: 988
업데이트 날짜: 2009/7/9

라이선스 보기

There's a bug in the OpenGL renderer that produces faulty face lighting in surface plots, see picture above and http://www.mathworks.com/matlabcentral/newsreader/view_thread/249184 .
This submission contains a function that computes face normal data for the 'VertexNormals' property of the surface that fixes the lighting (facenorm.m) as well as a workaround function that you can just use in place of surf (surfo.m).

Only use this if you get erroneous surface plots and you can't go without OpenGL and flat lighting.

인용 양식

Andres (2024). surfo (https://www.mathworks.com/matlabcentral/fileexchange/23882-surfo), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2008b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

v1.01 · code with improved speed as kindly suggested by Jan Simon · minor text changes

1.1.0.0

perform meshgrid within facenorm.m, if necessary

1.0.0.0