public class IOParsers extends Object
Constructor and Description |
---|
IOParsers() |
Modifier and Type | Method and Description |
---|---|
static void |
exportCHTsin(DelaunayTriangulation dto,
String tsinFile) |
static void |
exportSmf(List<Triangle> triangulation,
File smfFile) |
static void |
exportSmf(List<Triangle> triangulation,
OutputStream os) |
static void |
exportSmf(List<Triangle> triangulation,
String smfFile) |
static void |
exportSmf(List<Triangle> triangulation,
Writer writer) |
static void |
exportTsin(DelaunayTriangulation dto,
File tsinFile) |
static void |
exportTsin(DelaunayTriangulation dto,
OutputStream os) |
static void |
exportTsin(DelaunayTriangulation dto,
String tsinFile) |
static void |
exportTsin(DelaunayTriangulation dto,
Writer writer) |
static List<Point> |
readPoints(File file)
creates a Delaunay Triangulation from all the points in the suggested
tsin file or from a smf file (off like). if the file name is .smf - read
it as an smf file as try to read it as .tsin
Note: duplicated points are ignored! |
static List<Point> |
readPoints(InputStream is) |
static List<Point> |
readPoints(String file) |
public static List<Point> readPoints(File file) throws IOException
IOException
public static List<Point> readPoints(String file) throws IOException
IOException
public static List<Point> readPoints(InputStream is) throws IOException
IOException
public static void exportSmf(List<Triangle> triangulation, OutputStream os)
public static void exportSmf(List<Triangle> triangulation, File smfFile) throws IOException
IOException
public static void exportSmf(List<Triangle> triangulation, String smfFile) throws IOException
IOException
public static void exportTsin(DelaunayTriangulation dto, File tsinFile) throws IOException
IOException
public static void exportTsin(DelaunayTriangulation dto, String tsinFile) throws IOException
IOException
public static void exportTsin(DelaunayTriangulation dto, OutputStream os)
public static void exportTsin(DelaunayTriangulation dto, Writer writer)
public static void exportCHTsin(DelaunayTriangulation dto, String tsinFile) throws IOException
IOException
Copyright © 2016. All rights reserved.