Questions tagged [marching-cubes]

An algorithm for creating a triangular mesh from a three-dimensional scalar field, or graphing an implicit function of the form f(x,y,z) = c.

Marching cubes is a computer graphics algorithm for creating a triangular mesh from a three-dimensional scalar field, or equivalently, graphing an implicit function of the form f(x,y,z) = c.

For more information, see:

144 questions
0
votes
1 answer

how does getdepth function work in MarchingCube algorithm?

I am trying to understand Marching Cube Algorithm, so for I think I have understood how triangles are formed and how normals are calculated in each grid. I can see there is a linked list kind of structure that links each grid to another. But when I…
solti
  • 4,339
  • 3
  • 31
  • 51
0
votes
1 answer

vtkMarchingCubes export nifti surfaces to wavefront OBJ

I want to run vtkMarchingCubes on a nifti label set. Regions of voxels, for which I want to produce surfaces all share the same value. I have two problems. First, I seem to be setting up the algorithm incorrectly because the resulting vtkPolyData…
Brooks
  • 2,082
  • 2
  • 18
  • 26
0
votes
2 answers

Marching Cubes (C++ to C#)

I am trying to implement marching cubes in C#, but I've come to a part where I don't understand the algorithm and I don't how to implement it. int Polygonise(GRIDCELL grid, double isolevel, TRIANGLE *triangles) The third argument I don't really…
Daniel Node.js
  • 6,734
  • 9
  • 35
  • 57
0
votes
1 answer

Using noise to generate marching cube terrain?

I've succesfully made a marching cubes class in C# XNA and am using Lib noise to generate 3d perlin noise, but when I tried to generate terrain using the values of the perlin noise as the densities for my marching cubes it generates a large chunk of…
CaffeinatedCM
  • 754
  • 1
  • 11
  • 24
-1
votes
1 answer

How can I speed up this program written in Python?

The following program is a solution to the Marching Square problem in Python: from typing import List def GetCaseId(Point_A_data: float, Point_B_data: float, Point_C_data: float, Point_D_data: float, threshold): …
user366312
  • 16,949
  • 65
  • 235
  • 452
-1
votes
1 answer

How to generate 3D mesh from CT Slices (.raw) using marching cubes algorithm in C#?

I am trying to generate 3D mesh (isosurface extraction) from CT slices(.raw file) using the marching cubes algorithm. The RAW data is 8 bits 512x512 px and 207 slices. So the input is CT Raw data and the output is a 3D mesh of the CT Object Can you…
-1
votes
1 answer

Is there any fast algorith to find maximum outer contour of figure?

I have a labeled matrix obtained from scipy.measure.label. Now for each feature I need to obtain its outer contour. I tried cv2.findContours but contour it find not consist with labels. I think there should be a simple algorithm to do this, but…
A. Bykov
  • 288
  • 1
  • 16
-1
votes
1 answer

pmneila Maching cube, configure input

I am working in python and try to use pmneila Maching cube (https://github.com/pmneila/PyMCubes). In my system, I got a list of coordinates for each of my cubes. A simple example : myCubes = [] myCubes.append( vec3(x,y,z) ) # for each of my…
Orion
  • 301
  • 3
  • 12
-4
votes
1 answer

Interpolation in Marching Square Algorithm

Here is the GitRepository of the source code. Marching Square In the "Linear Interpolation" section This article discusses how to interpolate the values when the lines are oblique. For example, for Case#2 it has the following calculation: I have…
user366312
  • 16,949
  • 65
  • 235
  • 452
1 2 3
9
10