Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[CONNECT C++] How to Determine Distance of a Point on an Element to it's Ends

$
0
0

Working with a DgnElementSetTool tool, I'd like to determine which end of a linear element (line, lineString) is nearest to the element's identifying datapoint. I'm using CurverVectorPtr to ensure the selected element is a line or lineString in _onPostLocate(). Once a datapoint is provided (_NeedAcceptPoint() is false) I use CurveVectorPtr built from the EditElementHandleR and obtain the end point locations. I also have the "locate point" (_GetAnchorPoint()) of the datapoint on the line, Is it possible from the "Curve" to project from the anchor point ALONG the curve to the ends? Maybe using "DSegmnent3d", but I can't seem to figure it out. Maybe something like mdlElmdscr_distacneAtPoint() ?

Bruce


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>