Re: [Gimp-user] A better way to close a path where an end node is on top of a start node
- From: Ofnuts <ofnuts gmx com>
- To: gimp-user-list gnome org
- Subject: Re: [Gimp-user] A better way to close a path where an end node is on top of a start node
- Date: Mon, 1 Feb 2016 00:14:31 +0100
On 29/01/16 14:53, ugajin wrote:
I have been searching for how best to close a path where an end node is on top of a start node.
One work-around is to not place the end node on the start node, so that the path can be closed in the usual
way, and then move what had been intended to be the end node on top of the start node. This hack will create
a path segment between the start end and nodes with the expected zero values, but it will be a closed path.
Not closing path nodes may not always create an issue when using paths to generate bitmapped images, but it
may when e.g. stroking paths, and the otherwise unnecessary data can be a tad messy when exporting paths.
Another workaround (good for OCD types) is perhaps to place the end node on the start node, export and edit
the path data adding a close-path flag, and then import it back into Gimp.
If you are doing this in a script:
* copy the backwards tangent of the last node to the first node
* drop the last node and its tangent handles
* mark the stroke closed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]