Skip to content

Commit

Permalink
�Fix Python example: apic_example03.py (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelBlend authored Nov 22, 2021
1 parent 3d7c44e commit 45b4bdb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/examples/python_examples/apic_example03.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ def main():
def write_surface(frame_cnt, pos):
converter = SphPointsToImplicit3(1.5 * grid_size, 0.5)
converter.convert(pos.tolist(), grid)
surface_mesh = marchingCubes(grid, (grid_size, grid_size, grid_size), (0, 0, 0), 0.0, DIRECTION_ALL)
surface_mesh = marchingCubes(
grid,
(grid_size, grid_size, grid_size),
(0, 0, 0),
0.0,
DIRECTION_ALL,
DIRECTION_ALL
)
surface_mesh.writeObj('frame_{:06d}.obj'.format(frame_cnt))

# Make first frame
Expand Down

0 comments on commit 45b4bdb

Please sign in to comment.