segmentHeights.add(segmentHeight.getEndHeight()); StripMeshFactoryUtil.verticalStripMesh(segment, // new StripMeshFactoryUtil.ConstHeightProvider(minHeight),// new StripMeshFactoryUtil.ListHeightProvider(segmentHeights), //
double minHeight2 = minHeights.getHeight(index2); int point1HightIndex = cachePointIndex(point1, index1, height1, topPointsIndex, mesh); int point2HightIndex = cachePointIndex(point2, index2, height2, topPointsIndex, mesh); int point1BottomIndex = cachePointIndex(point1, index1, minHeight1, bottomPointsIndex, mesh); int point2BottomIndex = cachePointIndex(point2, index2, minHeight2, bottomPointsIndex, mesh);
/** * Make mesh of vertical wall e.g. It is wall under the roof. * * @param stripPoints * the strip points * @param minHeight * the strip minimal height * @param stripPointHeights * the strip points heights * @param mesh * the mesh * @param textureData * the texture data */ public static void makeRoofBorderMesh(List<Point2d> stripPoints, double minHeight, List<Double> stripPointHeights, MeshFactory mesh, TextureData textureData) { StripMeshFactoryUtil.verticalStripMesh(stripPoints, // new StripMeshFactoryUtil.ConstHeightProvider(minHeight),// new StripMeshFactoryUtil.ListHeightProvider(stripPointHeights), // mesh, // textureData, // true, // !PolygonUtil.isClockwisePolygon(stripPoints)); }