mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
data read and write in binary
This commit is contained in:
@ -193,14 +193,16 @@ bool pFlow::triSurface::readTriSurface
|
||||
)
|
||||
{
|
||||
|
||||
std::cout<<"triSurface file is binary "<< is.isBinary()<<std::endl;
|
||||
|
||||
is.fatalCheck(FUNCTION_NAME);
|
||||
|
||||
is >> points_;
|
||||
is.fatalCheck(FUNCTION_NAME);
|
||||
|
||||
is >> vertices_;
|
||||
is.fatalCheck(FUNCTION_NAME);
|
||||
|
||||
// from start of file
|
||||
if(!points_.read(is)) return false;
|
||||
|
||||
// from the current position
|
||||
if(!vertices_.read(is, true)) return false;
|
||||
|
||||
if( !check() )
|
||||
{
|
||||
ioErrorInFile( is.name(), is.lineNumber() ) <<
|
||||
|
Reference in New Issue
Block a user