Back to the main page.
Bug 3017 - ft_plot_mesh crashes with cfg.method = 'surfaceonly'
Status | CLOSED FIXED |
Reported | 2015-11-27 16:34:00 +0100 |
Modified | 2016-06-14 16:14:52 +0200 |
Product: | FieldTrip |
Component: | plotting |
Version: | unspecified |
Hardware: | Other |
Operating System: | Linux |
Importance: | P5 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: | http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3009 |
Simon - 2015-11-27 16:34:47 +0100
With cfg.method = 'surface only' ft_plot_mesh crashes: Error using ft_plot_mesh (line 160) no vertices found This is due to mesh2edges in line 101 which produces mesh.pos, later on mesh.pnt is required.
Robert Oostenveld - 2015-11-30 11:07:28 +0100
This has to do with the pos/pnt renaming that I have recently been working on, and is also reflected in bug 3009 For fieldtrip/plotting it affects mac011> grep -l pnt *.m ft_plot_axes.m ft_plot_dipole.m ft_plot_headshape.m ft_plot_mesh.m ft_plot_sens.m ft_plot_slice.m ft_plot_topo3d.m ft_plot_vector.m ft_plot_vol.m Although this might break upstream functionality, I want to push this ahead and therefore I'll change all pnt into pos. I tested all test scripts in fieldtrip/plotting/test, and for two ft_plot_xxx functions I added a call to private/fixpos to rename the fields in the input structures. mac011> svn commit Sending ft_plot_axes.m Sending ft_plot_dipole.m Sending ft_plot_headshape.m Sending ft_plot_mesh.m Sending ft_plot_sens.m Sending ft_plot_slice.m Sending ft_plot_topo3d.m Sending ft_plot_vector.m Sending ft_plot_vol.m Adding private/fixpos.m Transmitting file data .......... Committed revision 10950.