public static kendzi.jogl.model.factory.MeshFactory cubeMesh(Point3d start) { return cubeMesh(start, new Vector3d(1, 1, 1)); }
private MeshFactory buildWallModelWithHoles(List<Point2d> points, List<WallHole> holeList, double min_height, double height, double width) { MeshFactory wallMesh = new MeshFactory(); buildWallModel(this.points, width, wallMesh); List<MeshFactory> holes = new ArrayList<MeshFactory>(); for (WallHole wh : holeList) { MeshFactory cubeMesh = MeshFactoryUtil.cubeMesh(new Point3d(wh.x, wh.height, -wh.y)); holes.add(cubeMesh); } return applayHolesToModel(wallMesh, holes); // for (MeshFactory mf : holes) { // // } }
MeshFactory cubeMesh2 = MeshFactoryUtil.cubeMesh(new Point3d(), new Vector3d(2d, 2d, 2d)); CSG sphere = meshToSolid(cubeMesh2); MeshFactory cubeMesh3 = MeshFactoryUtil.cubeMesh(new Point3d(1, 1, 1), new Vector3d(2d, 2d, 2d)); CSG sphere2 = meshToSolid(cubeMesh3); MeshFactory cubeMesh = MeshFactoryUtil.cubeMesh(new Point3d(start.x, 3, -start.y));