-
Hi there Marco!! I need to understand exactly how the class segments the points based on the user interaction, so that I can extend it by adding methods for cutters of different geometries. This is what I have so far:
This code produces the following error:
I am confused by this. How can self.spline be None, while self.mesh has a value? If I remove getSplineValsCallback(), then the cutter runs with full functionality, so I don't think there is a problem with my extension of the class. Maybe you have some insights as to what I am doing wrong here? Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @jkissi |
Beta Was this translation helpful? Give feedback.
-
Hi there Marco, |
Beta Was this translation helpful? Give feedback.
Hi @jkissi
try
plt.addCallback('KeyPress', plt.getSplineValsCallback, priority=100)
so the object is not erased by the previous
z
keypress call of the parent.Also
super().start(*args, **kwargs)
looks a bit weird to my eye.. should be better
self.start(*args, **kwargs)