Commit 006ce94c authored by Francois Bertel's avatar Francois Bertel
Browse files

COMP:Fixed old-style casts.

parent dc8e0f0c
......@@ -25,7 +25,7 @@
#include "vtkPointData.h"
#include "vtkUnstructuredGrid.h"
vtkCxxRevisionMacro(vtkAppendFilter, "1.75");
vtkCxxRevisionMacro(vtkAppendFilter, "1.76");
vtkStandardNewMacro(vtkAppendFilter);
//----------------------------------------------------------------------------
......@@ -84,7 +84,7 @@ vtkDataSetCollection *vtkAppendFilter::GetInputList()
{
if (this->GetInput(idx))
{
this->InputList->AddItem((vtkDataSet*)(this->GetInput(idx)));
this->InputList->AddItem(this->GetInput(idx));
}
}
......
......@@ -25,7 +25,7 @@
#include "vtkPolyData.h"
#include "vtkStreamingDemandDrivenPipeline.h"
vtkCxxRevisionMacro(vtkAppendPolyData, "1.101");
vtkCxxRevisionMacro(vtkAppendPolyData, "1.102");
vtkStandardNewMacro(vtkAppendPolyData);
//----------------------------------------------------------------------------
......@@ -672,19 +672,20 @@ void vtkAppendPolyData::AppendDifferentPoints(vtkDataArray *dest,
//
case VTK_DOUBLE:
dDest = (double*)(dest->GetVoidPointer(offset*src->GetNumberOfComponents()));
dDest = static_cast<double*>(
dest->GetVoidPointer(offset*src->GetNumberOfComponents()));
//
switch (src->GetDataType())
{
case VTK_FLOAT:
fSrc = (float*)(src->GetVoidPointer(0));
fSrc = static_cast<float*>(src->GetVoidPointer(0));
for (p=0; p<vals; p++)
{
dDest[p] = (double) fSrc[p];
dDest[p] = static_cast<double>(fSrc[p]);
}
break;
case VTK_DOUBLE:
dSrc = (double*)(src->GetVoidPointer(0));
dSrc = static_cast<double*>(src->GetVoidPointer(0));
memcpy(dDest, dSrc, vals*sizeof(double));
break;
default:
......@@ -711,7 +712,7 @@ vtkIdType *vtkAppendPolyData::AppendCells(vtkIdType *pDest, vtkCellArray *src,
return pDest;
}
pSrc = (vtkIdType*)(src->GetPointer());
pSrc = src->GetPointer();
end = pSrc + src->GetNumberOfConnectivityEntries();
pNum = pSrc;
......
......@@ -29,7 +29,7 @@
#include <float.h>
vtkCxxRevisionMacro(vtkBandedPolyDataContourFilter, "1.55");
vtkCxxRevisionMacro(vtkBandedPolyDataContourFilter, "1.56");
vtkStandardNewMacro(vtkBandedPolyDataContourFilter);
// Construct object.
......@@ -260,7 +260,7 @@ int vtkBandedPolyDataContourFilter::RequestData(
this->ClipValues[i] = this->ContourValues->GetValue(i-1);
}
qsort((void *)this->ClipValues, this->NumberOfClipValues, sizeof(double),
qsort(this->ClipValues, this->NumberOfClipValues, sizeof(double),
vtkCompareClipValues);
// toss out values which are too close together, currently within FLT_EPSILON%
......@@ -286,7 +286,7 @@ int vtkBandedPolyDataContourFilter::RequestData(
//
// Estimate allocation size, stolen from vtkContourGrid...
//
estimatedSize = (vtkIdType) pow ((double) numCells, .9);
estimatedSize=static_cast<vtkIdType>(pow(static_cast<double>(numCells),.9));
estimatedSize *= this->NumberOfClipValues;
estimatedSize = estimatedSize / 1024 * 1024; // multiple of 1024
if (estimatedSize < 1024)
......@@ -510,7 +510,7 @@ int vtkBandedPolyDataContourFilter::RequestData(
{
if ( ! (++count % updateCount) )
{
this->UpdateProgress(0.1 + 0.45*((double)count/numPolys));
this->UpdateProgress(0.1 + 0.45*(static_cast<double>(count)/numPolys));
}
for (i=0; i<npts; i++)
......@@ -559,7 +559,8 @@ int vtkBandedPolyDataContourFilter::RequestData(
{
if ( ! (++count % updateCount) )
{
this->UpdateProgress(0.55 + 0.45*((double)count/numPolys));
this->UpdateProgress(0.55 +
0.45*(static_cast<double>(count)/numPolys));
}
//Create a new polygon that includes all the points including the
......
......@@ -22,7 +22,7 @@
#include "vtkStructuredGrid.h"
#include "vtkUnsignedCharArray.h"
vtkCxxRevisionMacro(vtkBlankStructuredGrid, "1.13");
vtkCxxRevisionMacro(vtkBlankStructuredGrid, "1.14");
vtkStandardNewMacro(vtkBlankStructuredGrid);
// Construct object to extract all of the input data.
......@@ -129,7 +129,7 @@ int vtkBlankStructuredGrid::RequestData(
switch (dataArray->GetDataType())
{
vtkTemplateMacro(
vtkBlankStructuredGridExecute(this, (VTK_TT *)(dptr), numPts,
vtkBlankStructuredGridExecute(this, static_cast<VTK_TT *>(dptr), numPts,
numComp, this->Component,
this->MinBlankingValue,
this->MaxBlankingValue, blanking));
......
......@@ -25,7 +25,7 @@
#include "vtkStructuredGrid.h"
#include "vtkUnsignedCharArray.h"
vtkCxxRevisionMacro(vtkBlankStructuredGridWithImage, "1.13");
vtkCxxRevisionMacro(vtkBlankStructuredGridWithImage, "1.14");
vtkStandardNewMacro(vtkBlankStructuredGridWithImage);
//----------------------------------------------------------------------------
......@@ -104,7 +104,7 @@ int vtkBlankStructuredGridWithImage::RequestData(
}
// Get the image, set it as the blanking array.
unsigned char *data = (unsigned char *)image->GetScalarPointer();
unsigned char *data=static_cast<unsigned char *>(image->GetScalarPointer());
vtkUnsignedCharArray *dataArray = vtkUnsignedCharArray::New();
dataArray->SetArray(data, gridDims[0]*gridDims[1]*gridDims[2], 1);
......
......@@ -36,7 +36,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkBoxClipDataSet, "1.21");
vtkCxxRevisionMacro(vtkBoxClipDataSet, "1.22");
vtkStandardNewMacro(vtkBoxClipDataSet);
vtkCxxSetObjectMacro(vtkBoxClipDataSet, Locator, vtkPointLocator)
......@@ -249,7 +249,7 @@ int vtkBoxClipDataSet::RequestData(vtkInformation *vtkNotUsed(request),
{
if ( !(cellId % updateTime) )
{
this->UpdateProgress((float)cellId / numCells);
this->UpdateProgress(static_cast<float>(cellId) / numCells);
abort = this->GetAbortExecute();
}
......
......@@ -24,7 +24,7 @@
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
vtkCxxRevisionMacro(vtkBrownianPoints, "1.41");
vtkCxxRevisionMacro(vtkBrownianPoints, "1.42");
vtkStandardNewMacro(vtkBrownianPoints);
vtkBrownianPoints::vtkBrownianPoints()
......@@ -83,7 +83,7 @@ int vtkBrownianPoints::RequestData(
{
if ( ! (i % tenth) )
{
this->UpdateProgress ((double)i/numPts);
this->UpdateProgress (static_cast<double>(i)/numPts);
if (this->GetAbortExecute())
{
break;
......
......@@ -21,7 +21,7 @@
#include "vtkPointData.h"
#include "vtkPolyData.h"
vtkCxxRevisionMacro(vtkButterflySubdivisionFilter, "1.16");
vtkCxxRevisionMacro(vtkButterflySubdivisionFilter, "1.17");
vtkStandardNewMacro(vtkButterflySubdivisionFilter);
static double butterflyWeights[8] =
......@@ -222,8 +222,8 @@ void vtkButterflySubdivisionFilter::GenerateLoopStencil(
{
for (j = 0; j < K; j++)
{
weights[j] = (.25 + cos (2.0 * VTK_PI * (double) shift[j] / (double) K)
+ .5 * cos (4.0 * VTK_PI * (double) shift[j] / (double) K)) / (double) K;
weights[j] = (.25 + cos (2.0 * VTK_PI * shift[j] / static_cast<double>(K))
+ .5 * cos (4.0 * VTK_PI * shift[j] / static_cast<double>(K))) / static_cast<double>(K);
}
}
else if (K == 4)
......
......@@ -22,7 +22,7 @@
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
vtkCxxRevisionMacro(vtkCellDataToPointData, "1.36");
vtkCxxRevisionMacro(vtkCellDataToPointData, "1.37");
vtkStandardNewMacro(vtkCellDataToPointData);
//----------------------------------------------------------------------------
......@@ -89,7 +89,7 @@ int vtkCellDataToPointData::RequestData(
{
if ( !(ptId % progressInterval) )
{
this->UpdateProgress((double)ptId/numPts);
this->UpdateProgress(static_cast<double>(ptId)/numPts);
abort = GetAbortExecute();
}
......
......@@ -27,7 +27,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkCellDerivatives, "1.29");
vtkCxxRevisionMacro(vtkCellDerivatives, "1.30");
vtkStandardNewMacro(vtkCellDerivatives);
vtkCellDerivatives::vtkCellDerivatives()
......@@ -153,7 +153,7 @@ int vtkCellDerivatives::RequestData(
if ( ! (cellId % progressInterval) )
{
vtkDebugMacro(<<"Computing cell #" << cellId);
this->UpdateProgress ((double)cellId/numCells);
this->UpdateProgress (static_cast<double>(cellId)/numCells);
}
input->GetCell(cellId, cell);
......
......@@ -35,7 +35,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkClipDataSet, "1.49");
vtkCxxRevisionMacro(vtkClipDataSet, "1.50");
vtkStandardNewMacro(vtkClipDataSet);
vtkCxxSetObjectMacro(vtkClipDataSet,ClipFunction,vtkImplicitFunction);
......@@ -359,7 +359,7 @@ int vtkClipDataSet::RequestData(
{
if ( !(cellId % updateTime) )
{
this->UpdateProgress((double)cellId / numCells);
this->UpdateProgress(static_cast<double>(cellId) / numCells);
abort = this->GetAbortExecute();
}
......
......@@ -43,7 +43,7 @@
#include <math.h>
#include <assert.h>
vtkCxxRevisionMacro(vtkClipHyperOctree, "1.6");
vtkCxxRevisionMacro(vtkClipHyperOctree, "1.7");
vtkStandardNewMacro(vtkClipHyperOctree);
vtkCxxSetObjectMacro(vtkClipHyperOctree,ClipFunction,vtkImplicitFunction);
......@@ -220,7 +220,7 @@ int vtkClipHyperOctree::RequestData(vtkInformation *vtkNotUsed(request),
this->Locator->InitPointInsertion (newPoints, this->Input->GetBounds());
this->InCD=(vtkCellData*)(this->Input->GetLeafData());
this->InCD=static_cast<vtkCellData *>(this->Input->GetLeafData());
this->OutCD[0] = this->Output->GetCellData();
this->OutCD[0]->CopyAllocate(this->InCD,estimatedSize,estimatedSize/2);
if ( this->GenerateClippedOutput )
......
......@@ -31,7 +31,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkClipPolyData, "1.58");
vtkCxxRevisionMacro(vtkClipPolyData, "1.59");
vtkStandardNewMacro(vtkClipPolyData);
vtkCxxSetObjectMacro(vtkClipPolyData,ClipFunction,vtkImplicitFunction);
......@@ -278,7 +278,7 @@ int vtkClipPolyData::RequestData(
if ( !(cellId % updateTime) )
{
this->UpdateProgress((double)cellId / numCells);
this->UpdateProgress(static_cast<double>(cellId) / numCells);
abort = this->GetAbortExecute();
}
} //for each cell
......
......@@ -34,7 +34,7 @@
#include "vtkIdTypeArray.h"
#include "vtkUnsignedCharArray.h"
vtkCxxRevisionMacro(vtkClipVolume, "1.72");
vtkCxxRevisionMacro(vtkClipVolume, "1.73");
vtkStandardNewMacro(vtkClipVolume);
vtkCxxSetObjectMacro(vtkClipVolume,ClipFunction,vtkImplicitFunction);
......@@ -285,7 +285,7 @@ int vtkClipVolume::RequestData(
for ( k=0; k < numKCells && !abort; k++)
{
// Check for progress and abort on every z-slice
this->UpdateProgress((double)k / numKCells);
this->UpdateProgress(static_cast<double>(k) / numKCells);
abort = this->GetAbortExecute();
for ( j=0; j < numJCells; j++)
{
......
......@@ -26,7 +26,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkConeSource, "1.73");
vtkCxxRevisionMacro(vtkConeSource, "1.74");
vtkStandardNewMacro(vtkConeSource);
//----------------------------------------------------------------------------
......@@ -196,8 +196,8 @@ int vtkConeSource::RequestData(
for (i=0; i < this->Resolution; i++)
{
x[0] = xbot;
x[1] = this->Radius * cos ((double)i*angle);
x[2] = this->Radius * sin ((double)i*angle);
x[1] = this->Radius * cos (i*angle);
x[2] = this->Radius * sin (i*angle);
// Reverse the order
pts[this->Resolution - i - 1] = newPoints->InsertNextPoint(x);
}
......@@ -209,13 +209,13 @@ int vtkConeSource::RequestData(
{
// we need to create the points also
x[0] = xbot;
x[1] = this->Radius * cos ((double)start*angle);
x[2] = this->Radius * sin ((double)start*angle);
x[1] = this->Radius * cos (start*angle);
x[2] = this->Radius * sin (start*angle);
pts[1] = newPoints->InsertNextPoint(x);
for (i = start; i <= end; ++i)
{
x[1] = this->Radius * cos ((double)(i+1)*angle);
x[2] = this->Radius * sin ((double)(i+1)*angle);
x[1] = this->Radius * cos ((i+1)*angle);
x[2] = this->Radius * sin ((i+1)*angle);
pts[2] = newPoints->InsertNextPoint(x);
newPolys->InsertNextCell(3,pts);
pts[1] = pts[2];
......@@ -256,10 +256,11 @@ int vtkConeSource::RequestData(
}
else
{
t->RotateWXYZ((double)180.0, (this->Direction[0]+vMag)/2.0,
t->RotateWXYZ(180.0, (this->Direction[0]+vMag)/2.0,
this->Direction[1]/2.0, this->Direction[2]/2.0);
}
float *ipts = ((vtkFloatArray *)newPoints->GetData())->GetPointer(0);
float *ipts=
static_cast<vtkFloatArray *>(newPoints->GetData())->GetPointer(0);
for (i=0; i<numPts; i++, ipts+=3)
{
t->TransformPoint(ipts,ipts);
......@@ -304,7 +305,7 @@ int vtkConeSource::RequestInformation(
//----------------------------------------------------------------------------
void vtkConeSource::SetAngle(double angle)
{
this->SetRadius (this->Height * tan ((double) angle*vtkMath::DegreesToRadians()));
this->SetRadius (this->Height * tan (angle*vtkMath::DegreesToRadians()));
}
//----------------------------------------------------------------------------
......
......@@ -43,7 +43,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkContourFilter, "1.126");
vtkCxxRevisionMacro(vtkContourFilter, "1.127");
vtkStandardNewMacro(vtkContourFilter);
vtkCxxSetObjectMacro(vtkContourFilter,ScalarTree,vtkScalarTree);
......@@ -369,7 +369,7 @@ int vtkContourFilter::RequestData(
vtkContourGrid *cgrid;
cgrid = vtkContourGrid::New();
cgrid->SetInput((vtkUnstructuredGrid *)input);
cgrid->SetInput(input);
for (i = 0; i < numContours; i++)
{
cgrid->SetValue(i, values[i]);
......@@ -396,7 +396,8 @@ int vtkContourFilter::RequestData(
// Create objects to hold output of contour operation. First estimate
// allocation size.
//
estimatedSize = (vtkIdType) pow ((double) numCells, .75);
estimatedSize=
static_cast<vtkIdType>(pow(static_cast<double>(numCells),.75));
estimatedSize *= numContours;
estimatedSize = estimatedSize / 1024 * 1024; //multiple of 1024
if (estimatedSize < 1024)
......@@ -481,7 +482,7 @@ int vtkContourFilter::RequestData(
if (dimensionality == 3 && ! (cellId % 5000) )
{
vtkDebugMacro(<<"Contouring #" << cellId);
this->UpdateProgress ((double)cellId/numCells);
this->UpdateProgress (static_cast<double>(cellId)/numCells);
abortExecute = this->GetAbortExecute();
}
......
......@@ -31,7 +31,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkContourGrid, "1.32");
vtkCxxRevisionMacro(vtkContourGrid, "1.33");
vtkStandardNewMacro(vtkContourGrid);
// Construct object with initial range (0,1) and single contour value
......@@ -109,7 +109,7 @@ void vtkContourGridExecute(vtkContourGrid *self, vtkDataSet *input,
vtkPointData *inPd=input->GetPointData(), *outPd=output->GetPointData();
vtkCellData *inCd=input->GetCellData(), *outCd=output->GetCellData();
vtkDataArray *cellScalars;
vtkUnstructuredGrid *grid = (vtkUnstructuredGrid *)input;
vtkUnstructuredGrid *grid = static_cast<vtkUnstructuredGrid *>(input);
//In this case, we know that the input is an unstructured grid.
vtkIdType numPoints, cellArrayIt = 0;
int needCell = 0;
......@@ -122,7 +122,7 @@ void vtkContourGridExecute(vtkContourGrid *self, vtkDataSet *input,
// Create objects to hold output of contour operation. First estimate
// allocation size.
//
estimatedSize = (vtkIdType) pow ((double) numCells, .75);
estimatedSize=static_cast<vtkIdType>(pow(static_cast<double>(numCells),.75));
estimatedSize *= numContours;
estimatedSize = estimatedSize / 1024 * 1024; //multiple of 1024
if (estimatedSize < 1024)
......@@ -222,7 +222,7 @@ void vtkContourGridExecute(vtkContourGrid *self, vtkDataSet *input,
if (dimensionality == 3 && ! (cellId % 5000) )
{
self->UpdateProgress ((double)cellId/numCells);
self->UpdateProgress (static_cast<double>(cellId)/numCells);
if (self->GetAbortExecute())
{
abortExecute = 1;
......@@ -364,10 +364,10 @@ int vtkContourGrid::RequestData(
switch (inScalars->GetDataType())
{
vtkTemplateMacro(
vtkContourGridExecute( this, input, output, inScalars,
(VTK_TT *)(scalarArrayPtr), numContours, values,
computeScalars, useScalarTree,
scalarTree));
vtkContourGridExecute(this, input, output, inScalars,
static_cast<VTK_TT *>(scalarArrayPtr),
numContours, values,computeScalars, useScalarTree,
scalarTree));
default:
vtkErrorMacro(<< "Execute: Unknown ScalarType");
return 1;
......
......@@ -20,7 +20,7 @@
#include "vtkPolyData.h"
#include <math.h>
vtkCxxRevisionMacro(vtkCursor2D, "1.2");
vtkCxxRevisionMacro(vtkCursor2D, "1.3");
vtkStandardNewMacro(vtkCursor2D);
//---------------------------------------------------------------------------
......@@ -76,8 +76,10 @@ int vtkCursor2D::RequestData(
for (i=0; i<2; i++)
{
this->FocalPoint[i] = this->ModelBounds[2*i] +
fmod((double)(this->FocalPoint[i]-this->ModelBounds[2*i]),
(double)(this->ModelBounds[2*i+1]-this->ModelBounds[2*i]));
fmod(static_cast<double>(
this->FocalPoint[i]-this->ModelBounds[2*i]),
static_cast<double>(
this->ModelBounds[2*i+1]-this->ModelBounds[2*i]));
}
}
else
......@@ -287,8 +289,10 @@ void vtkCursor2D::SetFocalPoint(double x[3])
else if ( this->Wrap ) //wrap
{
this->FocalPoint[i] = this->ModelBounds[2*i] +
fmod((double)(this->FocalPoint[i]-this->ModelBounds[2*i]),
(double)(this->ModelBounds[2*i+1]-this->ModelBounds[2*i]));
fmod(static_cast<double>(
this->FocalPoint[i]-this->ModelBounds[2*i]),
static_cast<double>(
this->ModelBounds[2*i+1]-this->ModelBounds[2*i]));
}
else //clamp
{
......
......@@ -22,7 +22,7 @@
#include <math.h>
vtkCxxRevisionMacro(vtkCursor3D, "1.46");
vtkCxxRevisionMacro(vtkCursor3D, "1.47");
vtkStandardNewMacro(vtkCursor3D);
// Construct with model bounds = (-1,1,-1,1,-1,1), focal point = (0,0,0),
......@@ -96,8 +96,10 @@ int vtkCursor3D::RequestData(
for (i=0; i<3; i++)
{
this->FocalPoint[i] = this->ModelBounds[2*i] +
fmod((double)(this->FocalPoint[i]-this->ModelBounds[2*i]),
(double)(this->ModelBounds[2*i+1]-this->ModelBounds[2*i]));
fmod(static_cast<double>(
this->FocalPoint[i]-this->ModelBounds[2*i]),
static_cast<double>(
this->ModelBounds[2*i+1]-this->ModelBounds[2*i]));
}
}
else
......@@ -455,8 +457,10 @@ void vtkCursor3D::SetFocalPoint(double x[3])
else if ( this->Wrap ) //wrap
{
this->FocalPoint[i] = this->ModelBounds[2*i] +
fmod((double)(this->FocalPoint[i]-this->ModelBounds[2*i]),
(double)(this->ModelBounds[2*i+1]-this->ModelBounds[2*i]));
fmod(static_cast<double>(
this->FocalPoint[i]-this->ModelBounds[2*i]),
static_cast<double>(
this->ModelBounds[2*i+1]-this->ModelBounds[2*i]));
}
else //clamp
{
......
......@@ -29,7 +29,7 @@
#include "vtkTensor.h"
#include "vtkTriangle.h"
vtkCxxRevisionMacro(vtkCurvatures, "1.14");
vtkCxxRevisionMacro(vtkCurvatures, "1.15");
vtkStandardNewMacro(vtkCurvatures);
//------------------------------------------------------------------------------
......@@ -187,7 +187,7 @@ void vtkCurvatures::GetMeanCurvature(vtkPolyData *mesh)
{
if (num_neighb[v]>0)
{
Hf = 0.5*meanCurvatureData[v]/(double)num_neighb[v];
Hf = 0.5*meanCurvatureData[v]/num_neighb[v];
if (this->InvertMeanCurvature)
{
meanCurvatureData[v] = -Hf;
......@@ -337,8 +337,10 @@ void vtkCurvatures::GetMaximumCurvature(vtkPolyData *input,vtkPolyData *output)
output->GetPointData()->SetActiveScalars("Maximum_Curvature");
maximumCurvature->Delete();
vtkDoubleArray *gauss = (vtkDoubleArray *)output->GetPointData()->GetArray("Gauss_Curvature");
vtkDoubleArray *mean = (vtkDoubleArray *)output->GetPointData()->GetArray("Mean_Curvature");
vtkDoubleArray *gauss = static_cast<vtkDoubleArray *>(
output->GetPointData()->GetArray("Gauss_Curvature"));
vtkDoubleArray *mean = static_cast<vtkDoubleArray *>(
output->GetPointData()->GetArray("Mean_Curvature"));
double k, h, k_max,tmp;
for (vtkIdType i = 0; i<numPts; i++)
......@@ -376,8 +378,10 @@ void vtkCurvatures::GetMinimumCurvature(vtkPolyData *input,vtkPolyData *output)
output->GetPointData()->SetActiveScalars("Minimum_Curvature");
minimumCurvature->Delete();
vtkDoubleArray *gauss = (vtkDoubleArray *)output->GetPointData()->GetArray("Gauss_Curvature");
vtkDoubleArray *mean = (vtkDoubleArray *)output->GetPointData()->GetArray("Mean_Curvature");
vtkDoubleArray *gauss = static_cast<vtkDoubleArray *>(
output->GetPointData()->GetArray("Gauss_Curvature"));
vtkDoubleArray *mean = static_cast<vtkDoubleArray *>(
output->GetPointData()->GetArray("Mean_Curvature"));
double k, h, k_min,tmp;
for (vtkIdType i = 0; i<numPts; i++)
......
Supports Markdown
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