I’ve attached the code I wrote below.
I want to know the reason. No problem with 64bit, but with 32bit the same problem.
SkinExtractor-> SetValue (0, value); Set the value value to 250.0.
vtkSmartPointer<vtkNamedColors> colors = vtkSmartPointer<vtkNamedColors>::New();
std::array<unsigned char, 4> skinColor{ { 255, 125, 65 } };
colors->SetColor("SkinColor", skinColor.data());
// An isosurface, or contour value of 500 is known to correspond to
// the skin of the patient.
// The triangle stripper is used to create triangle
// strips from the isosurface; these render much faster on may
// systems.
vtkSmartPointer<vtkMarchingCubes> skinExtractor = vtkSmartPointer<vtkMarchingCubes>::New();
#ifdef FLIP
skinExtractor->SetInputConnection(flip->GetOutputPort());
#else
skinExtractor->SetInputConnection(importer->GetOutputPort());
#endif
skinExtractor->SetValue(0, value); // 0 ~ 500
skinExtractor->Update();
vtkSmartPointer<vtkStripper> skinStripper = vtkSmartPointer<vtkStripper>::New();
skinStripper->SetInputConnection(skinExtractor->GetOutputPort());
skinStripper->Update();