/** * Add flat polygon to mesh. * * @param polygonWithHolesList2d * @param height * @param meshFactory * @param textureData * @param textureStartPointX * @param textureStartPointY * @param textureDirection */ public static void addPolygonWithHolesInY(PolygonWithHolesList2d polygonWithHolesList2d, double height, MeshFactory meshFactory, TextureData textureData, double textureStartPointX, double textureStartPointY, Vector3d textureDirection) { addPolygonWithHolesInY(polygonWithHolesList2d, height, meshFactory, textureData, textureStartPointX, textureStartPointY, textureDirection, true); }
/** * @see kendzi.jogl.model.factory.MeshFactoryUtil#addPolygonWithHolesInY(PolygonWithHolesList2d, * double, MeshFactory, TextureData, double, double, Vector3d) * * @param polygonWithHolesList2d * @param height * @param meshFactory * @param textureData * @param textureStartPointX * @param textureStartPointY * @param textureDirection */ public static void addPolygonWithHolesInYRevert(PolygonWithHolesList2d polygonWithHolesList2d, double height, MeshFactory meshFactory, TextureData textureData, double textureStartPointX, double textureStartPointY, Vector3d textureDirection) { addPolygonWithHolesInY(polygonWithHolesList2d, height, meshFactory, textureData, textureStartPointX, textureStartPointY, textureDirection, false); }
List<List<Point2d>> innerLists = innerLists(buildingPolygon); MeshFactoryUtil.addPolygonWithHolesInY(buildingPolygon, h1, meshRoof, roofTexture, 0, 0, roofTopLineVector);