Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cropping and slicing a path
#5
(10-09-2020, 10:51 PM)Krikor Wrote: The plugin worked very well here. Fast and easy to use. Thx a lot!
Great!

(10-09-2020, 08:55 PM)Ottia Tuota Wrote: Imagine a path. Imagine its bounding box. Then imagine that we put there a large number of slicing lines, criss-crossing the bounding box. They slice the bounding box into a large number of small regions, and the path becomes sliced accordingly into small slices. The number of the slices grows fast with the number of the slicing lines. I don't know how fast it grows, but it could be quadratic(??). I seem to remember vaguely that I have seen a theorem about this years ago, but I don't remember the exact result.

I figured it out. No need for any old theorems. Consider a rectangular box. Cut it with n straight lines. The box becomes divided into small regions; denote their number by f(n). Then
    
     1+n <= f(n) <= 1+n(n+1)/2.

I can write and post the proof if somebody wants it. What f(n) exactly is, depends on how the lines are arranged. By choosing the arrangement suitably, either of the cases 1+n and 1+n(n+1)/2 can be realized. So, the worst case does indeed grow quadratically. I suppose this explains it.
Reply


Messages In This Thread
Cropping and slicing a path - by Ottia Tuota - 10-09-2020, 11:31 AM
RE: Cropping and slicing a path - by Ofnuts - 10-09-2020, 08:09 PM
RE: Cropping and slicing a path - by Ottia Tuota - 10-09-2020, 08:55 PM
RE: Cropping and slicing a path - by Krikor - 10-09-2020, 10:51 PM
RE: Cropping and slicing a path - by Ottia Tuota - 10-10-2020, 04:27 AM
RE: Cropping and slicing a path - by Ottia Tuota - 01-01-2021, 11:08 AM
RE: Cropping and slicing a path - by Ottia Tuota - 01-17-2021, 04:08 PM
RE: Cropping and slicing a path - by denzjos - 01-19-2021, 08:51 AM
RE: Cropping and slicing a path - by Krikor - 01-19-2021, 01:22 PM
RE: Cropping and slicing a path - by Ottia Tuota - 01-19-2021, 02:08 PM
RE: Cropping and slicing a path - by Krikor - 01-19-2021, 02:37 PM
RE: Cropping and slicing a path - by Ottia Tuota - 01-21-2021, 12:30 PM
RE: Cropping and slicing a path - by Krikor - 01-21-2021, 04:10 PM
RE: Cropping and slicing a path - by denzjos - 01-21-2021, 02:30 PM
RE: Cropping and slicing a path - by Ottia Tuota - 03-30-2021, 01:38 PM
RE: Cropping and slicing a path - by Ofnuts - 03-30-2021, 03:07 PM
RE: Cropping and slicing a path - by Ottia Tuota - 03-30-2021, 04:49 PM
RE: Cropping and slicing a path - by Krikor - 03-30-2021, 06:45 PM
RE: Cropping and slicing a path - by Ottia Tuota - 03-30-2021, 08:32 PM
RE: Cropping and slicing a path - by Krikor - 03-30-2021, 09:34 PM
RE: Cropping and slicing a path - by Ottia Tuota - 03-31-2021, 07:03 AM
RE: Cropping and slicing a path - by Ottia Tuota - 03-31-2021, 12:28 PM
RE: Cropping and slicing a path - by denzjos - 03-31-2021, 03:27 PM
RE: Cropping and slicing a path - by Ofnuts - 03-31-2021, 04:00 PM
RE: Cropping and slicing a path - by denzjos - 03-31-2021, 04:16 PM
RE: Cropping and slicing a path - by Krikor - 03-31-2021, 05:41 PM
RE: Cropping and slicing a path - by Krikor - 04-01-2021, 12:33 AM
RE: Cropping and slicing a path - by Ottia Tuota - 04-01-2021, 06:23 AM
RE: Cropping and slicing a path - by Krikor - 04-01-2021, 08:47 AM
RE: Cropping and slicing a path - by Ofnuts - 04-01-2021, 11:54 AM

Forum Jump: