andyding 发表于 2020-12-11 18:07:18

选取点两侧最近的两个交点

各位大佬,在多义线上任意data:image/gif;base64,hH0cnnIAAQA5AgAAaqfkCBfsKdulR4sK/v8SAW0jhvyTnHUfK3SSVtwLdwTeCTq546LWAnDGaJ9OawmANcWRY15VlIM8kC1lJr3lzTJ/kFlQ4kCzXLLlruGmnX2tiN6ngUAcOKmvXI9mNyXVpMea7YTdaE+FZvBmxcmfpiG3RPbzsryuqU09wTQeeBZLyqLdov1gN2fubX0EPzL7KR+RriovxLWKTgCjvUvnAGuHNWlPudLT3jBoF3uA4He+k3LtWKB4rm5IRFn9XJGUQ7/rdg/PTHRRuJqzTKgvcmuCodJqqMkY1OLzhhDB4ir3pLdSnCm/k5Q3V9gHTFIDP2CEHnQOVoozMQLc6CN1PopBhgM5iibN2Ol5bw01RqxfmB0RE4sHA2xLZWDvFgJMsELBPfyhASD2BJM6n1TXIzlsor+ToeLMqL9samBWanBbrWUbE1rqybEXyXUlowitqE1GJNcYQDqkA3wqiCjSHs+Y+p69J/qaSvniP9ZTdQm4m+UiUcJVlCHHA1hgAj6+Xy0KgN4JKq/jPAXSGnpgvyamYkGeYBI4Opg8eZr9FqgYF0EPojsLBoqS+YgqE4h15WFg5cL7hwZLqWyzp1W/2NhOty1jnuZpamagHjMSjXD90XIr1Navnhf9g/dVhylGjKc8liYvv0flhW4qe6187HNhPc5sRCKWUQzDKiToiqdI8j16M4SAD0SEY/Hx2hNmGh37xhVcnr2UEgV9Rp/YKRcc9PrDGyhRa/PjJ5VUb6ONBNh9gci/z9VKdLVY0w8y4rhLXxphfdOhZoimjkXo//gZJhGLyeSk5H+G6sGxx1DLxAGcTc1qrSU2XDS/gAIRy8JesX7ena53IP+wuHE1R0CxwznzkcR1EUZwgFiB4VVVbyueiDSczwF1IXSlmMh3LbkKiWs/myddK3GOCoOJiZuvS1FpusN4svft9gOb+PLQCE7CddWaY2ufkL1pJIVlge/CX6tkNjIaWFCdpzSm6KIztsDH594tnB8j9WcLPbHQabv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WpmAQOlaaCkXsqkYPqlYhqmSGoZlsEIaFoIhYCmkpAJUPoGUeqkQeqkUBoedCqld5qneJoGmNClXLodnCEJZ+Z34v+JBkQgHZgQpZYBpYBKpmP6qI4aqUZKGspQD8mxnRx6m8OVIp5hpp36qZ4aqqA6qqJaqqR6qqaaGarqGVaWf5OgD5JwpX06CamKqrZaq7h6q7oqqmgApZJgC2paCLYgCW2aBpzhqaaxqrm6rImaCV0qnnuHCc/wd1bmBl2KCXB6rLu6rcvKrd7KlkEqbMKJU2bBiUrmM6k2fsmJnoVQBQW6oi9Rca1WCvgWkJSEE+MKmH/GAJ6QasOHFQeKnuq5BfBqEu2YbFv2aD1Qdl3oQ4KWf1fGdSNKoupZm1K5ngqaEY12ZZggn3rUapnAhVahnM/ZnBnbEThgJRM7P1cYFPnOiphhoAmEpIHREKEjy4YnuxFhoAwrOz8HAHk5EZU1gQOS5zo9sxU5SxI760jkVBdE60gwALR00bICFAPLwCUQ1LPbUyWbsRnD0LVgG7ZiO7ZkW7Zme7ZnqwmZMAxqy7Zrmwlti7ZyO7dv27X0oLXuMwlhMAaSUB1jkB3kgSJiMLiEW7iGe7iIm7iKu7iMq7iMkAYoAriRO7mQ27iWe7iNUB2M8LeP67fukR0N22MqAZmiW7oTl5Nm5CMhyCaLVkekixhJa7oUYa+yW7u2e7sSuJu7uru7vNu7vvu7wBu84hQQADs=选取一点,如何求选取点两侧最近的两个交点。http://bbs.mjtd.com/forum.php?mod=image&aid=112206&size=300x300&key=4ea6234dfb73b4d6&nocache=yes&type=fixnone

wzg356 发表于 2020-12-11 19:02:14

问题不清
照图面
直接获得obj1 obj2(高程要一致,在同一个面)交点
(vlax-invoke obj1 'Intersectwith obj2 0)

andyding 发表于 2020-12-11 19:58:29

wzg356 发表于 2020-12-11 19:02
问题不清
照图面
直接获得obj1 obj2(高程要一致,在同一个面)交点


上传的图简化了,实际图还有其他相交的多义线。想要的效果是,点选A点,得到B,C点。

wzg356 发表于 2020-12-11 20:06:20

第一步求出对象1/ 2交点
第二步,交点加入对象1点表

第三部,求出a点在对象1的子段序号

第四部,求出相应对象1相应子段两端点

搜索本论坛黄明儒多线段大集结函数,或直接联系黄明儒

andyding 发表于 2020-12-11 20:25:11

wzg356 发表于 2020-12-11 20:06
第一步求出对象1/ 2交点
第二步,交点加入对象1点表



谢谢大佬!这个过程偏离我的本意,这样操作不需要写我想要的这个程序,有现成的。

qazxswk 发表于 2023-12-3 02:14:58

这个问题很好,我也想知道怎样得到B,C点坐标:lol

xyp1964 发表于 2023-12-3 11:12:09




qazxswk 发表于 2023-12-3 17:40:51

院长总是放伪码,我也是服了。:lol
页: [1]
查看完整版本: 选取点两侧最近的两个交点