Jump to content

Recommended Posts

Posted

All,

 

I am in no way a lisp expert and I have been floating around looking for an answer to this for many weeks. I want to be able to select multiple objects to scatter and have them scattered inside a selected closed polyline, filling the closed poly line while following the spacing rule. I would like to be able to set a minimum and maximum space between the objects and a minimum space from the edge of the closed polyline that is being filled. Each object would be assigned random quantities, rotation etc. A hatch does not seem to work as it cuts off the shapes at the border and is not random enough. Ant help would be appreciated on this.

 

X

 

 

Expl.jpg

Posted

Yeah, I was hoping I didn't have to go the nesting route, but it may be the only option for now.

 

Thanks,


X

Posted (edited)

I have done some place random stuff the issue I see is that as its "RANDOM" it can overlap which is what you don't want. The Concrete hatch pattern is very close but it has triangles as shapes. 

 

Is it like a hatch and edges cut shapes  or must be totally within ?

 

Have you looked at a hatchmaker program ? 

 

Post a sample dwg.

 

This is concrete 3 in Bricscad

image.png.f35908613b0d92508ce945b260ca824f.png

Edited by BIGAL
Posted

Yes I need to be able to specify a minimum difference from the edge as to maintain full objects. Also the downside of nesting is that you really can not randomize the nest as it will group them to get the best fit. I have tried some random hatch programs but not finding anything that works. Here is a sample:

 

image.png.9a2830abede99fbdafc6fc0921635b2f.png

 

Best,

X

Posted (edited)

How did you make sample ? Was thinking make as a dwg then can array copy oversize of shape and trim touching and those outside. 

 

Problem left edge = right edge, same top & bottom. 

 

Coding point of view. Add a shape say from 4 choices, also random angle, then check an offset distance, does it touch something, if so ignore, erase and continue, add another random shape. Just thinking set limit as it may just never solve. 

 

Maybe add more shapes to gravel.pat.

Edited by BIGAL

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...