Permalink
Browse files

Fixed dependency error in WB_triangulate.constrainedTriangulation2D

Fixed some geometry examples
  • Loading branch information...
1 parent 12ba10a commit 8b1aa2991a3d8706f4d431cdd7adc544fa957d98 @wblut committed Feb 1, 2017
Showing with 10,717 additions and 10,717 deletions.
  1. +1 −1 examples/geom/bounding/Ref_WB_Circle_BoundingCircle/Ref_WB_Circle_BoundingCircle.pde
  2. +1 −1 examples/geom/bounding/Ref_WB_Sphere_BoundingSphere/Ref_WB_Sphere_BoundingSphere.pde
  3. +3 −3 examples/geom/create/point/Ref_CreateMirrorPoint/Ref_CreateMirrorPoint.pde
  4. +1 −1 examples/geom/create/point/Ref_CreatePointFromBipolar/Ref_CreatePointFromBipolar.pde
  5. +1 −1 examples/geom/create/point/Ref_CreatePointFromElliptic/Ref_CreatePointFromElliptic.pde
  6. +1 −1 examples/geom/create/point/Ref_CreatePointFromHyperbolic/Ref_CreatePointFromHyperbolic.pde
  7. +1 −1 examples/geom/create/point/Ref_WB_RandomLine/Ref_WB_RandomLine.pde
  8. +1 −1 examples/geom/create/polygon/Ref_WB_Polygon_Intersection/Ref_WB_Polygon_Intersection.pde
  9. +1 −1 examples/geom/create/polygon/Ref_WB_Polygon_Subtract/Ref_WB_Polygon_Subtract.pde
  10. +1 −1 examples/geom/create/polygon/Ref_WB_Polygon_SymDifference/Ref_WB_Polygon_symDifference.pde
  11. +1 −1 examples/geom/create/polygon/Ref_WB_Polygon_Union/Ref_WB_Polygon_Union.pde
  12. +3 −3 examples/geom/transform/Ref_WB_PlanarMap/Ref_WB_PlanarMap.pde
  13. +1 −1 examples/geom/triangulate/Ref_WB_Triangulation4D/Ref_WB_Triangulation4D.pde
  14. +1,361 −1,361 examples/hemesh/color/REF_ColorExport/meshes1/testfc.wrl
  15. +2,908 −2,908 examples/hemesh/color/REF_ColorExport/meshes10/testfc.ply
  16. +687 −687 examples/hemesh/color/REF_ColorExport/meshes2/testvc.wrl
  17. +2,908 −2,908 examples/hemesh/color/REF_ColorExport/meshes7/testfc.mtl
  18. +1,417 −1,417 examples/hemesh/color/REF_ColorExport/meshes8/testvc.mtl
  19. +1,417 −1,417 examples/hemesh/color/REF_ColorExport/meshes9/testvc.ply
  20. +2 −2 examples/hemesh/create/Ref_HEC_FromSurface/Ref_HEC_FromSurface.pde
  21. BIN examples/spielerei/Collapse/collapse.png
  22. BIN external/hemesh-external-2_2_0.jar
@@ -24,7 +24,7 @@ void setup(){
void draw(){
background(55);
- fill(0);
+ fill(255);
text("Black=minimal bounding circle",width/2, height-24);
text("Blue=minimal bounding circle in centroid",width/2, height-10);
noFill();
@@ -23,7 +23,7 @@ void setup(){
void draw(){
background(55);
- fill(0);
+ fill(255);
text("Black=minimal bounding sphere",width/2, height-24);
text("Blue=minimal bounding sphere in centroid",width/2, height-10);
noFill();
@@ -14,7 +14,7 @@ void setup() {
smooth(8);
stroke(0, 50);
render=new WB_Render2D(this);
- L=gf.createLineWithDirection(0,0,cos(PI/6),sin(PI/6));
+ L=gf.createLineWithDirection2D(0,0,cos(PI/6),sin(PI/6));
}
@@ -31,11 +31,11 @@ void draw() {
for (int i=0; i<201; i++) {
p=gf.createPoint(x,(i-100)*2);
render.drawPoint2D(p);
- p=gf.createMirrorPoint(p,L);
+ p=gf.createMirrorPoint2D(p,L);
render.drawPoint2D(p);
p=gf.createPoint(-x,(i-100)*2);
render.drawPoint2D(p);
- p=gf.createMirrorPoint(p,L);
+ p=gf.createMirrorPoint2D(p,L);
render.drawPoint2D(p);
}
}
@@ -12,7 +12,7 @@ void setup() {
size(1280, 720);
background(55);
smooth(8);
- stroke(0, 50);
+ stroke(255, 50);
fill(255, 50);
render=new WB_Render2D(this);
}
@@ -12,7 +12,7 @@ void setup() {
size(1280, 720);
background(55);
smooth(8);
- stroke(0, 50);
+ stroke(255, 50);
fill(255, 50);
render=new WB_Render2D(this);
}
@@ -12,7 +12,7 @@ void setup() {
size(1280, 720);
background(55);
smooth(8);
- stroke(0);
+ stroke(255,200);
render=new WB_Render2D(this);
}
@@ -5,7 +5,7 @@ WB_RandomPoint source;
WB_Render3D render;
void setup(){
size(800,800,P3D);
- source=new WB_RandomLine(new WB_Point(-250,-250,-250),new WB_Point(250,250,250));
+ source=new WB_RandomSegment(new WB_Point(-250,-250,-250),new WB_Point(250,250,250));
render=new WB_Render3D(this);
}
@@ -34,7 +34,7 @@ void setup() {
}
polygon2=gf.createPolygonWithHole(shell, hole);
- booleanResult=gf.intersectPolygons(polygon1, polygon2);
+ booleanResult=gf.intersectPolygons2D(polygon1, polygon2);
strokeWeight(2);
}
@@ -34,7 +34,7 @@ void setup() {
}
polygon2=gf.createPolygonWithHole(shell, hole);
- booleanResult=gf.subtractPolygons(polygon1, polygon2);
+ booleanResult=gf.subtractPolygons2D(polygon1, polygon2);
strokeWeight(2);
}
@@ -34,7 +34,7 @@ void setup() {
}
polygon2=gf.createPolygonWithHole(shell, hole);
- booleanResult=gf.symDifferencePolygons(polygon1, polygon2);
+ booleanResult=gf.symDifferencePolygons2D(polygon1, polygon2);
strokeWeight(2);
}
@@ -34,7 +34,7 @@ void setup() {
}
polygon2=gf.createPolygonWithHole(shell, hole);
- booleanResult=gf.unionPolygons(polygon1, polygon2);
+ booleanResult=gf.unionPolygons2D(polygon1, polygon2);
strokeWeight(2);
}
@@ -26,9 +26,9 @@ void setup() {
points[i]=source.nextPoint();
}
- XY=new WB_PlanarMap(WB_PlanarMap.Z, 270);
- YZ=new WB_PlanarMap(WB_PlanarMap.X, 270);
- XZ=new WB_PlanarMap(WB_PlanarMap.Y, 270);
+ XY=new WB_PlanarMap(WB_PlanarMap.XY, 270);
+ YZ=new WB_PlanarMap(WB_PlanarMap.YZ, 270);
+ XZ=new WB_PlanarMap(WB_PlanarMap.XZ, 270);
WB_Plane plane=new WB_Plane(0, 0, 0, 1, 1, 1);
P=new WB_PlanarMap(plane);
@@ -44,7 +44,7 @@ void draw() {
drawHyperTetrahedron(points.get(triangulation[i]), points.get(triangulation[i+1]), points.get(triangulation[i+2]), points.get(triangulation[i+3]), points.get(triangulation[i+4]));
}
for (WB_Point4D p : points) {
- p.rotateZW(0.02);
+ p.rotateZWSelf(0.02);
}
}
Oops, something went wrong.

0 comments on commit 8b1aa29

Please sign in to comment.