take the set of boundary points

take the set of boundary points

xuantientutungXUK6E
Advocate Advocate
1,255 Views
7 Replies
Message 1 of 8

take the set of boundary points

xuantientutungXUK6E
Advocate
Advocate

Capture.PNG

 

Hi everyone

I have a task

From the existing circles, output two sets of lists of the center of the circle as lines go through as shown.

line drawn to show two different sets of circles,

there are no lines in the drawing. a circular set on the upper boundary a circular set is located on the lower boundary

Hope everybody help please

 
 

 

 

 

0 Likes
1,256 Views
7 Replies
Replies (7)
Message 2 of 8

marko_ribar
Advisor
Advisor

It could easily be something like this :

BTW. There is no way you can get result as you wish by computing all variants... You could try Convex Hull and then make concave parts between C Hull points...

Capture-new.png

 

Marko Ribar, d.i.a. (graduated engineer of architecture)
Message 3 of 8

john.uhden
Mentor
Mentor

This looks much like the challenge to find the shortest route traversing though a sea of whatevers (points, circles, blocks).

Are the upper circles on a different layer from the lower circles?

Does the user pick the start point?  Or might it always be the upper left or lower right?

What's the purpose/use?

John F. Uhden

Message 4 of 8

xuantientutungXUK6E
Advocate
Advocate

here are what i try to do. 

i want to make dimension automatic for those stair handrail like this.

form run cad.PNG

dimension pick point by center of cirlces.

the solution go in my mind is try to take list of the uper point and the lower point.

 

 

0 Likes
Message 5 of 8

Sea-Haven
Mentor
Mentor

Your approaching it wrong if you want to automate then you need to do it from the start and not draw it then dim, rather answer questions and dim as you go building the rails, bottom line is no doubt a few common shapes and program to draw those or at least each section of handrail.

 

This is about as simple as it gets as a start.

screenshot203.png

 

Last word this is a commercial type question ie you may have to pay for solutions but the time savings will be immense.

0 Likes
Message 6 of 8

john.uhden
Mentor
Mentor
That would be a very tricky thing to do... differentiating the upper group
from the lower group. I mean we can recognize them with our eyes, but
programming that recognition would be very difficult.

John F. Uhden

0 Likes
Message 7 of 8

Sea-Haven
Mentor
Mentor

Further to handrail automation image 1 and 3 are similar shapes just image1 does not have  a left hand extension this would be a question, then appropriate sizes entered. It is achievable but at a cost.

 

 

0 Likes
Message 8 of 8

martti.halminen
Collaborator
Collaborator

Trying to do this by collecting anonymous points is rather inefficient, you'd better utilize the structure you are creating. The technique depends on how many of these you intend to produce, and how variable they are. If you'll only do these three, do it manually, if you need to produce thousands, it is worth it to spend quite some time to automate things.

 

You could be creating these programmatically either directly calculating endpoints and drawing lines between, or throwing together blocks from a standard library. If calculating the points yourself, just store the interesting ones to convenient variables for later use.

Using blocks, one way would be using some named marker objects, for example block instances, inside the block to mark potentially interesting points. Then you can search for these to find the dimensioning points.

- If your space of potential structures is restricted, these could be individually named, like curved-top-lower-rail-cornerpoint, or low-end-termination-type 1234-mid-dimpoint or more generic, like vertical-post-lower-endpoint. Deciding which of three of these is the top end post is much easier than trying to guess from a dozen anonymous points which might be that one.

 

Then, depending on your logic in creating the stairs, you'll need to create the rules to draw the dimensions: if A and B found, draw a vertical dimension between those, located left of the stair. If more than 1 of C exist, draw a horizontal dimension underneath between the leftmost and rightmost. Etc.

 

-- 

0 Likes