[vtkusers] is there any idea? create isosurface

minjun mey1k at naver.com
Fri Aug 10 05:11:31 EDT 2018


Hello,

i want this...

<http://vtk.1045678.n5.nabble.com/file/t342477/isosurface.png> 

i use this code

	vtkSmartPointer<vtkImplicitModeller> implicitModeller =
vtkImplicitModeller::New();
	implicitModeller->SetSampleDimensions(30, 30, 30);
	implicitModeller->SetInputData(TmpPolydata);
	implicitModeller->AdjustBoundsOn();
	implicitModeller->SetAdjustDistance(.1); // Adjust by 10%
	implicitModeller->SetMaximumDistance(.1);

	double bounds[6];
	TmpPolydata->GetBounds(bounds);
	double xrange = bounds[1] - bounds[0];

	// Create the 0 isosurface
	vtkSmartPointer<vtkContourFilter> contourFilter =
		vtkSmartPointer<vtkContourFilter>::New();
	contourFilter->SetInputConnection(implicitModeller->GetOutputPort());
	//contourFilter->SetValue(0, xrange / 10.0); // 30% of xrange
	contourFilter->SetValue(0, xrange/20.0);

so i can get first image.. i want to get second image..

is there any idea?

please help me



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list