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
    WW Technical Manager
    Join Date
    May 2007
    Location
    Seattle
    Posts
    1,242
    Go To My Homepage: Go to tag's homepage

    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.

Bookmarks

Posting Permissions

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