SciBlend: DataMesh is a web application that processes CSV and OBJ files to generate VTK files. This tool is designed to assist in scientific visualization and data processing tasks.
- Upload CSV and OBJ files through a user-friendly web interface
- Process files to generate VTK output
- Specify start and end frames for processing
- Real-time feedback on file processing status
- Python 3.7+
- Flask
- NumPy
- PyVista
-
Clone this repository:
git clone https://github.com/yourusername/sciblend-datamesh.git cd sciblend-datamesh
-
Install the required dependencies:
pip install flask numpy pyvista
-
Run the Flask application:
python app.py
-
Open a web browser and navigate to
http://localhost:5000
-
Use the web interface to upload your CSV and OBJ files, specify the start and end frames, and process the files.
app.py
: Main Flask applicationDataMesh.py
: Core processing logic for CSV, OBJ, and VTK filestemplates/upload.html
: HTML template for the web interface
- The user uploads a CSV file (containing color data) and an OBJ file (containing 3D mesh data) through the web interface.
- The application processes these files:
- The OBJ file is read to extract vertices and faces of the 3D mesh.
- The CSV file is read to extract color data for each vertex.
- For each specified frame, a VTK file is generated, combining the 3D mesh structure with the corresponding color data.
- The resulting VTK files are saved in an output folder, organized by case ID (derived from the OBJ filename).
Contributions to improve SciBlend: DataMesh are welcome. Please feel free to submit pull requests or create issues for bugs and feature requests.
This project is licensed under the MIT License - see the LICENSE file for details.