|
22 | 22 | #include <vtkTransform.h> |
23 | 23 | #include <vtkUnsignedCharArray.h> |
24 | 24 | #include <vtkVRMLExporter.h> |
| 25 | +#include <vtkVersionMacros.h> |
25 | 26 |
|
26 | 27 | // base code includes |
27 | 28 | #include <Debug.h> |
@@ -145,7 +146,12 @@ TTKWRLEXPORTER_EXPORT void vtkVRMLExporter::WriteAnActor(vtkActor *anActor, |
145 | 146 | fprintf(fp, " solid FALSE\n"); |
146 | 147 |
|
147 | 148 | if(!pointDataWritten) { |
| 149 | + |
| 150 | +#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 4, 20250513) |
| 151 | + this->WritePointData(points, normals, tcoords, colors, false, fp); |
| 152 | +#else |
148 | 153 | this->WritePointData(points, normals, tcoords, colors, fp); |
| 154 | +#endif |
149 | 155 | pointDataWritten = 1; |
150 | 156 | } else { |
151 | 157 | fprintf(fp, " coord USE VTKcoordinates\n"); |
@@ -189,7 +195,13 @@ TTKWRLEXPORTER_EXPORT void vtkVRMLExporter::WriteAnActor(vtkActor *anActor, |
189 | 195 | fprintf(fp, " geometry IndexedFaceSet {\n"); |
190 | 196 |
|
191 | 197 | if(!pointDataWritten) { |
| 198 | + |
| 199 | +#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 4, 20250513) |
| 200 | + this->WritePointData(points, normals, tcoords, colors, false, fp); |
| 201 | +#else |
192 | 202 | this->WritePointData(points, normals, tcoords, colors, fp); |
| 203 | +#endif |
| 204 | + |
193 | 205 | pointDataWritten = 1; |
194 | 206 | } else { |
195 | 207 | fprintf(fp, " coord USE VTKcoordinates\n"); |
@@ -238,7 +250,12 @@ TTKWRLEXPORTER_EXPORT void vtkVRMLExporter::WriteAnActor(vtkActor *anActor, |
238 | 250 | fprintf(fp, " geometry IndexedLineSet {\n"); |
239 | 251 |
|
240 | 252 | if(!pointDataWritten) { |
| 253 | + |
| 254 | +#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 4, 20250513) |
| 255 | + this->WritePointData(points, nullptr, nullptr, colors, false, fp); |
| 256 | +#else |
241 | 257 | this->WritePointData(points, nullptr, nullptr, colors, fp); |
| 258 | +#endif |
242 | 259 | } else { |
243 | 260 | fprintf(fp, " coord USE VTKcoordinates\n"); |
244 | 261 |
|
@@ -440,6 +457,9 @@ TTKWRLEXPORTER_EXPORT void |
440 | 457 | vtkDataArray *normals, |
441 | 458 | vtkDataArray *tcoords, |
442 | 459 | vtkUnsignedCharArray *colors, |
| 460 | +#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 4, 20250513) |
| 461 | + bool vtkNotUsed(cellData), |
| 462 | +#endif |
443 | 463 | FILE *fp) { |
444 | 464 |
|
445 | 465 | double *p; |
|
0 commit comments