Hi to all.
Working with a function that split into subpaths all self crossings of a path, I throw a LPE exception in path.portion I call it with a value for example "path.portion(0,2.9345)" and path size == 4. I think I dont get any continuity problems when creating a portion, anyway it happends, also if active setStitching to the path
Here are the function: https://inkscape.org/en/gallery/item/7011 I comment in the code where the exception happens "std::cout << "EXCEPTON HERE\n";" Next logs to this line don't show if exception.
Any help is welcome, cheers, Jabier.
2015-11-25 8:03 GMT-08:00 Jabiertxo Arraiza Cenoz <jabier.arraiza@...2893...>:
Hi to all.
Working with a function that split into subpaths all self crossings of a path, I throw a LPE exception in path.portion I call it with a value for example "path.portion(0,2.9345)" and path size == 4. I think I dont get any continuity problems when creating a portion, anyway it happends, also if active setStitching to the path
Here are the function: https://inkscape.org/en/gallery/item/7011 I comment in the code where the exception happens "std::cout << "EXCEPTON HERE\n";" Next logs to this line don't show if exception.
Any help is welcome, cheers, Jabier.
That is strange.
Can you log the exact parameters of the portion call? I.e. what is the path (in SVG syntax) and what are the parameters to portion? Use Geom::format_coord_nice() from 2Geom to print the portion parameters.
Best regards, Krzysztof.
Thanks Krzysztof for the help.
I do some couts to locate the problem but I couldent find it in first instance. Finaly, I get the problem, it happend sometimes when apply the LPE on ellipses.
Its not the first time it happends to me, previosly I solve it using the function "pathv_to_linear_and_cubic_beziers()" but from time ago, I think, this function don't convert ellipticalArcs, so throw a coninuity errors on portion or append, I think both.
I retain the cout logs commented in the code.
Cheers, Jabier.
PD. Krzysztof, Im using your boolops code in the offset branch, when ready, you have time to help me reviewing it?
El jue, 26-11-2015 a las 16:58 -0800, Krzysztof Kosiński escribió:
2015-11-25 8:03 GMT-08:00 Jabiertxo Arraiza Cenoz <jabier.arraiza@...3286...... ker.es>:
Hi to all.
Working with a function that split into subpaths all self crossings of a path, I throw a LPE exception in path.portion I call it with a value for example "path.portion(0,2.9345)" and path size == 4. I think I dont get any continuity problems when creating a portion, anyway it happends, also if active setStitching to the path
Here are the function: https://inkscape.org/en/gallery/item/7011 I comment in the code where the exception happens "std::cout << "EXCEPTON HERE\n";" Next logs to this line don't show if exception.
Any help is welcome, cheers, Jabier.
That is strange.
Can you log the exact parameters of the portion call? I.e. what is the path (in SVG syntax) and what are the parameters to portion? Use Geom::format_coord_nice() from 2Geom to print the portion parameters.
Best regards, Krzysztof.
participants (2)
-
Jabiertxo Arraiza Cenoz
-
Krzysztof Kosiński