Package il.ac.idc.jdt
Class IOParsers
java.lang.Object
il.ac.idc.jdt.IOParsers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexportCHTsin(DelaunayTriangulation dto, String tsinFile) static voidstatic voidexportSmf(List<Triangle> triangulation, OutputStream os) static voidstatic voidstatic voidexportTsin(DelaunayTriangulation dto, File tsinFile) static voidexportTsin(DelaunayTriangulation dto, OutputStream os) static voidexportTsin(DelaunayTriangulation dto, Writer writer) static voidexportTsin(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
-