Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replicating a path
#20
(12-22-2021, 10:15 AM)rich2005 Wrote: However, that using the unified transform tool, very easy to move, rotate, scale all in one
It is picky about position and I could generate errors when the input and seed had a large separation.

Yes, indeed, I had not noticed the Unified Transform tool.

What errors did you get? If it was

"No affine transformation was found.
Perhaps you chose the wrong transformed path
or used in its construction some other tool than
Move, Scale, Rotate, Share, or Flip?
"

then it came from the plugin. The plugin works by examining the two paths and it tries to find out if one is obtained by an affine transformation from the other. Crucial is line 424:

    ACCEPT_ERROR = 1e-3

and that error limit 1e-3 = 0.001 could be too small, I don't know. It is in pixels.

But I tried now the Unified Transform tool and I think that perhaps the question was that you made in the tool some non-affine transformation (that is, Perspective). It happens if you crab the small diamond in some corner. When you use the tool, pay attention to the 3x3-matrix in the top right corner and there look at the bottom row. The bottom row should remain as

    0.0000    0.0000    1.0000

and if it changes then the transformation is no longer affine.

There is a very good reason why the plugin accepts only affine transformations: it was easy to make. And most importantly the repeated transformations are easy to do, one needs only to map the control points, without creating any approximate Bezier curves. But I think I know how to make rather easily a similar plugin that accepts Perspective transformations if we restrict it to straight-edge paths. And then, if we want to generalize that further, to accept curved paths, then we need some approximation algorithm and that means harder work. Who knows, perhaps later?
Reply


Messages In This Thread
Replicating a path - by Ottia Tuota - 12-05-2021, 09:32 AM
RE: Replicating a path - by rich2005 - 12-05-2021, 11:35 AM
RE: Replicating a path - by Ottia Tuota - 12-05-2021, 11:55 AM
RE: Replicating a path - by rich2005 - 12-05-2021, 12:26 PM
RE: Replicating a path - by Ottia Tuota - 12-06-2021, 08:08 AM
RE: Replicating a path - by Ottia Tuota - 12-11-2021, 12:06 PM
RE: Replicating a path - by Krikor - 12-11-2021, 03:22 PM
RE: Replicating a path - by denzjos - 12-12-2021, 07:17 PM
RE: Replicating a path - by Ottia Tuota - 12-12-2021, 08:02 PM
RE: Replicating a path - by nelo - 12-13-2021, 09:38 AM
RE: Replicating a path - by teapot - 12-21-2021, 03:44 AM
RE: Replicating a path - by Ottia Tuota - 12-21-2021, 01:24 PM
RE: Replicating a path - by denzjos - 12-21-2021, 05:33 PM
RE: Replicating a path - by Ottia Tuota - 12-21-2021, 07:37 PM
RE: Replicating a path - by teapot - 12-21-2021, 06:27 PM
RE: Replicating a path - by Krikor - 12-21-2021, 07:05 PM
RE: Replicating a path - by denzjos - 12-22-2021, 09:05 AM
RE: Replicating a path - by Ottia Tuota - 12-22-2021, 10:09 AM
RE: Replicating a path - by rich2005 - 12-22-2021, 10:15 AM
RE: Replicating a path - by Ottia Tuota - 12-22-2021, 11:44 AM
RE: Replicating a path - by rich2005 - 12-22-2021, 02:14 PM
RE: Replicating a path - by Ottia Tuota - 12-22-2021, 04:40 PM
RE: Replicating a path - by denzjos - 12-23-2021, 09:54 AM
RE: Replicating a path - by Ottia Tuota - 12-23-2021, 12:41 PM
RE: Replicating a path - by Ottia Tuota - 01-28-2022, 04:49 PM
RE: Replicating a path - by Ottia Tuota - 01-29-2022, 07:56 AM
RE: Replicating a path - by rich2005 - 01-29-2022, 04:07 PM
RE: Replicating a path - by Ottia Tuota - 01-29-2022, 04:32 PM
RE: Replicating a path - by rich2005 - 01-29-2022, 04:38 PM
RE: Replicating a path - by teapot - 01-30-2022, 03:18 AM
RE: Replicating a path - by Ottia Tuota - 01-30-2022, 07:02 AM
RE: Replicating a path - by Ottia Tuota - 01-30-2022, 08:57 AM
RE: Replicating a path - by denzjos - 01-30-2022, 04:27 PM
RE: Replicating a path - by Ottia Tuota - 01-30-2022, 04:43 PM
RE: Replicating a path - by denzjos - 01-30-2022, 05:34 PM
RE: Replicating a path - by Ottia Tuota - 01-30-2022, 06:18 PM
RE: Replicating a path - by teapot - 02-01-2022, 03:45 AM
RE: Replicating a path - by Ottia Tuota - 02-01-2022, 06:42 AM
RE: Replicating a path - by Ottia Tuota - 02-02-2022, 12:02 PM
RE: Replicating a path - by teapot - 02-03-2022, 04:18 AM
RE: Replicating a path - by Ottia Tuota - 02-03-2022, 04:52 AM
RE: Replicating a path - by teapot - 04-28-2022, 12:20 AM
RE: Replicating a path - by Ottia Tuota - 04-28-2022, 05:30 AM
RE: Replicating a path - by Ottia Tuota - 04-28-2022, 11:15 AM
RE: Replicating a path - by rich2005 - 04-28-2022, 12:18 PM
RE: Replicating a path - by Ottia Tuota - 04-28-2022, 01:58 PM
RE: Replicating a path - by Krikor - 04-28-2022, 03:49 PM
RE: Replicating a path - by rich2005 - 04-28-2022, 03:16 PM
RE: Replicating a path - by teapot - 04-28-2022, 03:58 PM
RE: Replicating a path - by Ottia Tuota - 04-28-2022, 04:17 PM
RE: Replicating a path - by Krikor - 04-28-2022, 04:46 PM
RE: Replicating a path - by teapot - 04-29-2022, 01:36 AM
RE: Replicating a path - by Ottia Tuota - 04-29-2022, 04:28 AM
RE: Replicating a path - by Krikor - 04-29-2022, 01:22 PM
RE: Replicating a path - by teapot - 04-30-2022, 03:05 AM
RE: Replicating a path - by rich2005 - 08-05-2022, 11:00 AM
RE: Replicating a path - by teapot - 08-07-2022, 01:40 AM
RE: Replicating a path - by Zero01 - 04-30-2023, 04:49 PM
RE: Replicating a path - by Krikor - 04-30-2023, 09:20 PM
RE: Replicating a path - by Zero01 - 05-02-2023, 06:32 PM

Forum Jump: