Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Welcome to Bentley Communities
Bentley's Communities
Bentley 中国优先社区
More
Cancel
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
【MSCE C# 】元素上最近点
Sign in
Bentley 中国优先社区 requires membership for participation - click to join
State
Verified Answer
+1
person also asked this
people also asked this
Replies
10 replies
Subscribers
71 subscribers
Views
1360 views
Users
0 members are here
【MSCE C# 】元素上最近点
Offline
Duo Duo
Mon, May 11 2020 3:25 AM
老师好,我想问下,元素B外一个点为A,求该点A到元素B上最近距离的点,我想问下用到的函数是什么呢?
Top Replies
Offline
Xiaoqi Zhang
Mon, May 11 2020 3:34 AM
+1
verified
CurveVector类里面有个ClosestPointBounded方法。
Offline
Yongan.Fu
Mon, May 11 2020 5:06 AM
in reply to
Duo Duo
+1
verified
请仔细体会这个Bounded英文的含义,它的意思是有边界的。就是说,如果你给的空间点超出了要投射的直线的范围,则会返回该直线的端点。而不会返回直线的延长线上的位置。
Offline
Yongan.Fu
Mon, May 11 2020 5:17 AM
in reply to
Duo Duo
+1
verified
该函数有重载形式如下,设置最后两个参数extend0和extend1都为true就能允许这个线性元素(线、线串或弧)往两端延伸了。