Skip to content

Commit afe2410

Browse files
author
monkstone
committed
fix implicit sketch
1 parent 5c1b562 commit afe2410

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

samples/external_library/ruby_gem/toxiclibs/volume_utils/implicit.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
require 'toxiclibs'
4040

41-
load_library :mesh_to_vbo
41+
load_libraries :vecmath, :mesh_to_vbo
4242

4343
RES = 64
4444
ISO = 0.2
@@ -53,7 +53,7 @@ def setup
5353
@curr_zoom = 1
5454
vol = EvaluatingVolume.new(TVec3D.new(400,400,400), RES, RES, RES, MAX_ISO)
5555
surface = Volume::HashIsoSurface.new(vol)
56-
@mesh = Toxi::WETriangleMesh.new
56+
@mesh = WETriangleMesh.new
5757
surface.compute_surface_mesh(mesh, ISO)
5858
@is_wire_frame = false
5959
no_stroke
@@ -74,7 +74,7 @@ def draw
7474
def key_pressed
7575
case key
7676
when 'l', 'L'
77-
Toxi::LaplacianSmooth.new.filter(mesh, 1)
77+
LaplacianSmooth.new.filter(mesh, 1)
7878
@implicit = vbo.meshToVBO(mesh, true)
7979
# new mesh so need to set finish
8080
implicit.setFill(color(222, 222, 222))

samples/external_library/ruby_gem/toxiclibs/library/mesh_to_vbo.rb renamed to samples/external_library/ruby_gem/toxiclibs/volume_utils/library/mesh_to_vbo/mesh_to_vbo.rb

File renamed without changes.

samples/external_library/ruby_gem/toxiclibs/library/vbo/mesh_to_vbo.rb renamed to samples/external_library/ruby_gem/toxiclibs/volume_utils/library/mesh_to_vbo/vbo/mesh_to_vbo.rb

File renamed without changes.

samples/external_library/ruby_gem/toxiclibs/library/vbo/vbo.rb renamed to samples/external_library/ruby_gem/toxiclibs/volume_utils/library/mesh_to_vbo/vbo/vbo.rb

File renamed without changes.

0 commit comments

Comments
 (0)