Back to the main page.

Bug 3173 - ft_checkdata fails if mesh doesn't have a .tri field

Status CLOSED FIXED
Reported 2016-08-17 15:15:00 +0200
Modified 2017-01-17 11:29:47 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Simon - 2016-08-17 15:15:33 +0200

I.e. mesh = ft_prepare_mesh(mri, 'method', 'hexahedral') mesh would have no .tri and therefore ft_checkdata(mesh) would crash in line 209 where it would need .tri I think this could be solved by distinguishing between all possible elements a mesh could contain. Thus far I found .tri and .hex.


Robert Oostenveld - 2016-08-17 15:28:04 +0200

it can also be .tet please make a PR


Simon - 2016-08-17 15:32:33 +0200

(In reply to Robert Oostenveld from comment #1) Added .tet, PR is open


Robert Oostenveld - 2016-08-18 09:03:23 +0200

I have merged https://github.com/fieldtrip/fieldtrip/pull/207


Robert Oostenveld - 2017-01-17 11:29:47 +0100

closed multiple bugs that were resolved some time ago