Best approach to visualize Marching Cubes / Surface Nets / Dual Contouring

Hey folks!

Very new to Unreal Engine, so sorry if duplicate — I searched forums, but not sure if answers are up-to-date with the newest tech.

Open to try everything 5.4 / Beta, latest UDynamicMesh stuff, etc.

What I’m doing

I’m building / comparing Marching cubes / Surface nets / Dual contouring / similar to build smoothed contours of a random 200 x 200 x 200 world. I’d like to compare them & have a setup to code a new one and test it.

Question

How is it recommended to approach building meshes by specifying / changing vertices / edges manually from code? UDynamicMesh? ProceduralMeshComponent? Something more high level maybe? — like maybe there are some primitives to draw surfaces/contours by defining all dots?

C++ please, minimum Blueprints, if possible. Need to build all geometry from code, as I’m researching contour algorithms.

Thanks!

1 Like