Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8853681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:42:42+00:00 2026-06-14T13:42:42+00:00

This is a fairly remedial question. I have been looking at the documentation for

  • 0

This is a fairly remedial question. I have been looking at the documentation for the JTS DelaunayTriangulationBuilder and I am at a loss as to how to do what seems like it should be a simple thing. I wish to take a series of points, triangulate them, and then interpolate the Z value of a random point within that mesh. It’s non-obvious from a cursory reading how to do this. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:42:43+00:00Added an answer on June 14, 2026 at 1:42 pm

    After you’ve loaded up the triangulation object, call getSubdivision() on it to get the triangulation. It uses a quad-edge data structure, which you’ll need later. (It’s easier to understand if you know what a half-edge or winged-edge representation is.) The resulting QuadEdgeSubdivision has a method locate that, given a coordinate, returns one of the edges of the enclosing triangle (as a quad-edge). Get its origin vertex with orig() and its destination vertex with dest(). Get another edge with oNext() Its destination vertex is the third vertex (also dPrev().origin() is the same vertex). Now that you have the three vertices, represent your test point as a Vertex and call interpolateZValue.

    For example:

    public static double 
    interpolateZ(DelaunayTriangulationBuilder triangulation,
                 Coordinate coordinate) {
        QuadEdgeSubdivision quadEdgeSubdivision = triangulation.getSubdivision();
        QuadEdge edge = quadEdgeSubdivision.locate(coordinate);
        return new Vertex(coordinate.x, coordinate.y)
                .interpolateZValue(edge.orig(), edge.dest(), edge.oNext().dest());
    }
    

    You’re right, though. It’s not obvious how to do this from reading their API.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to count and group rows by specific values. This seems fairly simple,
Lets say I have class definition like this (fairly simple): class Person { public
I'm sure this is fairly simple, however I have a major mental block on
I have this fairly simple function to compute the mean of elements of a
I will make this fairly quick as it's a very simple question. How do
Been stuck with this fairly simple MySQL query for a day now! Can't believe
I have this fairly simple form: <form action=...> <div> <input type=text class=input-text value= name=text
I'm a beginner at SQL and have this fairly easy conditional problem: Every installation
This is fairly simple but I cant work it out. I'm building a wordpress
This is fairly simple in Windows, but a little tricky in Linux. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.