Jump to content
You must now use your email address to sign in [click for more info] ×

Convert pie to curves


Recommended Posts

What am I doing wrong here... Or is this a bug? How to create a round cap line from a pie shape?

  • Create a single-line Pie shape (Circle - Convert to Pie - Hole radius 100%) with rounded caps.
  • Convert to curves (probably not necessary).
  • Expand strokes - round caps disappear.

Screenshot2024-01-11at18_18_43.JPG.f343c69f495e1d34b4e349ecc9cb7942.JPGAny advice, please? The workaround is to create this shape by modifying the curve with node tools. To get precise angles a pie shape would be a better option, but...

Link to comment
Share on other sites

24 minutes ago, JariH said:

What am I doing wrong here

A pie is a closed shape, in your case the distance between the two sides of the curves is zero, so they are drawn over each other - try using the Node Tool to move one node. You must therefore break the closed curve (Break curve) and delete the excess nodes. Then expand stroke.

image.png.f884c17a794cf6f624a867393c40d098.png

 

In this case (as in the given link) it would help if Affinity indicated the type of curve (different icons for open and closed curve in the layers panel).

 

Edited by Pšenda

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

The problem is that your process creates a closed shape that has nodes on top of nodes.

Try dragging on of the central 2 nodes before you expand the stroke, and you'll see what I mean.

Here's an alternative approach...

1. Draw your pie and set the angle you want, but don't increase the hole size.

2. Convert to curves.

3. With the node tool, hold Ctrl (on Windows, check status bar on Mac) and click the 2 line segments you don't want.

4. Expand the curve.

 

 

 

 

 

Win10 Home x64   |   AMD Ryzen 7 2700X @ 3.7GHz   |   48 GB RAM   |   1TB SSD   |   nVidia GTX 1660   |   Wacom Intuos Pro

Link to comment
Share on other sites

55 minutes ago, Aammppaa said:

The problem is that your process creates a closed shape that has nodes on top of nodes.

However, it is still a "bug" that the identical topology of nodes is displayed correctly once - i.e. with a rounded cap, and with Expanded stroke, the curves change completely.

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

Thanks for the tips here.

I need to break the curve at both endpoints - This way the round caps are retained when converting to a shape.

(Or create the shape with the "Spiral Tool" - but this was far too complex as well...)

I was expecting more intelligent behaviour than possible. There really should be a one-step solution to merge overlapping points on a curve. This goes to my wishlist.

Link to comment
Share on other sites

1 hour ago, Pšenda said:

However, it is still a "bug" that the identical topology of nodes is displayed correctly once - i.e. with a rounded cap, and with Expanded stroke, the curves change completely.

The problem/bug isn't whether the curve is closed, but that the handles of the overlapped nodes have the same direction and the same length.

 

Edited by Pšenda

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.4.0.2301
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.3155.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

Related, but a bit off-topic: expanding a stroke can deviate from what is seen on canvas also in diverse situations where stroke parameters are somehow extreme or untypical (e.g. abrupt smart nodes with bevel joins). In these kinds of situation rasterizations typically give what is rendered on screen while expanding gives what will happen when the stroke is exported to vectors (in OP's case the opposite is true: exporting to vectors retains the visual rendering).

expanding_anomalies.thumb.png.254ada4891b322b694076fa535d62ed3.png

expanded.pdf

It is also interesting to compare how different apps do expanding. E.g. in VectorStyler the resulting shape at least in auto-expanded strokes can be dependent on current zoom level (accuracy of rendering on canvas). In CorelDRAW (2023) expanding strokes often causes distorted shapes. Illustrator (CS6) appears to outline paths generally as rendered but similarly as Affinity apps struggles with untypical node type + attribute combinations and might produce three different versions (when rendered as stroke on canvas, expanded, and stroke exported as vectors).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.