xcavscout Posted December 7, 2022 Posted December 7, 2022 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 Quote
mhupp Posted December 7, 2022 Posted December 7, 2022 Google/search for "nesting" if you find anything let me know. But from what I remember the free stuff is either really slow, doesn't work so well with none square shapes, or doesn't have the features you want. vcarve does a really good job but its $$$ Quote
xcavscout Posted December 7, 2022 Author Posted December 7, 2022 Yeah, I was hoping I didn't have to go the nesting route, but it may be the only option for now. Thanks, X Quote
BIGAL Posted December 7, 2022 Posted December 7, 2022 (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 Edited December 7, 2022 by BIGAL Quote
xcavscout Posted December 8, 2022 Author Posted December 8, 2022 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: Best, X Quote
BIGAL Posted December 9, 2022 Posted December 9, 2022 (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 December 9, 2022 by BIGAL Quote
Recommended Posts
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.