587,529 active members*
3,269 visitors online*
Register for free
Login
IndustryArena Forum > CAD Software > Autodesk > Convert 3D mesh to 3D polylines
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2003
    Posts
    35538

    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

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  2. #2
    Join Date
    Sep 2005
    Posts
    12
    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
    Join Date
    Mar 2003
    Posts
    35538
    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

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  4. #4
    Join Date
    Jul 2004
    Posts
    148
    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. #5
    Join Date
    Mar 2003
    Posts
    35538
    Can you post a sample file of your dish? I don't see why anything should be getting deleted.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  6. #6
    Join Date
    Jul 2004
    Posts
    148
    Here it is. Its in land desktop 2004, its still autocad though.
    Attached Files Attached Files

  7. #7
    Join Date
    Mar 2003
    Posts
    35538
    Yes, that's what it does. Not very useful for revolved meshes. Works much better on the other types.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  8. #8
    Join Date
    Mar 2003
    Posts
    35538
    Actually, it shouldn't delete anything. It will just draw 3D polylines over the longitudinal edges. I'll look again tonight.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •