Results 1 to 4 of 4

Thread: Terrain intersection

  1. #1
    Member
    Join Date
    Jul 2011
    Location
    Styria, Austria, European Union
    Posts
    35

    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.

  2. #2
    Member
    Join Date
    Jul 2011
    Location
    Styria, Austria, European Union
    Posts
    35

    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.

  3. #3
    WWJ Technical Manager
    Join Date
    May 2007
    Location
    Seattle
    Posts
    1,102

    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().

  4. #4
    Member
    Join Date
    Jul 2011
    Location
    Styria, Austria, European Union
    Posts
    35

    Default

    Thank you for your hint. With ContourLine.java I was able to solve my problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •