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
0 answers

Input format for marching_cubes_lewiner()?

This is the first time I am using the marching cubes algorithm and am wondering what would be the right format for volume input for the marching_cubes_lewnier() function? I am following this example and would like to use my set of points in place…
MadPhysicist
  • 175
  • 2
  • 11
0
votes
1 answer

How to plot output from marching_cubes_lewiner in python?

I've been able to use the lewiner marching cubes algorithm in python. It outputs vertices, faces, and other attributes. I want to be sure that it is working correctly, so I'd like to plot a 3D image of what the function returns. However, I have not…
McM
  • 471
  • 5
  • 21
0
votes
1 answer

c# unity 3d coordinates map sync

I'm working on a procedurally generated map/game. I have 3D chunks with 20x20x20 points in a 3D array. I'm using marching cubes algorithm to generate the chunks. I try to manipulate the density with adding and subtracting the values but in the same…
0
votes
1 answer

Is it possible to reconstruct(interpolate) a 3D surface using skimage marching cube from 3D point cloud?

I have a 3D point cloud: import numpy as np x = np.array([...]) y = np.array([...]) z = np.array([...]) Is it possible to "reconstruct" a 3D surface using skiamge's marching_cubes from this 3D point cloud? I checked skimage's…
CodingNow
  • 998
  • 1
  • 11
  • 23
0
votes
1 answer

Creating a mesh out isovalues in python. Marching cubes

I have created a program that is able to predict given a set positions of shape nx3 , an it a isovalue of shape nx1 (n is the # of samples). Now I want to be able to visualize this and save it as a mesh, I have read that a way to find the vertices…
0
votes
0 answers

90 angle with marching cubes algorithm - interpolating function

I am implementing Marching Cubes Algorithm. Let say that I have 3D image which is similar to that draw picture. When I use MC algorithm I got something like this: effect Everywhere where angle is ~ 90 degrees MC algorithm approximate that elements…
VirtualUser
  • 215
  • 2
  • 9
0
votes
1 answer

How to import .ply files using PCL io::loadPLYFile?

When importing a ply-file into my program I get an Error-message saying that something went wrong with the following message: C:\Users\...\data\apple.ply:8: property 'list uint8 int32 vertex_indices' of element 'face' is not handled I used a sample…
0
votes
0 answers

Visual Hull C++ and marching cube

I am quite new in 3D modelling field and I need to create a visual hull and marching cube in c++. So, I have a set of binary masks, camera matrix and I would like to create a STL file. I don't really understand how this algorithms are working and…
Vali Rusu
  • 31
  • 4
0
votes
1 answer

Smooth Mayavi Visualization of 3D Points

It's my first time visualizing in 3D and working with mayavi so please forgive my lack of knowledge. I have a 3D Numpy which I wanna visualize. The Array represents a voxel grid, so far I tried it with points3d, but the visualization doesn't look…
Oroshimaru
  • 338
  • 2
  • 12
0
votes
1 answer

Marching Cubes for Quadrics - Three.js

I have tried to implement an applet showing the distinct types of space quadrics with the Marching Cubes library of three.js to render implicit surfaces. The shapes that appear though are not right and I guess I am not implementing the properties of…
Jjm
  • 261
  • 2
  • 10
0
votes
1 answer

gradient multicolor metaballs with threejs and marchingcubes

I am looking on how to implement something similar than this work: https://vimeo.com/9121195 . But with explicitly attributing colors to each metaball from an array of given colors. As far as I can see, this is done entirely from the shader side in…
0
votes
1 answer

Save a Mesh file under VTK

I'm trying to generate a mesh from a 3d volume. I processed on VTK, using Marching Cube (vtkMarchingCubes.h); but I still can't found how to save the result view, as vtk file! any idea I appreciate your help.
MGM
  • 133
  • 6
0
votes
1 answer

Problems with rendering transparent objects in VTK

When rendering transparent objects whith python VTK lib, strange effects of the image display appear. At some points when we rotate objects, something happens with the transparency of objects. They disappear from the foreground. Sometimes it happens…
0
votes
1 answer

Why does Transvoxel make blocky terrain?

I've been working on an implementation of Transvoxel since while. Now it works, it polygonizes, but it's kind of blocky. Like the image below: This is the code for polygonization: private static Mesh PolygonizeRegularCell (Vector3i pos, Mesh mesh,…
Statey
  • 631
  • 5
  • 10
0
votes
1 answer

Making a procedural terrain with Transvoxel/Marching cubes and 3D perlin noise

I'm working on an implementation of Transvoxel and it works fine, but I can't get on with the noise. Now I'm generating a 2d heightmap using perlin noise and using the heightmap I'm setting the cell values, but I don't have any idea on how to…
Statey
  • 631
  • 5
  • 10