public class VtkInputOutput
extends java.lang.Object
Constructor and Description |
---|
VtkInputOutput() |
Modifier and Type | Method and Description |
---|---|
void |
addPointDataScalars(java.lang.String fieldName,
double[] data) |
void |
addPointDataVectors(java.lang.String fieldName,
java.util.ArrayList<double[]> data) |
static void |
buildUnstructuredMesh_volume(FemModel3d fem,
artisynth.core.femmodels.VtkData vtkData) |
static PolygonalMesh |
readUnstructuredMesh_surface(java.lang.String filename) |
static void |
readUnstructuredMesh_volume(FemModel3d fem,
java.lang.String filename) |
static FemModel3d |
readUnstructuredMesh_volume(java.lang.String filename) |
void |
write(java.lang.String filename,
FemModel3d fem) |
void |
write(java.lang.String filename,
PolygonalMesh mesh) |
static void |
writeCellData(java.io.PrintWriter file,
int nCells,
java.util.ArrayList<java.lang.String> scalar_names,
java.util.ArrayList<double[]> scalar_data,
java.util.ArrayList<java.lang.String> vector_names,
java.util.ArrayList<java.util.ArrayList<double[]>> vector_data) |
static void |
writeFieldData(java.io.PrintWriter file,
int nComponents,
java.lang.String typeStr,
java.util.ArrayList<java.lang.String> scalar_names,
java.util.ArrayList<double[]> scalar_data,
java.util.ArrayList<java.lang.String> vector_names,
java.util.ArrayList<java.util.ArrayList<double[]>> vector_data) |
static void |
writePointData(java.io.PrintWriter file,
int nPoints,
java.util.ArrayList<java.lang.String> scalar_names,
java.util.ArrayList<double[]> scalar_data,
java.util.ArrayList<java.lang.String> vector_names,
java.util.ArrayList<java.util.ArrayList<double[]>> vector_data) |
static void |
writeVTK(java.lang.String filename,
FemModel3d fem) |
static void |
writeVTK(java.lang.String filename,
FemModel3d fem,
java.util.ArrayList<java.lang.String> pointData_scalar_names,
java.util.ArrayList<double[]> pointData_scalar_data,
java.util.ArrayList<java.lang.String> pointData_vector_names,
java.util.ArrayList<java.util.ArrayList<double[]>> pointData_vector_data,
java.util.ArrayList<java.lang.String> cellData_scalar_names,
java.util.ArrayList<double[]> cellData_scalar_data,
java.util.ArrayList<java.lang.String> cellData_vector_names,
java.util.ArrayList<java.util.ArrayList<double[]>> cellData_vector_data) |
static void |
writeVTK(java.lang.String filename,
PolygonalMesh mesh) |
static void |
writeVTK(java.lang.String filename,
PolygonalMesh mesh,
java.util.ArrayList<java.lang.String> pointData_scalar_names,
java.util.ArrayList<double[]> pointData_scalar_data,
java.util.ArrayList<java.lang.String> pointData_vector_names,
java.util.ArrayList<java.util.ArrayList<double[]>> pointData_vector_data,
java.util.ArrayList<java.lang.String> cellData_scalar_names,
java.util.ArrayList<double[]> cellData_scalar_data,
java.util.ArrayList<java.lang.String> cellData_vector_names,
java.util.ArrayList<java.util.ArrayList<double[]>> cellData_vector_data) |
public void addPointDataScalars(java.lang.String fieldName, double[] data)
public void addPointDataVectors(java.lang.String fieldName, java.util.ArrayList<double[]> data)
public void write(java.lang.String filename, PolygonalMesh mesh)
public void write(java.lang.String filename, FemModel3d fem)
public static void writeVTK(java.lang.String filename, PolygonalMesh mesh)
public static void writeVTK(java.lang.String filename, PolygonalMesh mesh, java.util.ArrayList<java.lang.String> pointData_scalar_names, java.util.ArrayList<double[]> pointData_scalar_data, java.util.ArrayList<java.lang.String> pointData_vector_names, java.util.ArrayList<java.util.ArrayList<double[]>> pointData_vector_data, java.util.ArrayList<java.lang.String> cellData_scalar_names, java.util.ArrayList<double[]> cellData_scalar_data, java.util.ArrayList<java.lang.String> cellData_vector_names, java.util.ArrayList<java.util.ArrayList<double[]>> cellData_vector_data)
public static void writeVTK(java.lang.String filename, FemModel3d fem)
public static void writeVTK(java.lang.String filename, FemModel3d fem, java.util.ArrayList<java.lang.String> pointData_scalar_names, java.util.ArrayList<double[]> pointData_scalar_data, java.util.ArrayList<java.lang.String> pointData_vector_names, java.util.ArrayList<java.util.ArrayList<double[]>> pointData_vector_data, java.util.ArrayList<java.lang.String> cellData_scalar_names, java.util.ArrayList<double[]> cellData_scalar_data, java.util.ArrayList<java.lang.String> cellData_vector_names, java.util.ArrayList<java.util.ArrayList<double[]>> cellData_vector_data)
public static void writePointData(java.io.PrintWriter file, int nPoints, java.util.ArrayList<java.lang.String> scalar_names, java.util.ArrayList<double[]> scalar_data, java.util.ArrayList<java.lang.String> vector_names, java.util.ArrayList<java.util.ArrayList<double[]>> vector_data)
public static void writeCellData(java.io.PrintWriter file, int nCells, java.util.ArrayList<java.lang.String> scalar_names, java.util.ArrayList<double[]> scalar_data, java.util.ArrayList<java.lang.String> vector_names, java.util.ArrayList<java.util.ArrayList<double[]>> vector_data)
public static void writeFieldData(java.io.PrintWriter file, int nComponents, java.lang.String typeStr, java.util.ArrayList<java.lang.String> scalar_names, java.util.ArrayList<double[]> scalar_data, java.util.ArrayList<java.lang.String> vector_names, java.util.ArrayList<java.util.ArrayList<double[]>> vector_data)
public static PolygonalMesh readUnstructuredMesh_surface(java.lang.String filename)
public static FemModel3d readUnstructuredMesh_volume(java.lang.String filename)
public static void readUnstructuredMesh_volume(FemModel3d fem, java.lang.String filename)
public static void buildUnstructuredMesh_volume(FemModel3d fem, artisynth.core.femmodels.VtkData vtkData) throws java.io.IOException
java.io.IOException