lsilva.m Posted May 2, 2023 Posted May 2, 2023 Hi I was trying to make a simple thing: from a circle make a line with the same perimeter (respect the length). But I realized that there is not a quick way to do this. I wonder how would you do such task when you need to. The way I did it was to draw a circle and from its diameter (px units) manually calculated the perimeter to then draw a line of the same length. But this gets more complicated if the shape is irregular. For example, imagine a shape «M» and you want to "linearise" it so it is just a line «-----». I imagine that this could be implement by choosing some sort of "convert to line" . Would this be too hard to implement? Thank you in advance. Cheers Quote
Hangman Posted May 2, 2023 Posted May 2, 2023 Hi @lsilva.m, Are you just looking for a quick way to determine the perimeter for various shapes with a view to drawing a straight line of the same length? If so then the Area tool in V2.0 would perhaps be an option... To get a better understanding, what is the reason for wanting to do this, as in how will you use it? Quote Affinity Designer 2.5.7 | Affinity Photo 2.5.7 | Affinity Publisher 2.5.7 Affinity Designer Beta 2.6.0.3027 | Affinity Photo Beta 2.6.0.3027 | Affinity Publisher Beta 2.6.0.3027 MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse
lsilva.m Posted May 2, 2023 Author Posted May 2, 2023 47 minutes ago, Hangman said: Area tool Great! This helps a lot. At least there is no need to waste time doing doing math next time. I am drawing a DNA molecule that is circular (plasmid) but it can also be represented in its linear form. So to have consistency between different representations both need the same perimeter/length. something like this: https://journals.plos.org/plosone/article/figure?id=10.1371/journal.pone.0211065.g001 Quote
GarryP Posted May 3, 2023 Posted May 3, 2023 To follow on from what’s already been said, if you use the Pie Tool to create the arcs – as per my attached video – then you can use the Area Tool to find the approximate length of the curve. In the video I’ve used a 100×100 pie to make it easy to see that the measurement is close to what you would expect (e.g. 314.171 versus 314.159). It’s not totally accurate, because a pie is not a single arc, but it’s maybe good enough for what you want. You can then draw the straight line manually to the desired length. Note: You can change the Mitre (in the Stroke Panel) to make the ends of the curve flat so they look like those in your example. 2023-05-03 08-55-22.mp4 Quote
lsilva.m Posted May 3, 2023 Author Posted May 3, 2023 36 minutes ago, GarryP said: if you use the Pie Tool yes. this was what I end up doing. Thanks for sharing video on how to do it Quote
Recommended Posts
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.