double center_contour[] = new double[3];
double trans_x=0., trans_y=0., trans_z=0., ratio_x=0., ratio_y=0.;
contour.GetBounds(bounds_contour);
-
+
ratio_x = (bounds_data[1]-bounds_data[0])/(bounds_contour[1]-bounds_contour[0]);
ratio_y = (bounds_data[3]-bounds_data[2])/(bounds_contour[3]-bounds_contour[2]);
vtkPolyDataMapper mapper = new vtkPolyDataMapper();
mapper.SetInputData(contour);
-
+
vtkActor actor =new vtkActor();
actor.SetMapper(mapper);
actor.GetProperty().SetLineWidth(2.);
vtkPolyDataMapper mapper = new vtkPolyDataMapper();
mapper.SetInputData(contour);
-
+
vtkActor actor =new vtkActor();
actor.SetMapper(mapper);
actor.GetProperty().SetLineWidth(2.);