Results 1 to 8 of 8

Thread: Convert 3D mesh to 3D polylines

  1. #1
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,286
    Downloads
    0
    Uploads
    0

    Convert 3D mesh to 3D polylines

    I wrote a little macro today that takes a polygon mesh created with AutoCAD's surface commands (rulesurf, revsurf...), and creates 3D polylines that run through the vertices of the mesh. These 3D polylines can be turned into toolpaths with my g-code macro. Attached is the macro and some sample meshes, all in the zip file.
    Attached Files Attached Files
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  2. #2
    Registered
    Join Date
    Sep 2005
    Location
    USA
    Posts
    12
    Downloads
    0
    Uploads
    0
    Would it be possible to make it so you could choose which vertices to connect, ie, on a sphere machine a waterline instead of a gradient?


  3. #3
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,286
    Downloads
    0
    Uploads
    0
    Probably, but I don't have time to do it right now. Right now it just reads the vertices in the order thay are stored in the database. To do waterline, I have to go around the perimeter and read each point. I'm assuming you'd want to start at the top and work down, right? Or would you want the option to go from the bottom up? Either way, it would be hard to figure out on meshes that aren't revolved.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  4. #4
    Gold Member FLUTE HEAD's Avatar
    Join Date
    Jul 2004
    Posts
    148
    Downloads
    0
    Uploads
    0
    I'm not sure if this has been covered but, is the mesh macro supposed to delete the latitude segments on a dish? When running the macro on a dish the latitude dissapears. I've been drawing 3dpoly's converted to splines in its place. I'm running cad 04


  • #5
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,286
    Downloads
    0
    Uploads
    0
    Can you post a sample file of your dish? I don't see why anything should be getting deleted.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #6
    Gold Member FLUTE HEAD's Avatar
    Join Date
    Jul 2004
    Posts
    148
    Downloads
    0
    Uploads
    0
    Here it is. Its in land desktop 2004, its still autocad though.
    Attached Files Attached Files


  • #7
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,286
    Downloads
    0
    Uploads
    0
    Yes, that's what it does. Not very useful for revolved meshes. Works much better on the other types.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #8
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,286
    Downloads
    0
    Uploads
    0
    Actually, it shouldn't delete anything. It will just draw 3D polylines over the longitudinal edges. I'll look again tonight.
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • 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.