[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help with patch code in Matlab
From: |
Rik |
Subject: |
Help with patch code in Matlab |
Date: |
Sun, 23 Mar 2014 16:09:23 -0700 |
3/23/14
Could someone run the following code example under Matlab?
pts = [ 10.6946 -4.0000 3.0253;
10.6946 -3.7071 3.0253;
13.1352 -3.7071 2.9571;
13.1352 -4.0000 2.5862 ];
facet = [ 1, 2, 3, 4 ];
p = patch ('Faces',facet, 'Vertices',pts);
saveas (gcf, 'patch_test.png')
Under Octave, OpenGL seems to be swallowing one of the vertices and it
creates a triangle instead of a quadrilateral patch.
--Rik
- Help with patch code in Matlab,
Rik <=