Hi all,
I have an actor/mapper misunderstood with 3d slicer.
I want to interact in python, with my 3d model, but I don’t know how to access to the “GetOutput” of my loading model.
Thanks Andrea,
But in fact, I want to connect the output port of one algorithm (my model loaded by ‘slicer.util.loadModel(‘model.stl’)’ to the input port of another algorithm (here called X).
But I always miss the reader.GetOutputPort().
I am sorry but I do not understand how slicer use VTK (always this actor/mapper question), thus in Slicer, I am lost how to access to the:
.GetProperty().SetColor(1,0,0) or SetPointSize(20)
Typically, without actor/mapper, how to do that with 3d slicer:
Perfect,
Thanks one again @lassoan, and sorry for my newby question.
Best.
Ps: I completed my script to calculate distance along the surface in slicer. I will probably value it in implementing my python lines in an extension in a couple of days.