Rank: 235963 based on 0 downloads (last 30 days) and 0 file submitted
photo

Eff

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Eff View all
Updated File Comments Rating
09 Oct 2012 Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A

Hi Adam,

I'd like to use your code for the creation of a volume from an isosurface defined by the vertices and the faces as used by patch. However, the VOXELISE method does not return the expected results. I have created a simple example in order to reproduce the problem:
http://pastebin.com/PkWRuyyZ

Am I doing something wrong or is this a bug in the code?

Thanks,
Eff

09 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

I believe I have found out how to reproduce the problem. If I use 'painters' (default) as figure renderer the problem does not occur. However, when using opengl rendering the above mentionend problem happens.

To reproduce, execute set(0,'DefaultFigureRenderer','OpenGL') before running my example code (text() makes no difference)

Unfortunately, 'painters' is no option for me as I am doing more advanced 3d rendering.

09 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Hi Ben,
I have messed a bit with drawnow. The simple example I have given is fine by using drawnow. However, if you additionally use the text function in the plot it is not working correctly. Maybe you can reproduce the issue on your system:

mainGrid = uiextras.Grid( 'Parent', figure);
tabPanel = uiextras.TabPanel( 'Parent', mainGrid, 'Padding', 5);

% first tab
firstHBox = uiextras.HBox( 'Parent', tabPanel);
firstVBox = uiextras.VBox('Parent', firstHBox);
uicontrol('style', 'pushbutton', 'String', 'b1', 'parent', firstVBox);
axes('parent', firstVBox);
hold on;
plot(1:100);
text(10,10, 'text of first tab');
drawnow;

set(firstVBox, 'Sizes', [-1 -4]);

% second tab
secondHBox = uiextras.HBox( 'Parent', tabPanel, ...
'Padding', 5);
secondVBox = uiextras.VBox('Parent', secondHBox);
axes('parent', secondVBox);
hold on;
plot(100:-1:1);
text(50,50, 'text of second tab');
drawnow;
uicontrol('style', 'pushbutton', 'String', 'b2', 'parent', secondVBox);

set(secondVBox, 'Sizes', [-4 -1]);

With using drawnow, I don't have any plot in my first tab. When drawnow is used, the effect is the same as in the screenshot above (additionally the text of tab 2 is schon in tab 1).

Thanks a lot!

06 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

An addition: I also had similar issues on my Mac in my previous work.

06 Jul 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Hi Ben,

Thanks for your reply! I am running Matlab R2011b on Linux. Here is a screenshot of the problem: http://img41.imageshack.us/img41/9826/selection006a.png .

Also, the workarounds I described only work for the mini example. In my real application these workarounds are of no use.

Help is much appreciated!

Top Tags Applied by Eff
weka
Files Tagged by Eff
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Sep 2012 Screenshot mweka: Running Machine Learning Tool Weka from MATLAB Runs Machine Learning Tool Weka from MATLAB Author: Durga Lal Shrestha weka 90 4
  • 5.0
5.0 | 1 rating

Contact us