# 需要導入模塊: import vtk [as 別名]# 或者: from vtk importVTK_MAJOR_VERSION[as 別名]defvis_3D_points(full_lidar_arr, color_style="intens_rg"):all_rows = full_lidar_arr.shape[0] Colors = vtk.vtkUnsignedCharArray() Colors.SetNumberOfComponents(3) Colors.SetName("Colors") Points = ...
VTK_MAJOR_VERSION >= 7: Colors.InsertNextTuple(rgb_tuple) else: Colors.InsertNextTupleValue(rgb_tuple) polydata = vtk.vtkPolyData() polydata.SetPoints(Points) polydata.SetVerts(Vertices) polydata.GetPointData().SetScalars(Colors) polydata.Modified() mapper = vtk.vtkPolyDataMapper() if vtk.VTK_...
VTK_LIB_USR=-L/home/sang/Software/LIGGGHTS/VTK/vtk-build/lib64 # Additional VTK libraries to include #VTK_ADDLIBS_USR= #VTK_APPENDIX_USR=pv-5.3 #Specify the version of VTK installed on the system VTK_MAJOR_VERSION=9 VTK_MINOR_VERSION=3 VTK_EPOCH_VERSION=20230101 I found In my include ...