Paraview vtk plot normals11/7/2023 Util.SetOutputWholeExtent(self,0,resolution,0,0])Īlso on changinng normals variable and hitting Apply makes the output on Paraview produce plots with garbage values. Util.SetOutputWholeExtent(self,0,0,0,resolution]) Util.SetOutputWholeExtent(self,0,resolution]) # This part of the code is to be placed in the "RequestInformation Script" entry: Ido.SetScalarComponentFromDouble(i,j,0, 0, proj_img) Ido.SetScalarComponentFromDouble(i,0,j, 0, proj_img) Ido.SetScalarComponentFromDouble(0,i,j, 0, proj_img) Weight_img = np.zeros((resolution,resolution),dtype=np.float64) Proj_img = np.zeros((resolution,resolution),dtype=np.float64) #All cells are assumed to be of uniform size in data Weight = np.reshape(weight,(dimensions,dimensions,dimensions),order='F') ![]() Weight = pdi.PointData #np.ones(numPts, dtype=np.float64) Ivals = np.reshape(ivals,(dimensions,dimensions,dimensions),order='F') #choose an input point data array the projection of which is to be made ![]() Ido.SetExtent(0,resolution,0,resolution,0,0) Ido.SetDimensions(resolution,resolution,1) Ido.SetExtent(0,resolution,0,0,0,resolution) Ido.SetDimensions(resolution,1,resolution) Ido.SetExtent(0,0,0,resolution,0,resolution) Ido.SetDimensions(1,resolution,resolution) Resolution = (extent-extent,extent-extent) #pixel for the projection plot ![]() Xmin, xmax, ymin, ymax, zmin, zmax = pdi.GetBounds() from _interface import dataset_adapter as dsaįrom _interface import algorithms as algs Can you please have a look at this and also comment on the efficiency on large datasets run on parallel client-server interface? I get the correct expected image in matplotlib figure but not for the vtkImageData on Paraview (very strange behavior at the boundary). For comparing, I was also creating a matplotlib figure on the array which I’m creating for the vtk data. I tried to make a vtkImageData of the filter.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |