好的,所以这就是我到目前为止所做的一切,它是用坐标填充直线网格并显示它。我想在渲染时突出显示网格内某些点之间的空间。我怎么做?
#initializing coordinates
xCoords=vtk.vtkFloatArray()
for i in xPoints:
xCoords.InsertNextValue(i)
yCoords=vtk.vtkFloatArray()
for i in yPoints:
yCoords.InsertNextValue(i)
zCoords=vtk.vtkFloatArray()
for i in zPoints:
zCoords.InsertNextValue(i)
rgrid = vtk.vtkRectilinearGrid()
rgrid.SetDimensions(len(xPoints), len(yPoints), len(zPoints))
rgrid.SetXCoordinates(xCoords)
rgrid.SetYCoordinates(yCoords)
rgrid.SetZCoordinates(zCoords)
## rendercode>>>