Questions tagged [isosurface]

25 questions
6
votes
0 answers

How to plot an isosurface of a 3D complex field with Mayavi avoiding color interpolation artifacts?

Taking as a basis the Atomic orbital example in the example gallery, I'm trying to visualize a 3D arbitrary complex field using an isosurface, in the way the cyclic HSV colormap illustrates the phase of the field. However, there is a problem in the…
Rafael
  • 402
  • 5
  • 17
4
votes
2 answers

Mapping the color scale of 3D isosurface on a scalar field

Let's say we have some 3D complex valued function f(x,y,z). Using Plotly, I'm trying to plot isosurfaces of the magnitude |f(x,y,z)| of such function. So far, everything is OK and my code seems to do well, please find below a working example on…
dolun
  • 91
  • 3
2
votes
0 answers

Plotly Isosurface: isovalues isn't in closed interval [isomin, isomax]

I'm using plotly.graph_objects.Isosurface to plot isosurfaces from my data. I noted that some isovalues of interactive plot are not in closed interval [isomin, isomax]. I wonder if it's a bug. According to plotly official repository …
httpsn
  • 23
  • 4
2
votes
0 answers

Problem with a POV-Ray algebraic surface (undesired line of black points)

Here is the POV-Ray image I get with the code below. As you can see there is a vertical line of black points which has nothing to do here. It goes away if I remove the isosurface. Do you know how can I get rid of these points? #version…
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
2
votes
1 answer

How to plot the outside of a 3D shape in Python Plotly without defining its faces?

I'm trying to plot some 3D shapes in Python Plotly. For the sake of practicing, I was trying to plot a cube. I tried the Isosurface command since I'm only interested in the outside of the shape, but surprisingly enough, the output was not a…
saQuist
  • 416
  • 7
  • 19
2
votes
1 answer

Is there a way to fill one side of the gyroid surface by using Mayavi?

I'm using Mayavi to plot an iso-surface of a gyroid. My problem is that I need a more solid structure by filling one side of the two generated areas. In the following pictures, you can see how my generated iso-surface looks like and how it should…
Kev2002
  • 17
  • 2
1
vote
1 answer

How to show all the edges of a cubic region in plotly?

In the figure about isosurface, only 6 edges of the cube are shown, where mirror='allticks' is used. And how to show the other 6 edges? the figure about isosurface My code is given as: import plotly.graph_objects as go fig =…
BONNED
  • 23
  • 1
  • 5
1
vote
2 answers

Python/Numpy equivalent of MATLAB isosurface functions

Anyone can suggest the equivalent function of MATLAB's "isosurface" function in python/numpy. The MATLAB isosurface returns the faces and vertices. I need the faces and vertices to create .stl files. MATLAB isosurface function looks like this: [f,v]…
1
vote
1 answer

Read and index data from .raw volume file with Java

I am working with volume data in raw format. I think that it is basically a 3D matrix of voxels that I want to load into a 3D array. I have no experience with this, and I’m unable to find much information on how it is done. My main problem is that I…
0
votes
0 answers

VTK marching cubes or contour for surface reconstruction using python

I am new to VTK python. I have a csv file with 8000 point (X, Y, Z) and corresponding 8000 signed distances (sdf) I am trying to read the data and apply VTK filter to reconstruct the surface at sdf = 0.0, but I dont see any option to create surface…
Ricky
  • 1
  • 1
0
votes
0 answers

Plotly Volume fig.show() doesnt display anything

I'm struggling with making Python Plotly to show a 3D volume plot (isosurface contours) in Spyder or Jupyter Notebook. I am successful with a simple example copied from the web: import numpy as np import plotly.graph_objs as go X, Y, Z =…
0
votes
0 answers

How to get the event when the mouse is hovering an isosurface in vispy?

I'm trying to get an event when my mouse is hovering an isosurface in a vispy scene (the goal is to display a text next to this isosurface). Here's my code: import sys from vispy import scene from vispy.scene.visuals import Text canvas =…
Jonjon
  • 1
0
votes
0 answers

create an isosurface with Poly3DCollection

I have a matlab code which plots isourfaces. It works fine. I have translated that code to python, and I am having some problems. I am using Poly3DCollection to create a surface, but it is not given me any isosurface, only a plot of the axes (this…
crc150
  • 1
  • 1
0
votes
1 answer

How to make a beautiful mesh of the Mandelbulb?

I know how to render a beautiful Mandelbulb with ray-tracing, as this one. But how to get a beautiful Mandelbulb as a 3D mesh? The Mandelbulb can be constructed as an isosurface, and I tried to do this mesh with the marching cubes algorithm but the…
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
0
votes
0 answers

Extracting isosurface from a vtkImageData

I am trying to create an isosurface plot from a vtkImageData. I have a numpy array which has the scalar fields. I kept the scalar field as 0 and 1 for testing. Given below is my pipeline: import vtk from vtk.util import numpy_support import numpy as…
Jish
  • 76
  • 1
  • 7
1
2