private static void addPointToTriangleFace(MeshFactory pMeshRoof, Plane3d pPlane, Vector3d pTextureVector,
TextureData pTextureData, double textureOffsetU, double textureOffsetV, int normalIndex, FaceFactory face,
Point2d point2d) {
double h = pPlane.calcYOfPlane(point2d.x, -point2d.y);
Point3d point3d = new Point3d(point2d.x, h, -point2d.y);
int vi = pMeshRoof.addVertex(point3d);
face.addVertIndex(vi);
face.addNormalIndex(normalIndex);
TextCoord calcUV = TextCordFactory.calcFlatSurfaceUV(point3d, pPlane.getNormal(), pTextureVector,
pPlane.getPoint(), pTextureData, textureOffsetU, textureOffsetV);
int tci = pMeshRoof.addTextCoord(calcUV);
face.addCoordIndex(tci);
}