CGAL 6.3 - IO Streams
Loading...
Searching...
No Matches
MEDIT I/O Functions

I/O Functions for the Medit File Format.

Functions

template<class PointRange, class CellRange>
bool CGAL::IO::read_MEDIT (std::istream &is, PointRange &points, CellRange &finite_cells, std::vector< int > &subdomains, bool verbose=false)
 reads the content of is into points and finite_cells.

Function Documentation

◆ read_MEDIT()

template<class PointRange, class CellRange>
bool CGAL::IO::read_MEDIT ( std::istream & is,
PointRange & points,
CellRange & finite_cells,
std::vector< int > & subdomains,
bool verbose = false )

#include <CGAL/IO/MEDIT.h>

reads the content of is into points and finite_cells.

Attention
The cell soup is not cleared, and the data from the stream are appended.
Template Parameters
PointRangea model of the concept BackInsertionSequence whose value type is the point type
CellRangea model of the concept BackInsertionSequence whose value_type is std::array<int,4>
Parameters
isthe input stream
pointspoints of the soup of cells
finite_cellsEach element in it describes a cell using the indices of the points in points
subdomainsEach element in it describes the subdomain index of the corresponding cell in finite_cells
verboseif true, prints information about the reading process
Returns
true if the reading was successful, false otherwise.