Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
81e6a36e
".github/git@developer.sourcefind.cn:OpenDAS/torch-sparce.git" did not exist on "a333b3921c1f24b75662b529372dcd4269565579"
Commit
81e6a36e
authored
Aug 11, 2017
by
Oier Mees
Browse files
chnaged marching_cubes
parent
a2931072
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ptn/utils.py
ptn/utils.py
+1
-1
No files found.
ptn/utils.py
View file @
81e6a36e
...
@@ -74,7 +74,7 @@ def visualize_voxel_spectral(points, vis_size=128):
...
@@ -74,7 +74,7 @@ def visualize_voxel_spectral(points, vis_size=128):
points
=
np
.
rint
(
points
)
points
=
np
.
rint
(
points
)
points
=
np
.
swapaxes
(
points
,
0
,
2
)
points
=
np
.
swapaxes
(
points
,
0
,
2
)
fig
=
p
.
figure
(
figsize
=
(
1
,
1
),
dpi
=
vis_size
)
fig
=
p
.
figure
(
figsize
=
(
1
,
1
),
dpi
=
vis_size
)
verts
,
faces
=
measure
.
marching_cubes
(
points
,
0
,
spacing
=
(
0.1
,
0.1
,
0.1
))
verts
,
faces
=
measure
.
marching_cubes
_classic
(
points
,
0
,
spacing
=
(
0.1
,
0.1
,
0.1
))
ax
=
fig
.
add_subplot
(
111
,
projection
=
'3d'
)
ax
=
fig
.
add_subplot
(
111
,
projection
=
'3d'
)
ax
.
plot_trisurf
(
ax
.
plot_trisurf
(
verts
[:,
0
],
verts
[:,
1
],
faces
,
verts
[:,
2
],
cmap
=
'Spectral_r'
,
lw
=
0.1
)
verts
[:,
0
],
verts
[:,
1
],
faces
,
verts
[:,
2
],
cmap
=
'Spectral_r'
,
lw
=
0.1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment