Dear Inkscape-devel,
I am trying to figure out what the best way to add multiple user-defined knot holders to the LPE is. Let’s say I want to allow lpe-tangent_to_curve to have multiple tangent knots that I can slide independently, or lpe-knot to have multiple independent knots instead of shifting between each intersection by dragging a single knot around. What is the best practice of doing this? The mechanism of implementing addKnotHolderEntities(), knot_set(), knot_get() seems to support the case that I have just one knot to insert (per class defined). I am not sure if it can support multiple knots (of the same kind) that work independently from each other this way.
Another related question is, what’s is best practice to store multiple ScalarParam’s or VectorParam's that basically do the same thing? Again, let’s say I want to implement lpe-tangent_to_curve so that I can look at multiple tangent lines independently. Would you use, let’s say, std::vector<VectorParam> or ArrayParam<VectorParam>?
If someone can point me to existing LPE code that does something similar I’d also appreciate, since I haven’t found it so far.
Regards, _______________________ Papoj "Hua" Thamjaroenporn pt2277@...3110...