.NET

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

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

230 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!!!

ADN Support Specialist
Balaji_Ram
Posts: 666
Registered: ‎03-21-2011
Message 2 of 5 (171 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: 26
Registered: ‎01-16-2014
Message 3 of 5 (151 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 (141 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 (120 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!!!

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community