Skip to content

Commit

Permalink
update of examples and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wblut committed Apr 23, 2019
1 parent 80893de commit 1be80da
Show file tree
Hide file tree
Showing 33 changed files with 81,015 additions and 33,080 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ You need to add some other external *.jar files to the properties of your Eclips
* `hemesh-data-3_0_0.jar`: Data for HE_Mesh.


## Current release
## Current release: 2019.0.0 - Phoenix

Download the current release here: http://www.wblut.com/hemesh/hemesh.zip.
Download the current release here: https://www.wblut.com/hemesh/hemesh.zip.


## Build-of-the-day HE_Mesh (2018/05/16)
## Build-of-the-day HE_Mesh (2019/04/23)

Download a recent built here: http://www.wblut.com/hemesh/hemesh20180516.zip.
Download a recent built here: https://www.wblut.com/hemesh/hemesh20190423.zip.

## Examples

Expand Down
42 changes: 42 additions & 0 deletions examples/geom/create/Ref_WB_Danzer/Ref_WB_Danzer.pde
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import wblut.core.*;
import wblut.geom.*;
import wblut.hemesh.*;
import wblut.math.*;
import wblut.nurbs.*;
import wblut.processing.*;


WB_Render3D render;
WB_Danzer2D danzerA, danzerB, danzerC;
ArrayList<WB_Polygon> polys;
float scale;

void setup() {
size(1000, 1000, P3D);
smooth(8);
strokeWeight(1.4);
noFill();
render=new WB_Render3D(this);
println(WB_Version.version());
println(WB_Disclaimer.disclaimer());
scale=400;
danzerA=new WB_Danzer2D(scale, WB_Danzer2D.Type.A,new WB_Point(-250,0,0));
danzerA.inflate(3);
danzerB=new WB_Danzer2D(scale, WB_Danzer2D.Type.B);
danzerB.inflate(3);
danzerC=new WB_Danzer2D(scale, WB_Danzer2D.Type.C,new WB_Point(250,0,0));
danzerC.inflate(3);
polys=new ArrayList<WB_Polygon>();
polys.addAll(danzerA.getTiles());
polys.addAll(danzerB.getTiles());
polys.addAll(danzerC.getTiles());
}

void draw() {
background(55);
translate(width/2, height/2);
stroke(0);
for (WB_Polygon poly : polys) {
render.drawPolygon(poly);
}
}
Loading

0 comments on commit 1be80da

Please sign in to comment.