READ VTK FILE

130 views
Skip to first unread message

jiaxiang wang

unread,
Sep 14, 2018, 11:52:23 AM9/14/18
to dream3d-users
Dear sir,

I have a question, I am using dream3d generate a model. Than use VTK rectilinear Grid exporter to generate a vtk file. I did some modification on that vtk file. After that I want to create a pipeline to read the vtk file and do surface-mesh. I tried VTK structured_points importer. But it show a error-"was expecting two words, but got". The error code is -61005. I even tried the original vtk file, but I get same error information. Is there another way to do it, or how can I fix this error?

Thank you
Jiaxiang 

Michael Jackson

unread,
Sep 14, 2018, 12:51:42 PM9/14/18
to jiaxiang wang, dream3d-users

Oddly, DREAM.3D does not understand how to read a rectilinear grid VTK file. Probably the best way to go about this would be to export the data as just plain text files and then develop a pipeline to recreate the data structure and then read the exported data back into DREAM.3D.

 

-- 

Michael A. Jackson                 400 S. Pioneer Blvd
Owner, President                   Springboro, Ohio 45066
BlueQuartz Software, LLC           EMail: mike.j...@bluequartz.net
Voice: 937-790-1601                Web: http://www.bluequartz.net
Fax: 937-746-0783

 

--
You received this message because you are subscribed to the Google Groups "dream3d-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dream3d-user...@googlegroups.com.
To post to this group, send email to dream3...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/55306cc5-4055-4e3f-8b42-7eb37dabf642%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jiaxiang wang

unread,
Sep 14, 2018, 3:26:46 PM9/14/18
to dream3d-users
i appreciate you can answer my questions.

That's odd.  It has an exporter for rectilinear grid VTK file. In the case, it has a VTK structured_points importer. Does it contain a VTK structured_point exporter? 

I used a import ASCII data file to read the  VTK file. And than use write dream3D data file filter, but there is nothing in the generated xdmf file. 

In the importer ASCII data filter, it ask the for attribute matrix type. In my vtk file, it has lots of featureID. what is this data belong to?

Best
Jiaxiang Wang 


On Friday, September 14, 2018 at 9:51:42 AM UTC-7, Michael Jackson wrote:

Oddly, DREAM.3D does not understand how to read a rectilinear grid VTK file. Probably the best way to go about this would be to export the data as just plain text files and then develop a pipeline to recreate the data structure and then read the exported data back into DREAM.3D.

 

-- 

Michael A. Jackson                 400 S. Pioneer Blvd
Owner, President                   Springboro, Ohio 45066

BlueQuartz Software, LLC           EMail: mike.jackson@bluequartz.net


Voice: 937-790-1601                Web: http://www.bluequartz.net
Fax: 937-746-0783

Michael Jackson

unread,
Sep 14, 2018, 4:29:34 PM9/14/18
to jiaxiang wang, dream3d-users

You will want to create a “Cell Attribute Matrix”. You will also need to create an “image Geometry” with the proper dimensions and attach it to the DataContainer that holds your data.

 

 

--

Michael Jackson | Owner, President

      BlueQuartz Software

[e] mike.j...@bluequartz.net

[w] www.bluequartz.net

 

From: <dream3...@googlegroups.com> on behalf of jiaxiang wang <eternitywa...@gmail.com>
Date: Friday, September 14, 2018 at 3:26 PM
To: dream3d-users <dream3...@googlegroups.com>
Subject: Re: READ VTK FILE

 

i appreciate you can answer my questions.

 

That's odd.  It has an exporter for rectilinear grid VTK file. In the case, it has a VTK structured_points importer. Does it contain a VTK structured_point exporter? 

 

I used a import ASCII data file to read the  VTK file. And than use write dream3D data file filter, but there is nothing in the generated xdmf file. 

 

In the importer ASCII data filter, it ask the for attribute matrix type. In my vtk file, it has lots of featureID. what is this data belong to?

 

Best

Jiaxiang Wang 

On Friday, September 14, 2018 at 9:51:42 AM UTC-7, Michael Jackson wrote:

Oddly, DREAM.3D does not understand how to read a rectilinear grid VTK file. Probably the best way to go about this would be to export the data as just plain text files and then develop a pipeline to recreate the data structure and then read the exported data back into DREAM.3D.

 

-- 

Michael A. Jackson                 400 S. Pioneer Blvd
Owner, President                   Springboro, Ohio 45066

BlueQuartz Software, LLC           EMail: mike.j...@bluequartz.net


Voice: 937-790-1601                Web: http://www.bluequartz.net
Fax: 937-746-0783

 

 

From: <dream3...@googlegroups.com> on behalf of jiaxiang wang <eternitywa...@gmail.com>
Date: Friday, September 14, 2018 at 11:52 AM
To: dream3d-users <dream3...@googlegroups.com>
Subject: READ VTK FILE

 

Dear sir,

 

I have a question, I am using dream3d generate a model. Than use VTK rectilinear Grid exporter to generate a vtk file. I did some modification on that vtk file. After that I want to create a pipeline to read the vtk file and do surface-mesh. I tried VTK structured_points importer. But it show a error-"was expecting two words, but got". The error code is -61005. I even tried the original vtk file, but I get same error information. Is there another way to do it, or how can I fix this error?

 

Thank you

Jiaxiang 

--
You received this message because you are subscribed to the Google Groups "dream3d-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dream3d-user...@googlegroups.com.
To post to this group, send email to dream3...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dream3d-users/55306cc5-4055-4e3f-8b42-7eb37dabf642%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "dream3d-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dream3d-user...@googlegroups.com.
To post to this group, send email to dream3...@googlegroups.com.

Stanislav Buklovskyi

unread,
Oct 19, 2021, 3:56:44 PM10/19/21
to dream3d-users
Hello everyone,

It feels odd to bring up such an old question from 2018, but I had the same problem and was able to solve it by changing the second row to "GrainIds Stored in Vtk File" text (as it is in the documentation for this filter). Before that, it was different because I thought this raw is for any text comment in the file.

Best regards,
Stas

пятница, 14 сентября 2018 г. в 11:52:23 UTC-4, jiaxiang wang:
Reply all
Reply to author
Forward
0 new messages