.NET

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

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

249 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: 735
Registered: ‎03-21-2011
Message 2 of 5 (190 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 (170 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 (160 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 (139 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
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!