I'm trying to import a CAD assembly from SolidWorks to VTK using vtkSTLReader
and vtkVRMLImporter in Python. From my understanding, these are the only 3D
formats VTK is able to read from SolidWorks.
Doing that, I encountered 2 issues:
1) When importing an STL part, is it possible to scale its size so that it
will fit my original SolidWorks part? After adding the actor of the STL
part, it seems to give the part an arbitrary origin and scale.
2) How can I import a VRML 3D model and assign an actor to it?
What I fail to understand is why the VRMLImporter is creating the renderer
without any artist involved. With vtkSTLReader or VTKSources (cube, cone,
etc) I assign their mappers to an actor for applying transformations or
other functions on the artists. With VRML there is no artist which
corresponds to the 3D object in all examples I've seen. How can I do that?