Package il.ac.idc.jdt
Class IOParsers
java.lang.Object
il.ac.idc.jdt.IOParsers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
exportCHTsin
(DelaunayTriangulation dto, String tsinFile) static void
static void
exportSmf
(List<Triangle> triangulation, OutputStream os) static void
static void
static void
exportTsin
(DelaunayTriangulation dto, File tsinFile) static void
exportTsin
(DelaunayTriangulation dto, OutputStream os) static void
exportTsin
(DelaunayTriangulation dto, Writer writer) static void
exportTsin
(DelaunayTriangulation dto, String tsinFile) 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!readPoints
(String file)
-
Constructor Details
-
IOParsers
public IOParsers()
-
-
Method Details
-
readPoints
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!
SMF file has an OFF like format (a face (f) is presented by the indexes of its points - starting from 1 - not from 0):
begin
v x1 y1 z1
...
v xn yn zn
f i11 i12 i13
...
f im1 im2 im3
end
The tsin text file has the following (very simple) format
vertices# (n)
x1 y1 z1
...
xn yn zn- Throws:
IOException
-
readPoints
- Throws:
IOException
-
readPoints
- Throws:
IOException
-
exportSmf
-
exportSmf
-
exportSmf
- Throws:
IOException
-
exportSmf
- Throws:
IOException
-
exportTsin
- Throws:
IOException
-
exportTsin
- Throws:
IOException
-
exportTsin
-
exportTsin
-
exportCHTsin
- Throws:
IOException
-