Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
.NET
»
Topic:
Object Distance from Another
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Object Distance from Another (Read 1574 times)
0 Members and 1 Guest are viewing this topic.
nobody
Swamp Rat
Posts: 861
.net stuff
Object Distance from Another
«
on:
August 25, 2017, 12:10:22 AM »
Is there a way to check a polylines distance from another object without iterating through every point?
Logged
It's Alive!
Retired
Needs a day job
Posts: 8740
AKA Daniel
WWW
Re: Object Distance from Another
«
Reply #1 on:
August 25, 2017, 03:12:42 AM »
maybe AcDbCurve::getClosestPointTo ?
Logged
https://github.com/CEXT-Dan/PyRx
https://pyarx.blogspot.com/
Bryco
Water Moccasin
Posts: 1883
Re: Object Distance from Another
«
Reply #2 on:
August 25, 2017, 11:32:44 AM »
Usually you use the bounding box first to check whether the object is within the desired range, then find out if the polyline is simpler than the object you are checking to define the next step
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
.NET
»
Topic:
Object Distance from Another