How to get bounding box

How to get bounding box

J-Rocks
Collaborator Collaborator
4,084 Views
22 Replies
Message 1 of 23

How to get bounding box

J-Rocks
Collaborator
Collaborator

Hello,

How can I get bounding box of such rotated polyline in below posted snapshot to get the red polyline ?

Thanks.

BB.PNG

0 Likes
Accepted solutions (1)
4,085 Views
22 Replies
Replies (22)
Message 21 of 23

marko_ribar
Advisor
Advisor

Extract all points from polygonal LWPOLYLINE and use Convex Hull...

Link : http://www.lee-mac.com/convexhull.html 

It should give you exactly 4 points from which you can form bounding box you desire - rotated...

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 22 of 23

john.uhden
Mentor
Mentor

Very clever, @Kent1Cooper .

I guess that OFFSETGAPTYPE wouldn't matter if the outward and backward offset distances were the same, but I would test nonetheless.

John F. Uhden

0 Likes
Message 23 of 23

J-Rocks
Collaborator
Collaborator

Thank you so much, this works nicely and flawlessly.

 

And thanks for all other members who tried to help me.

0 Likes