Line created with draw3 overlaps fill3-object which should be in foreground. Using camlight solves the problem
조회 수: 3 (최근 30일)
이전 댓글 표시
I'm a little bit confused why this upper left line is in the foreground:
When I add
camlight;
after drawing, the picture is displayed how it should be:
It's to much code to provide here, but these are the last lines of my file:
for kn = 1:6
plot3([L_P_Points(1,kn), U_P_Points(1,kn)], [L_P_Points(2,kn), U_P_Points(2,kn)], [L_P_Points(3,kn), U_P_Points(3,kn)], 'k', 'LineWidth', 3)
end
xlabel('x'); ylabel('y'); zlabel('z');
axis([-1.2 1.2 -1.2 1.2 -0.5 1.2]); axis equal
grid
view(20, 20)
%camlight
hold off
In the for-loop I draw these 6 lines. Maybe somebody knows this problem and has a solution?
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!