HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Writes a 3D body surface to STL file. More...
#include <stdio.h>
#include <stdlib.h>
#include <basic.h>
#include <mpivars.h>
#include <immersedboundaries.h>
Go to the source code of this file.
Functions | |
int | IBWriteBodySTL (Body3D *body, char *filename, void *m, int rank, int *stat) |
Writes a 3D body surface to STL file.
Definition in file IBWriteBodySTL.c.
int IBWriteBodySTL | ( | Body3D * | body, |
char * | filename, | ||
void * | m, | ||
int | rank, | ||
int * | stat | ||
) |
Function to write a 3D surface from a STL file. See https://en.wikipedia.org/wiki/STL_(file_format) for details of the STL file format. Notes:
It is assumed that all MPI ranks have the body data. The MPI rank specified as the input rank will actually write the file.
body | 3D body to write to file |
filename | Filename |
m | MPI object of type MPIVariables |
rank | MPI rank that does the writing |
stat | Status (0: success; non-0: failure) |
Definition at line 23 of file IBWriteBodySTL.c.