SCIRun User Mailing List

Text archives Help


Re: [SCIRUN-USERS] TriSurfField


Chronological Thread 
  • From: Andrew Janson <jansonap@gmail.com>
  • To: "Branham, Barry" <bhb@wustl.edu>
  • Cc: Jess <jess@sci.utah.edu>, "scirun-users@sci.utah.edu" <scirun-users@sci.utah.edu>
  • Subject: Re: [SCIRUN-USERS] TriSurfField
  • Date: Mon, 22 Apr 2019 15:25:13 -0600

Hi Barry,

For Trisurf meshes, I find the easiest SCIRun file format to convert to when dealing with proprietary/uncommon formats is a ".fac" and ".pts". Here, these are two files with the exact same name but with a .fac and .pts extensions, respectively. The .fac file holds all of the triangle connections and the .pts file holds all of the x,yz vertex points. From your "atriasmooth.surf" file I copied everything under "Vertices 501" into "atriasmooth.pts" and everything under "Triangles 1002" into "atriasmooth.fac". If you do not need to to this often, copy and past works easily, but this example should enable you to write a quick converter script if need be. The image below is what I see when I load this into SCIRun, I'm not sure how your object should look, but you can confirm if this is correct. Inside of a SCIRun ReadField you can select "TriSurfField (*.fac *.tri *.pts ...)" and pick either the .fac or .pts file (just make sure they have the exact same name).

Thanks,
Andrew Janson

image.png

On Mon, Apr 22, 2019 at 12:39 PM Branham, Barry <bhb@wustl.edu> wrote:

I'm not expert in matlab so would have a bit of a learning curve to use it.  In SCIRun_source/src/Applications/Utils there is a program 'MtoTriSurfField.cc' which writes a .fld file which I tried to emulate but didn't get the right .fld.  I could easily do what I need but can't find any documentation on TriSurfField, GenericField, TriSurfMesh, Property Manager, etc.  Where's the documentation?


Thanks,

Barry


Barry Branham, Computer Operations Engineer
Cardiothoracic Surgery Research
Washington University School of Medicine
bhb@wustl.edu  636-236-4847

From: Jess <jess@sci.utah.edu>
Sent: Monday, April 22, 2019 1:21:49 PM
To: Branham, Barry
Cc: scirun-users@sci.utah.edu
Subject: Re: [SCIRUN-USERS] TriSurfField
 
Sorry, I accidentally sent without the files.  Here they are.  These conversions can be done in matlab, python, bash, or any other scripting language.

cheers,
Jess






On Apr 22, 2019, at 12:11 PM, Jess <jess@sci.utah.edu> wrote:

Hi Barry,

I think I understand what you are trying to do.  The .fld files are scirun’s native format, and unfortunately no other software supports it.  The only practical way to make a .fld file is to save it from SCIRun, as ‘25feb97_sock_closed.fld’ was.  However, there are other file formats that will work for your applications.  For instance, the matlab format for a trisurf mesh is fairly simple and only requires a matlab structure with the fields node and face.  I am attaching a your surface file converted to matlab format as an example.  I will also attach some ascii files in a format that SCIRun can read.  

cheers,
Jess




On Apr 22, 2019, at 7:30 AM, Branham, Barry <bhb@wustl.edu> wrote:

Hi Jess,

Thanks for the rapid reply.  The Amira file has '.surf' extension and is ascii.  I tried loading it but got 'Error reading file'.  I've attached it. I have code to read the file and have tried writing an app that would read it and convert it to an .fld type file but so far haven't been able to get an .fld file with the correct info at the top similiar to '25feb97_sock_closed.fld'.  That was what I was originally asking about.  Some where, someone must have used some app to create '25feb97_sock_closed.fld'.  That's what I need.  Any help doing that much appreciated.

Thanks,
Barry

Barry Branham, Computer Operations Engineer
Cardiothoracic Surgery Research
Washington University School of Medicine
bhb@wustl.edu  636-236-4847

From: Jess <jess@sci.utah.edu>
Sent: Friday, April 19, 2019 1:41:28 PM
To: Branham, Barry
Cc: scirun-users@sci.utah.edu
Subject: Re: [SCIRUN-USERS] TriSurfField
 
Hi Barry,  

There are several file formats supported by SCIRun. If you click on the options in the ReadField file loader dialogue, you should see a list.  Common file types for trisurfas that SCIRun supports are .stl, .vtk, .obj, and ascii.    Can you tell me the file type that you have from Amira?

cheers,
Jess




On Apr 19, 2019, at 8:27 AM, Branham, Barry <bhb@wustl.edu> wrote:

Hello, 

I'm attempting to use inversion to find atrial activation times from torso electrodes.  We use Amira to generate torso locations and the atrial surface.  I can read the Amira atrial surface file but haven't been able to generate the corresponding TriSurfField .fld file correctly.  I need a file like 25feb97_sock_closed.fld which is used in the tikhonov-inversion.srn example.  Can anyone tell me how to do this?  A code example would be great. 

Thanks, 
Barry



Barry Branham, Computer Operations Engineer
Cardiothoracic Surgery Research
Washington University School of Medicine
bhb@wustl.edu  636-236-4847

 

The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.

 

The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
<atriasmooth.surf>
________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.


 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.


________________________________________________
SCIRun users mailing list:  scirun-users@sci.utah.edu
http://www.sci.utah.edu/software/scirun.html
To unsubscribe, email sympa@lists.sci.utah.edu with the "unsubscribe scirun-users" in the message body.

PNG image

Attachment: atriasmooth.fac
Description: Binary data

Attachment: atriasmooth.pts
Description: Binary data




Archive powered by MHonArc 2.6.18.

Top of page