Results 1 to 6 of 6

Thread: Average of curves

  1. #1
    Registered sdantonio's Avatar
    Join Date
    Nov 2005
    Location
    USA
    Posts
    915
    Downloads
    0
    Uploads
    0

    Average of curves

    This may be a dumb question, but I have not been able to find any references in the manuals. So I figure I would ask it here.

    Running Rhino3d 4 sr 5 on a pentium 4, 3 gig machine.

    definition: curve = the result of the optically scanned in object
    line = the result of replacing all the optically scanned in line fragments with one "best fit" line.

    lets say I draw a shape on a piece of paper and optically scan it to a graphic file (jpen, tiff, etc.). Convert it to a dxf (with a raster to vector converter like winTopo) and import the dxf onto Rhino. For simplicity lets say this curve is a straight line (the actual curves are much more complex, but this is fine to illustrate the question.

    Because the line on the original paper has a finite thickness the resulting curve imported into Rhino will be a set of very small curves and fragments of curves that describe the line I want. These curve fragments give the scanned in curve a finite thickness (think of having the line drawn by thousands of tiny hairs forming a mesh of the proper length and a thickness like that in the original pencil line).

    Is there any way to select the curve and then have Rhino calculate a single line, i.e. the best possible fit to the curve?

    WinTopo does offer curve thinning, and I do thin the original as much as possible without having it totally disappear when it generates the vectorization.

    Thanks,
    Steven
    If you cut it to small you can always nail another piece on the end, but if you cut it to big... then what the hell you gonna do?

    Steven


  2. #2
    Registered sdantonio's Avatar
    Join Date
    Nov 2005
    Location
    USA
    Posts
    915
    Downloads
    0
    Uploads
    0
    In the event that any one is interested, I checked with McNeel central command on this question. No such tool exists for anything more complicated that a straight line of circle.
    If you cut it to small you can always nail another piece on the end, but if you cut it to big... then what the hell you gonna do?

    Steven


  3. #3
    Registered
    Join Date
    Sep 2004
    Location
    Switzerland
    Posts
    264
    Downloads
    0
    Uploads
    0
    Because the line on the original paper has a finite thickness the resulting curve imported into Rhino will be a set of very small curves and fragments of curves that describe the line I want. These curve fragments give the scanned in curve a finite thickness (think of having the line drawn by thousands of tiny hairs forming a mesh of the proper length and a thickness like that in the original pencil line).
    I don't really understand this. A raster to vector software (a decent one in any case) should give you a vector - with no line thickness. That is why you are doing this in the first place. If the R-V software is giving you a bunch of non-connected teeny line segments that create a virtual "line width", then I suggest that either it is poor software or you haven't got it set right.

    R-V conversion will rarely give you really nice curves but it should give you something that IS a more or less continuous curve (if the original is reasonable). You may need to fill in gaps, clean up the curves, but that's what Rhino is good at doing with its commands like rebuild, etc...

    You might want to try something like Vector Magic. It costs, but it's one of the best out there. --ch


  4. #4
    Registered
    Join Date
    Nov 2004
    Location
    USA
    Posts
    448
    Downloads
    0
    Uploads
    0
    I may be misunderstanding your question, so please forgive me.

    In rhino, there are lines and polylines. Polylines are multiple curves joined into one line, that once exploded, will break down into individual segments.

    A polyline can be converted into a curve using the "rebuild" function. If your small lines are all touching (end to end) , you could join them, and then "rebuild" them to form a single curve.

    If this does not apply, feel free to put up a picture of what you have in rhino. I would love to take a look.

    Rob


  • #5
    Registered BurrMan's Avatar
    Join Date
    Dec 2008
    Location
    usa
    Posts
    2,637
    Downloads
    0
    Uploads
    0
    Here is his line that he scans.

    Average of curves-line.jpg

    Here is the scaned line, vectorized zoomed in on.

    Average of curves-line_zoom.jpg

    An outline of the line.

    The previous poster would be correct to get this function out of the conversion software.


  • #6
    Registered sdantonio's Avatar
    Join Date
    Nov 2005
    Location
    USA
    Posts
    915
    Downloads
    0
    Uploads
    0
    Hi Rob,

    Actually it's more like this (vectorization done in WinTopo and attached here). If I was just seeing what burrman posted I would be ecstatic I did however just pick up a copy of vector magic and it is fantastic. it appears to have solved the issue I was seeing.

    Thanks all.
    Steven
    .
    Attached Thumbnails Attached Thumbnails Average of curves-pic1.jpg   Average of curves-pic2.jpg  
    If you cut it to small you can always nail another piece on the end, but if you cut it to big... then what the hell you gonna do?

    Steven


  • Similar Threads

    1. How much does an average machinist make?
      By tomekeuro85 in forum CNCzone Club House
      Replies: 246
      Last Post: 03-30-2013, 01:11 AM
    2. Machining for the Average Joe
      By abomb55076 in forum DIY CNC Router Table Machines
      Replies: 0
      Last Post: 03-25-2009, 06:02 PM
    3. Is this an average X2 price or will it go down?
      By idtkid in forum Benchtop Machines
      Replies: 4
      Last Post: 02-13-2009, 12:12 AM
    4. Average Costs To Build
      By rooter in forum DIY CNC Router Table Machines
      Replies: 9
      Last Post: 11-16-2007, 02:26 AM
    5. 1/4-20 average speeds?
      By ShayArnett in forum DIY CNC Router Table Machines
      Replies: 5
      Last Post: 12-24-2004, 02:17 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.