Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sjk/intel #28

Merged
merged 9 commits into from
Apr 12, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix visualizer
  • Loading branch information
sjkelly committed Apr 12, 2019
commit 968e06fb8d4738e0e5336bdf31099b20537637ef
7 changes: 3 additions & 4 deletions src/visualize.jl
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@

function visualize(p::AbstractPrimitive, algorithm=NaiveSurfaceNets(),
function visualize(p::AbstractPrimitive, algorithm=MarchingCubes(),
res_start=1, res_scale=0.5, res_iterations=5)

# first visual
vis = Visualizer()
m = HomogenousMesh(p, res_start, algorithm)
m = HomogenousMesh(p, resolution=res_start, algorithm=algorithm)
open(vis)
delete!(vis) # clear visualizer
setobject!(vis, m)
res = res_start
for i = 1:res_iterations
sleep(3)
res = res*res_scale
m = HomogenousMesh(p, res)
m = HomogenousMesh(p, resolution=res, algorithm=algorithm)
delete!(vis)
setobject!(vis,m)
end
Expand Down