+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Senior Member teknomatika's Avatar
    Using
    AutoCAD 2009
    Join Date
    Sep 2010
    Location
    Portugal
    Posts
    247

    Default Draw a maximum number of circles inside in polygon

    Registered forum members do not see this ad.

    Hello! I've been here and here, and both are good jobs. But, as a challenge, I wanted a routine that would allow to draw inside a polygon within the largest possible number of circles with a radius value that would be provided as a variable.

    Example:

  2. #2
    Quantum Mechanic BIGAL's Avatar
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    10,709

    Default

    Manual way Array your circles so bigger than perimeter cover whole shap move a bit for best fit, the erase use "F" option do a few times and you will have what you have posted. There is another post in the last week or so doing something similar will try to find I am trying to remember a 20 year old solution.
    A man who never made mistakes never made anything

  3. #3
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    4,146

    Default

    That almost sounds like the "Garden Path" lisp that was used as an early lisp tutorial.

    You could get more circles in if they were arranged in a different pattern.

  4. #4
    Super Member marko_ribar's Avatar
    Computer Details
    marko_ribar's Computer Details
    Operating System:
    Windows 7 Ultimate X64
    Computer:
    Intel quad core CPU 4x2.66GHz, 8GB RAM
    Motherboard:
    INTEL compatibile
    CPU:
    quad core 4x2.66GHz
    RAM:
    8GB
    Graphics:
    NVIDIA GeForce 6600 GT
    Primary Storage:
    250 GB
    Secondary Storage:
    500 GB
    Monitor:
    Samsung 17''
    Discipline
    Architectural
    marko_ribar's Discipline Details
    Occupation
    Architecture, project designer, project visualisation
    Discipline
    Architectural
    Details
    space design - modeling and animations
    Using
    AutoCAD 2014
    Join Date
    Feb 2010
    Location
    Belgrade, Serbia, Europe
    Posts
    1,290

    Default

    Yes, eldon is in right... If circles are arranged in triangular net, waste empty spaces between circles would be minimal...

    See attached *.dwg

    Interesting topic to read can be found here :
    http://www.theswamp.org/index.php?topic=46911.0

    M.R.
    Attached Files

    Marko Ribar, d.i.a. (graduated engineer of architecture)
    M.R. on YouTube

  5. #5
    Senior Member teknomatika's Avatar
    Using
    AutoCAD 2009
    Join Date
    Sep 2010
    Location
    Portugal
    Posts
    247

    Default

    Registered forum members do not see this ad.

    marko_ribar You are right. In fact this (2D) is the optimal arrangement. That is precisely what I intend.

Similar Threads

  1. Lisp: how to select all circles inside a polygon
    By xadow in forum AutoLISP, Visual LISP & DCL
    Replies: 13
    Last Post: 15th May 2014, 10:12 pm
  2. Maximum number of layers
    By jonmadjon in forum AutoCAD General
    Replies: 31
    Last Post: 22nd Nov 2011, 07:57 pm
  3. Maximum Point number
    By MARKY in forum AutoCAD General
    Replies: 0
    Last Post: 21st Apr 2010, 07:39 pm
  4. Maximum number of layouts
    By Autodesk in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 12th Oct 2006, 09:10 pm
  5. Is there a maximum number of veiwports?
    By jvmcc in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 1st Jun 2005, 09:02 pm

Tags for this Thread

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