+ Reply to Thread
Results 1 to 8 of 8

Thread: 3d Face Lisp

  1. #1
    Senior Member
    Using
    AutoCAD 2008
    Join Date
    Dec 2009
    Posts
    199

    Default 3d Face Lisp

    Registered forum members do not see this ad.

    Hey All,

    I'm trying to write a program that will allow me to draw a polyline around a complex shape and then take the coordinates from that polyline and use them to draw 3d-faces to fill the interior portion of that polyline, but I really don't know where to start. Any ideas? Not looking for someone to write the program, just a pointer on how this might be done.

    Thanks.

  2. #2
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,926

    Default

    That would an extremely difficult one.

    I usually try to brake the outline into 4 sided segments that then can be fed to EDGESURF. The human mind sees the overall picture a lot better than computer algorithms.

    Good Luck -David
    R12 (Dos) - A2K

  3. #3
    Senior Member
    Using
    AutoCAD 2008
    Join Date
    Dec 2009
    Posts
    199

    Default

    Yeah, kinda what I was thinking... I looked at the lisp you wrote here:

    http://www.cadtutor.net/forum/showthread.php?t=43411

    But I was hoping for something that didn't have a line going through the middle, but I'm having a hard time wrapping my head around how to get it to work.

  4. #4
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,926

    Default

    Well the line in the center can be taken care.

    Can you post a sample of the PLINE? I've done some pretty weird shapes. Especially 2D thingies! -David
    R12 (Dos) - A2K

  5. #5
    Senior Member
    Using
    AutoCAD 2008
    Join Date
    Dec 2009
    Posts
    199

    Default

    Here ya go... Most of what I will use this for is just the tops of office desks (I work for a large Office Furniture Manufacturer). So it'll all be 2-d polylines.
    Attached Files

  6. #6
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,926

    Default

    That is exactly what pol-fill.lsp can handle

    I do see a bug with pol-fill

    To fix it:

    _Convertpoly _Heavy Select your line

    (load "POL-FILL")

    Command: POL-FILL

    Select Y axis boundry

    Pick a point where both end lines are vertical

    Pick the LINE Border



    Do you have an editor that can change all of the faces edges to invisible ( change dxf group 70 to 15 )

    I'll have to dig into it and find why it isn't converting LWPOLYLINEs into HEAVY POLYLINEs automatically. It should be doing it.
    -David
    Attached Images
    R12 (Dos) - A2K

  7. #7
    Senior Member
    Using
    AutoCAD 2008
    Join Date
    Dec 2009
    Posts
    199

    Default

    Yeah, I can hide the edges, but my boss won't let me do that... we have over 3/4mil symbols and if we started doing this the extra entities would greatly increase the amount of disk space we're using up.

  8. #8
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,926

    Default

    Registered forum members do not see this ad.

    Each 3dface is 100 bytes in R12.

    Each side could be projected to to other but it would take good bit of effort. -David
    R12 (Dos) - A2K

Similar Threads

  1. 3D Face to Solid Lisp routine does not work on 2010, worked on 2009...?
    By rob150588 in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 8th Mar 2010, 12:59 pm
  2. 3d face
    By ica_cici in forum AutoCAD 3D Modelling & Rendering
    Replies: 3
    Last Post: 13th Aug 2009, 07:02 am
  3. Wireframe to 3d face lisp....
    By Nellie in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 3rd Nov 2008, 03:18 pm
  4. Logo on face
    By slide in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 16th Jun 2008, 03:40 am
  5. Difference between Extrude face, offset face and move face
    By anayal in forum AutoCAD Beginners' Area
    Replies: 5
    Last Post: 12th Oct 2007, 12:17 am

Bookmarks

Posting Permissions

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