stl

Load and resize multiple STL files in python

Load and resize multiple STL files in python Question: I found the code to read an STL file but I don’t know how to read multiple STL files in one window and resize them. import vtk filename = "Stl file" reader = vtk.vtkSTLReader() reader.SetFileName(filename) mapper = vtk.vtkPolyDataMapper() if vtk.VTK_MAJOR_VERSION <= 5: mapper.SetInput(reader.GetOutput()) else: mapper.SetInputConnection(reader.GetOutputPort()) actor …

Total answers: 1