SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2202.01999 · 2022

Neural Dual Contouring

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2202.01999.json · badge: /api/ran/2202.01999.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
czq142857/NDC canonical (classifier label)
classifier basis not recorded on the link
8 ran · 0 no recorded run
FunctionStatusWhere it lives
dual_contouring_ndc_test Ran
ran on a synthesized input
czq142857/NDC/data_preprocessing/get_groundtruth_NDC/utils.py
code served (permissive licence) · get_code("db7b8ed270980904")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small 3D grid for testing
# int_grid: binary grid indicating inside/outside (0 or 1)
# Shape should be at least 3x3x3 to allow iteration with i+1, j+1, k+1
int_grid = np.array([
    [[0, 1, 0],
     [1, 0, 1],
     [0, 1, 0]],
    [[1, 0, 1],
     [0, 1, 0],
     [1, 0, 1]],
    [[0, 1, 0],
     [1, 0, 1],
     [0, 1, 0]]
], dtype=np.int32)

# float_grid: offset positions within each voxel
# Same shape as int_grid
float_grid = np.random.rand(3, 3, 3).astype(np.float32) * 0.5

ARGS = {
    "int_grid": int_grid,
    "float_grid": float_grid
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_obj Ran
ran on a synthesized input
czq142857/NDC/eval_tri_angle.py
code served (permissive licence) · get_code("390ee5602e7c599f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import tempfile
import os

# Create a temporary OBJ file for testing
temp_dir = tempfile.mkdtemp()
obj_file_path = os.path.join(temp_dir, "test.obj")

# Write a minimal valid OBJ file
obj_content = """# Simple triangle mesh
v 0.0 0.0 0.0
v 1.0 0.0 0.0
v 0.0 1.0 0.0
v 1.0 1.0 0.0
f 1 2 3
f 2 4 3
"""

with open(obj_file_path, 'w') as f:
    f.write(obj_content)

ARGS = {
    'dire': obj_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_obj Ran
ran on a synthesized input
czq142857/NDC/data_preprocessing/augment_obj.py
code served (permissive licence) · get_code("659aa8d8ccd54d9e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os
import numpy as np

# Create a temporary OBJ file with valid content
temp_fd, temp_path = tempfile.mkstemp(suffix='.obj', text=True)
try:
    with os.fdopen(temp_fd, 'w') as f:
        f.write("""# Simple test OBJ file
v 0.0 0.0 0.0
v 1.0 0.0 0.0
v 0.0 1.0 0.0
v 0.0 0.0 1.0

f 1/1/1 2/2/2 3/3/3
f 1/1/1 2/2/2 4/4/4

""")
    
    ARGS = {
        'dire': temp_path
    }
finally:
    # Note: We keep the file around since ARGS will reference it
    pass
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
postprocessing Ran
ran on a synthesized input
czq142857/NDC/modelpc.py
code served (permissive licence) · get_code("1953889d90edaf2f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family int, shape (4, 3, 5, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes pred_output_bool, which is a 4D tensor
# Based on the indexing patterns, it appears to be shape (D, H, W, C)
# where D, H, W are spatial dimensions and C=3 (for x, y, z edges)
# The function slices with :-1, :, :-1, etc., so we need at least size 2 in each spatial dim
# Let's use shape (4, 3, 5, 3) to have distinct sizes for each dimension

pred_output_bool = torch.randint(0, 2, (4, 3, 5, 3), dtype=torch.int32)

ARGS = {
    "pred_output_bool": pred_output_bool,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family int, shape (4, 3, 5, 3) — shape (4, 3, 5, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_binvox_file_as_3d_array Ran
ran on a synthesized input
czq142857/NDC/utils.py
code served (permissive licence) · get_code("f9cb2213d18de100")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (4, 4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import tempfile
import os

# Create a minimal valid binvox file
temp_dir = tempfile.gettempdir()
binvox_path = os.path.join(temp_dir, "test.binvox")

# Write a valid binvox file
with open(binvox_path, 'wb') as f:
    # Header line
    f.write(b'#binvox 1\n')
    # Dimensions line
    f.write(b'dim 4 4 4\n')
    # Translate line
    f.write(b'translate 0.0 0.0 0.0\n')
    # Scale line
    f.write(b'scale 1.0\n')
    # Data line (required)
    f.write(b'data\n')
    # Raw voxel data: alternating value/count pairs
    # Create a simple pattern: 1 voxel on, 63 voxels off (total 64 for 4x4x4)
    raw_data = np.array([1, 1, 0, 63], dtype=np.uint8)
    f.write(raw_data.tobytes())

ARGS = {
    'name': binvox_path,
    'fix_coords': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (4, 4, 4) — shape (4, 4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_data_input_only Ran
ran on a synthesized input
czq142857/NDC/utils.py
code served (permissive licence) · get_code("2f6a21f017189aff")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import tempfile
import h5py

# Create a temporary HDF5 file with the required datasets
temp_dir = tempfile.mktemp(suffix='.h5')
hdf5_file = h5py.File(temp_dir, 'w')

grid_size = 8

# Create dummy datasets for different input types
hdf5_file.create_dataset(f'{grid_size}_sdf', data=np.random.randn(grid_size + 1, grid_size + 1, grid_size + 1).astype(np.float32))
hdf5_file.create_dataset(f'{grid_size}_voxel', data=np.random.randint(0, 2, (grid_size + 1, grid_size + 1, grid_size + 1)).astype(np.float32))
hdf5_file.create_dataset('pointcloud', data=np.random.randn(100, 3).astype(np.float32))

hdf5_file.close()

ARGS = {
    'hdf5_dir': temp_dir,
    'grid_size': 8,
    'input_type': 'sdf',
    'out_bool': True,
    'out_float': True,
    'is_undc': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
h5py, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_intersectionpn_file_as_2d_array Ran
ran on a synthesized input
czq142857/NDC/data_preprocessing/get_groundtruth_NDC/utils.py
code served (permissive licence) · get_code("1c1ad35af827e412")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import tempfile
import os

# Create a temporary intersectionpn file
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.intersectionpn")

# Write a valid intersectionpn file
with open(temp_file, 'wb') as f:
    # Header line
    f.write(b'#intersectionpn\n')
    
    # Dims line (e.g., 2 3 for a 2x3 grid or similar)
    f.write(b'dims 2 3\n')
    
    # Point numbers line (how many points in each group)
    # Let's say 3 points in first group, 2 points in second group
    f.write(b'3 2\n')
    
    # Empty line
    f.write(b'\n')
    
    # Binary data: 5 total points (3+2), each with 6 float32 values
    data = np.array([
        [1.0, 2.0, 3.0, 4.0, 5.0, 6.0],
        [7.0, 8.0, 9.0, 10.0, 11.0, 12.0],
        [13.0, 14.0, 15.0, 16.0, 17.0, 18.0],
        [19.0, 20.0, 21.0, 22.0, 23.0, 24.0],
        [25.0, 26.0, 27.0, 28.0, 29.0, 30.0],
    ], dtype=np.float32)
    f.write(data.tobytes())

ARGS = {
    'name': temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_sdf_file_as_3d_array Ran
ran on a synthesized input
czq142857/NDC/data_preprocessing/get_groundtruth_NDC/utils.py
code served (permissive licence) · get_code("37fff14c82d73480")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (2, 3, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import tempfile
import os

# Create a temporary SDF file for testing
temp_dir = tempfile.mkdtemp()
sdf_file_path = os.path.join(temp_dir, "test.sdf")

# Write a valid SDF file
with open(sdf_file_path, 'wb') as f:
    # Write header
    f.write(b'#sdf\n')
    # Write dimensions
    f.write(b'dims 2 3 4\n')
    # Write a blank line
    f.write(b'\n')
    # Write binary data (2*3*4 = 24 float32 values)
    data = np.arange(24, dtype=np.float32)
    f.write(data.tobytes())

ARGS = {
    'name': sdf_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (2, 3, 4) — shape (2, 3, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We introduce neural dual contouring (NDC), a new data-driven approach to mesh reconstruction based on dual contouring (DC). Like traditional DC, it produces exactly one vertex per grid cell and one quad for each grid edge intersection, a natural and efficient structure for reproducing sharp features. However, rather than computing vertex locations and edge crossings with hand-crafted functions that depend directly on difficult-to-obtain surface gradients, NDC uses a neural network to predict them. As a result, NDC can be trained to produce meshes from signed or unsigned distance fields, binary voxel grids, or point clouds (with or without normals); and it can produce open surfaces in cases where the input represents a sheet or partial surface. During experiments with five prominent datasets, we find that NDC, when trained on one of the datasets, generalizes well to the others. Furthermore, NDC provides better surface reconstruction accuracy, feature preservation, output complexity, triangle quality, and inference time in comparison to previous learned (e.g., neural marching cubes, convolutional occupancy networks) and traditional (e.g., Poisson) methods. Code and data are available at https://github.com/czq142857/NDC.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2202.01999")
get_code_for_paper("2202.01999")
have("2202.01999")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2202.01999.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2202.01999.svg)](https://syntology.ai/paper/2202.01999)

Connect an agent — have() is free.