Commit a00b89d9 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell Committed by Kitware Robot

Merge topic 'stl-whsp'

9f0a9d42 vtkSTLWriter: harmonize whitespace within parenthesis
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Marcus D. Hanwell's avatarMarcus D. Hanwell <marcus.hanwell@kitware.com>
Merge-request: !1507
parents b824d947 9f0a9d42
Pipeline #18610 pending with stage
......@@ -53,21 +53,21 @@ void vtkSTLWriter::WriteData()
polys = input->GetPolys();
strips = input->GetStrips();
pts = input->GetPoints();
if (pts == NULL || polys == NULL )
if (pts == NULL || polys == NULL)
{
vtkErrorMacro(<<"No data to write!");
this->SetErrorCode(vtkErrorCode::UnknownError);
return;
}
if ( this->FileName == NULL)
if (this->FileName == NULL)
{
vtkErrorMacro(<< "Please specify FileName to write");
this->SetErrorCode(vtkErrorCode::NoFileNameError);
return;
}
if ( this->FileType == VTK_BINARY )
if (this->FileType == VTK_BINARY)
{
this->WriteBinarySTL(pts,polys,strips);
if (this->ErrorCode == vtkErrorCode::OutOfDiskSpaceError)
......@@ -100,7 +100,7 @@ void vtkSTLWriter::WriteAsciiSTL(
if ((fp = fopen(this->FileName, "w")) == NULL)
{
vtkErrorMacro(<< "Couldn't open file: " << this->FileName << " Reason: "
<< vtksys::SystemTools::GetLastSystemError() );
<< vtksys::SystemTools::GetLastSystemError());
this->SetErrorCode(vtkErrorCode::CannotOpenFileError);
return;
}
......@@ -115,7 +115,7 @@ void vtkSTLWriter::WriteAsciiSTL(
//
vtkSmartPointer<vtkCellArray> polyStrips =
vtkSmartPointer<vtkCellArray>::New();
if ( strips->GetNumberOfCells() > 0 )
if (strips->GetNumberOfCells() > 0)
{
vtkIdType *ptIds = 0;
for (strips->InitTraversal(); strips->GetNextCell(npts,ptIds);)
......@@ -192,7 +192,7 @@ void vtkSTLWriter::WriteBinarySTL(
if ((fp = fopen(this->FileName, "wb")) == NULL)
{
vtkErrorMacro(<< "Couldn't open file: " << this->FileName << " Reason: "
<< vtksys::SystemTools::GetLastSystemError() );
<< vtksys::SystemTools::GetLastSystemError());
this->SetErrorCode(vtkErrorCode::CannotOpenFileError);
return;
}
......@@ -228,7 +228,7 @@ void vtkSTLWriter::WriteBinarySTL(
//
vtkSmartPointer<vtkCellArray> polyStrips =
vtkSmartPointer<vtkCellArray>::New();
if ( strips->GetNumberOfCells() > 0 )
if (strips->GetNumberOfCells() > 0)
{
vtkIdType *ptIds = 0;
for (strips->InitTraversal(); strips->GetNextCell(npts,ptIds);)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment