World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 05-05-2012, 08:57 AM   #1
Mali Karl-Heinz
Member
 
Join Date: Jul 2011
Location: Styria, Austria, European Union
Posts: 32
Mali Karl-Heinz is on a distinguished road
Default Terrain intersection

Hello,

what is the best approach to perform a plane/terrain intersection to get the contour of the cutting plane?

Thanks a lot.
Mali Karl-Heinz is offline   Reply With Quote
Old 05-07-2012, 07:04 AM   #2
Mali Karl-Heinz
Member
 
Join Date: Jul 2011
Location: Styria, Austria, European Union
Posts: 32
Mali Karl-Heinz is on a distinguished road
Default

By the way is an example for the HighResolutionTerrain class with the method intersectTriangle(Vec4[] triangleCoordinates, Position[] trianglePositions, List<Position[]> intersectPositionsOut) available? I did some experiments with it, but the results (NullPointerException) are not satisfying.

Thank you for your help.
Mali Karl-Heinz is offline   Reply With Quote
Old 05-08-2012, 04:30 PM   #3
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,041
tag is on a distinguished road
Default

There are five examples that use HighResolutionTerrain; just examine those. Also look at the ContourLines example for another way of doing terrain intersections. See also WWMath.polytopeIntersect().
tag is offline   Reply With Quote
Old 05-09-2012, 11:10 AM   #4
Mali Karl-Heinz
Member
 
Join Date: Jul 2011
Location: Styria, Austria, European Union
Posts: 32
Mali Karl-Heinz is on a distinguished road
Default

Thank you for your hint. With ContourLine.java I was able to solve my problem.
Mali Karl-Heinz is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sector intersection CapDam Development Help 1 02-03-2012 12:56 PM
Frustum/Sphere intersection NathanKronenfeld Development Help 1 05-04-2010 04:44 AM
Small Improvement to Cylinder/Frustum intersection Shadre Development Help 2 05-28-2009 06:38 PM
GC distance and intermediate points Hactic Technical Support 0 01-07-2009 06:55 PM
Intersection testing slade Development Help 7 10-05-2007 09:49 PM


All times are GMT +1. The time now is 10:32 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.