Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7615823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:44:18+00:00 2026-05-31T02:44:18+00:00

I have 3D binary array which represents a volume, where a[x,y,z] = 0 indicates

  • 0

I have 3D binary array which represents a volume, where a[x,y,z] = 0 indicates no object and a[x,y,z] = 1 indicates the object region.

I want to save this as a VTK file and view it in ParaView. What is the simplest way to achieve this? Suggestions for other approaches are welcome.

I looked through the VTK file format, but I have not found direct way to achieve what I need, just via other structures.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:44:20+00:00Added an answer on May 31, 2026 at 2:44 am

    It seems Paraview accepts raw data http://paraview.org/Wiki/Data_formats#Raw_files.
    So why not just write out your data in a triple for-loop to raw binary data?

    How to open raw data file in Paraview (edit):

    Example: Fuel from Uni Tuebingen

    1. open .raw file

    2. properties: Data Scalar Type: unsigned char
      properties: Data Extend: 1<tab>64<tab>1<tab>64<tab>1<tab>64
      properties: Apply

    3. click on Contour (next to the calculator symbol)
      properties: Apply

    Now you should see something. From here you can play around a bit.

    In VTK itself (i.e. calling from C++) I remember there were some nice volume render algorithms available (ray casting, 2D textures, etc) but I could not find them in paraview right now. Edit: But Robert could (see comment).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a big lump of binary data in a char[] array which I
I have a web service that returns the binary array of an object. Is
I have some binary data which has a corresponding map file which identifies each
Consider the following array, which is claimed to have represented a binary tree: [1,
I have a binary array char buffer[N]; which contains two bytes to be interpreted
I have a binary file I've loaded using an NSData object. Is there a
I have an array of strings which is sorted by default. I want a
I have a binary data which I am reading into an array of long
I have a binary file which I am reading to a collection of byte
I have binary array in c, I want to compress the array, kindly suggest

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.