![]() |
|
|||||||
| Developers' Corner General World Wind development. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: May 2007
Posts: 48
![]() |
Gents,
I'm finally getting somewhere with the polygon extrusion opacity. I managed to get it to work, but unfortunately I was going down the wrong path. So I re-did it and it's almost finished :-) In the mean time, there is an interesting mathmatical question that I would like to ask. I draw an extruded line in the air. Around the extrusion, I draw the four side. Both with linefeature. Then I draw another line that goes straight through the extruded box. Is there any way to calculate the exact position where the line goes through the box. In other words, can I somehow determine wether the line goes through the box. cheers, |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Aug 2005
Posts: 337
![]() |
If you don't have commit privs I can insert you opacity changes.
![]() |
|
|
|
|
|
#3 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
I didnt understand what your question is about - or more likely the geometrical setup you describe... What "four sides" ?
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Aug 2005
Posts: 337
![]() |
I think he means the orange box is a linefeature with extrude to ground on so its a plane. Maybe.
To caclulate the exact point I don't know. In D3D there is a Mesh.Intersect by really all it does is loop through all the triangles and does a triangle-ray intersect. From MSDN: http://forums.microsoft.com/MSDN/Sho...97599&SiteID=1 Here's a sample for using Mesh.Intersect for mouse picking. http://www.mdxinfo.com/tutorials/picking.php You'll want to use a bounding box/sphere if you want to do a lot of these. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|