Skip to content

Commit e724bdf

Browse files
committed
tiling after ludwig danzer
1 parent cdcb357 commit e724bdf

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# HE_Mesh
22

3-
Is 3D Geometry java library for processing by [Frederik Vanhoutte](http://www.wblut.com/) see http://www.wblut.com/he_mesh/ sketches in this folder are expected to work with version 5.1.2. The library has changed a lot over the years and not necessarily for the better (dependencies seem to be expanding exponentially, this cannot be a good thing, just look at the disaster that is ruby-on-rails). However Frederik Vanhoutte has developed some rather cool sketches, it's just that need a lot of imagination and persistence to create equally good ones using the library.
3+
Is a 3D Geometry java library for processing by [Frederik Vanhoutte](http://www.wblut.com/) see http://www.wblut.com/he_mesh/ sketches in this folder are expected to work with version 6.0.1. The library has changed a lot over the years and not necessarily for the better (dependencies seem to be expanding exponentially, this cannot be a good thing, just look at the disaster that is ruby-on-rails). However Frederik Vanhoutte has developed some rather cool sketches, it's just that it needs a lot of imagination and persistence to create equally good ones using this library.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
load_library :hemesh
2+
3+
java_import 'wblut.core.WB_Version'
4+
java_import 'wblut.core.WB_Disclaimer'
5+
java_import 'wblut.geom.WB_Danzer'
6+
java_import 'wblut.geom.WB_Point'
7+
java_import 'wblut.processing.WB_Render3D'
8+
9+
attr_reader :render, :danzerA, :danzerB, :danzerC, :scale
10+
11+
def settings
12+
size(1000, 1000, P3D)
13+
smooth(8)
14+
end
15+
16+
def setup
17+
sketch_title 'Aperiodic Tiling after Ludwig Danzer'
18+
stroke_weight(1.4)
19+
no_fill
20+
@render = WB_Render3D.new(self)
21+
puts WB_Version::version
22+
puts WB_Disclaimer::disclaimer
23+
@scale = 550
24+
@danzerA=WB_Danzer.new(scale, WB_Danzer::Type::A, WB_Point.new(-250,0,0))
25+
danzerA.inflate(3)
26+
@danzerB=WB_Danzer.new(scale, WB_Danzer::Type::B)
27+
danzerB.inflate(3)
28+
@danzerC=WB_Danzer.new(scale, WB_Danzer::Type::C, WB_Point.new(250,0,0))
29+
danzerC.inflate(3)
30+
end
31+
32+
def draw
33+
background(55)
34+
translate(width / 2, height / 2)
35+
stroke(0)
36+
render.drawTriangle2D(danzerA)
37+
render.drawTriangle2D(danzerB)
38+
render.drawTriangle2D(danzerC)
39+
end

0 commit comments

Comments
 (0)