Re: [Freesurfer] list of normals to triangle vertices

2015-10-13 Thread Krieger, Donald N.
> > Best regards, > > > > Don > > > >> -Original Message- > >> From: freesurfer-boun...@nmr.mgh.harvard.edu [mailto:freesurfer- > >> boun...@nmr.mgh.harvard.edu] On Behalf Of Bruce Fischl > >> Sent: Tuesday, October 13, 2015

Re: [Freesurfer] list of normals to triangle vertices

2015-10-13 Thread Bruce Fischl
) or vica versa? Best regards,   Don -Original Message- From: freesurfer-boun...@nmr.mgh.harvard.edu [mailto:freesurfer- boun...@nmr.mgh.harvard.edu] On Behalf Of Bruce Fischl Sent: Tuesday, October 13, 2015 8:45 AM To: Freesurfer support list Subject: Re: [Freesurfer] list of normals to t

Re: [Freesurfer] list of normals to triangle vertices

2015-10-13 Thread Krieger, Donald N.
.mgh.harvard.edu] On Behalf Of Bruce Fischl > Sent: Tuesday, October 13, 2015 8:45 AM > To: Freesurfer support list > Subject: Re: [Freesurfer] list of normals to triangle vertices > > Hi Don > > mris_convert -n lh.white lh.white.normals.asc > > should do the trick. And th

Re: [Freesurfer] list of normals to triangle vertices

2015-10-13 Thread Bruce Fischl
Hi Don mris_convert -n lh.white lh.white.normals.asc should do the trick. And this is the way that the area is computed (from mrisurf.c): static float mrisTriangleArea(MRIS *mris, int fac, int n) { int n0,n1; face_type *f; float v0[3],v1[3],d1,d2,d3; n0 = (n == 0) ?

[Freesurfer] list of normals to triangle vertices

2015-10-13 Thread Krieger, Donald N.
Hi everyone, I need to create the vector normal to the surface at each "white" vertex. I would like to end up with 7 fields in each entry: 1 Vertex number 2-4 RAS coordinates 5-7 RAS components of the normal vector pointed from ctx --> wm mri_annotation2label gets me the first 4. I just