Skip to content

Commit 6428ab7

Browse files
committed
datatype of vtkPoints changed to double 2
1 parent f3f057d commit 6428ab7

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

Contact.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ Contact::Contact (vtkPolyData *newPdA, vtkPolyData *newPdB) : newPdA(newPdA), ne
125125
assert(newPdA->GetCellData()->GetScalars("OrigCellIds") != nullptr);
126126
assert(newPdB->GetCellData()->GetScalars("OrigCellIds") != nullptr);
127127

128-
pts = vtkSmartPointer<vtkPoints>::New(VTK_DOUBLE);
128+
pts = vtkSmartPointer<vtkPoints>::New();
129+
pts->SetDataTypeToDouble();
129130

130131
lines = vtkSmartPointer<vtkPolyData>::New();
131132
lines->SetPoints(pts);

Merger.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ void Merger::MergeGroup (const GroupType &group, PolysType &merged) {
172172
return;
173173
}
174174

175-
auto pts = vtkSmartPointer<vtkPoints>::New(VTK_DOUBLE);
175+
auto pts = vtkSmartPointer<vtkPoints>::New();
176+
pts->SetDataTypeToDouble();
176177

177178
IndexedPolysType indexedPolys;
178179

@@ -493,7 +494,8 @@ void Merger::MergeGroup (const GroupType &group, PolysType &merged) {
493494
pts->GetPoint(conn.i, ptA);
494495
pts->GetPoint(conn.j, ptB);
495496

496-
auto intersPts = vtkSmartPointer<vtkPoints>::New(VTK_DOUBLE);
497+
auto intersPts = vtkSmartPointer<vtkPoints>::New();
498+
intersPts->SetDataTypeToDouble();
497499

498500
auto c = bspTreeB->IntersectWithLine(ptA, ptB, 1e-5, intersPts, nullptr);
499501

Optimize.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ void PreventEqualCaptPoints::Find (vtkPolyData *pd, vtkPolyData *other, [[maybe_
8484
tree->SetDataSet(other);
8585
tree->BuildLocator();
8686

87-
auto pts = vtkSmartPointer<vtkPoints>::New(VTK_DOUBLE);
87+
auto pts = vtkSmartPointer<vtkPoints>::New();
88+
pts->SetDataTypeToDouble();
8889

8990
auto cells = vtkSmartPointer<vtkIdList>::New();
9091

@@ -98,7 +99,8 @@ void PreventEqualCaptPoints::Find (vtkPolyData *pd, vtkPolyData *other, [[maybe_
9899
auto pdVerts = vtkSmartPointer<vtkPolyData>::New();
99100
pdVerts->Allocate(1);
100101

101-
auto ptsVerts = vtkSmartPointer<vtkPoints>::New(VTK_DOUBLE);
102+
auto ptsVerts = vtkSmartPointer<vtkPoints>::New();
103+
ptsVerts->SetDataTypeToDouble();
102104
#endif
103105

104106
std::map<vtkIdType, std::vector<SnapPoint>> pointSnaps;

Utilities.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ bool PointInPoly (const Poly &poly, const Point3d &p) {
197197

198198
#ifdef DEBUG
199199
void WritePolys (const char *name, const PolysType &polys) {
200-
auto pts = vtkSmartPointer<vtkPoints>::New(VTK_DOUBLE);
200+
auto pts = vtkSmartPointer<vtkPoints>::New();
201+
pts->SetDataTypeToDouble();
201202

202203
auto pd = vtkSmartPointer<vtkPolyData>::New();
203204
pd->SetPoints(pts);
@@ -328,7 +329,8 @@ void ProjOnLine (vtkPolyData *pd, const Pair &line, const Point3d &p, std::share
328329
}
329330

330331
vtkSmartPointer<vtkPolyData> CreatePolyData (const PolysType &polys) {
331-
auto pts = vtkSmartPointer<vtkPoints>::New(VTK_DOUBLE);
332+
auto pts = vtkSmartPointer<vtkPoints>::New();
333+
pts->SetDataTypeToDouble();
332334

333335
auto pd = vtkSmartPointer<vtkPolyData>::New();
334336
pd->SetPoints(pts);

vtkPolyDataBooleanFilter.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,8 @@ bool vtkPolyDataBooleanFilter::GetPolyStrips (vtkPolyData *pd, vtkIdTypeArray *c
718718
const StripPtsType &pts = pStrips.pts;
719719
const Base &base = pStrips.base;
720720

721-
auto treePts = vtkSmartPointer<vtkPoints>::New(VTK_DOUBLE);
721+
auto treePts = vtkSmartPointer<vtkPoints>::New();
722+
treePts->SetDataTypeToDouble();
722723

723724
auto treePd = vtkSmartPointer<vtkPolyData>::New();
724725
treePd->Allocate(1);

0 commit comments

Comments
 (0)