.NET

Reply
Contributor
andy_pu
Posts: 16
Registered: ‎01-21-2014
Message 1 of 5 (245 Views)
Accepted Solution

is it possible to determine the points of intersection of the Ray and Solid

245 Views, 4 Replies
03-02-2014 11:58 PM

Hi!

I need to find closest solid to point, so I trace a Ray from this point by Vector. Can I find points of intersection of Ray and Solid?

Thanks!!!

Hi Andy,

 

Please refer to this blog post :

 

http://adndevblog.typepad.com/autocad/2013/02/how-to-intersect-a-line-with-a-solid.html

 

Regards,

Balaji

ADN Support Specialist
Balaji_Ram
Posts: 715
Registered: ‎03-21-2011
Message 2 of 5 (186 Views)

Re: is it possible to determine the points of intersection of the Ray and Solid

03-10-2014 05:28 AM in reply to: andy_pu

Hi Andy,

 

Please refer to this blog post :

 

http://adndevblog.typepad.com/autocad/2013/02/how-to-intersect-a-line-with-a-solid.html

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Active Contributor
bvyas89
Posts: 30
Registered: ‎01-16-2014
Message 3 of 5 (166 Views)

Re: is it possible to determine the points of intersection of the Ray and Solid

03-10-2014 09:49 PM in reply to: andy_pu

Hi , to get intersection point between to entities you have to use 'entity.IntesectWith' function. With this function, you can get intersecting point. if for an entity if you get intersection point , you can add that entity in your list or array. 

 

Please refer below link:

http://forums.autodesk.com/t5/NET/Find-intersection-point-of-two-lines/m-p/4769671#M38812

Contributor
andy_pu
Posts: 16
Registered: ‎01-21-2014
Message 4 of 5 (156 Views)

Re: is it possible to determine the points of intersection of the Ray and Solid

03-10-2014 11:02 PM in reply to: bvyas89
Thanks! But IntersectWith not implemented for Solid
Contributor
andy_pu
Posts: 16
Registered: ‎01-21-2014
Message 5 of 5 (135 Views)

Re: is it possible to determine the points of intersection of the Ray and Solid

03-11-2014 05:55 AM in reply to: Balaji_Ram

Thank you so much! This is exactly what I was looking!!! Many thanks!!!

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.