radiman Posted November 4, 2013 Posted November 4, 2013 Is there any way to find out the Maximum vertical distance between two polylines? Quote
MSasu Posted November 4, 2013 Posted November 4, 2013 Seems that you will need to provide more information on this. Are those polylines singe or multi segment? Were drew in plan or in 3D? For the second case, were on the same vertical plane, in parallel planes or in an arbitrary relative position? Quote
nestly Posted November 4, 2013 Posted November 4, 2013 Perhaps "vertical" means "Y" direction, in which case a bounding box routine would suffice. Quote
radiman Posted November 4, 2013 Author Posted November 4, 2013 2 multi segment polylines (2D), I wanna find the maximum Y distance between them? Quote
Tyke Posted November 4, 2013 Posted November 4, 2013 Are you wanting to do it graphically or let a macro/LISP routine calculate it for you? Quote
MSasu Posted November 4, 2013 Posted November 4, 2013 Perhaps "vertical" means "Y" direction, in which case a bounding box routine would suffice. I think that there may be 2 distinct cases: Hope OP would give us more information. Quote
Tyke Posted November 4, 2013 Posted November 4, 2013 I think that there may be 2 distinct cases: [ATTACH=CONFIG]44992[/ATTACH] Hope OP would give us more information. You are right Mircea, but it would be even more complicated when none of the vertices on one polyline were directly above or below vertices on the other polyline. Looks like the OP has gone home for the day Quote
MSasu Posted November 4, 2013 Posted November 4, 2013 Depends on the required precision - programmatically may parse the sketch from most left point to most right one using a vertical line and build a list with the distances between the two intersection points (that it, the aforementioned vertical with first, respectively second polyline); sort the list and get the biggest gap. By decreasing the defame interval will increase the precision of the result, but in the same time will increase the processing time. Quote
Tyke Posted November 4, 2013 Posted November 4, 2013 ... and the length and complexity of the polylines. I don't really see a problem to solve it programmatically (using your logic, for example), but if the OP isn't going to give us any more information it's all guess work on our part. Quote
BlackBox Posted November 4, 2013 Posted November 4, 2013 ... if the OP isn't going to give us any more information it's all guess work on our part. This. Quote
MSasu Posted November 5, 2013 Posted November 5, 2013 So, seems that this is another fire-and-forget type questions... Quote
Tyke Posted November 6, 2013 Posted November 6, 2013 So, seems that this is another fire-and-forget type questions... It certainly looks like that. Or he has rethought his problem and cannot define it accurately enough to answer our questions. Quote
radiman Posted November 7, 2013 Author Posted November 7, 2013 I was out of office, so no autocad! I'm interested to know the Y-distance what I showed in the picture . The polylines that I have are very long and curvy so their highest and lowest points are located in different parts, look here: Basically I want to know the max Y distance between two Plines not between their 2 vertices! Quote
lrm Posted November 14, 2013 Posted November 14, 2013 I believe the maximum distance will be at one of the vertices of the two polylines. Therefore you can start by setting Max to the distance from the 1st vertex of the top line vertically down to the intersection point of the bottom line. Then go to the top line's second vertex and determine the length from there to the bottom line. If it is larger than Max redefine Max to that value. Continue with the rest of the vertices in the top line then go vertex to vertex along the bottom polyline. Quote
BlackBox Posted November 14, 2013 Posted November 14, 2013 FWIW - This could make for an interesting .NET app, which employs transient graphics to indicate max and min distances between the two selected polylines, and hooks a PointFilter to cull the distance at the given cursor position dynamically. I cannot see this being useful, without tying back into C3D for my use though. Quote
MSasu Posted November 14, 2013 Posted November 14, 2013 So, Radiman, you were looking for the distance marked with yellow below? Please check that Lrm have a very good observation (as long there are no curved segments along those polylines); may want to check Lee Mac's intersection functions library. May want also to ask a Moderator to move your thread into Development sub-forum for extra support. 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.