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 250997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:33:28+00:00 2026-05-11T21:33:28+00:00

I am writing a program that requires a implementation of Medial Axis extraction, of

  • 0

I am writing a program that requires a implementation of Medial Axis extraction, of which Delaunay triangulation is a step. External medial axis is unwanted so the corresponding external triangles are intended to be removed. Luckily I came upon a page with a lot of diagrams, also a hint of a method to determine internal and external Delaunay triangles (“based on the broken line perimeter”), but it’s just a hint, without detailed explanation. Anybody know the algorithm?

EDIT: I forgot mentioning the initial points are sampled from the boundary of a closed polygon, my intention is to determine whether each Delaunay triangle is inside the polygon.

  • 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-05-11T21:33:28+00:00Added an answer on May 11, 2026 at 9:33 pm

    This solution assumes that you have a data structure that represents the Delaunay triangulation using a “virtual infinite Delaunay vertex” the way CGAL does it (see details here).

    The idea is to find the boundary Delaunay edges: the edges connecting two consecutive sample points; and then “flood” through the Delaunay triangulation to classify the Delaunay faces. One knows that the infinite vertex is exterior so one can classify its neighbors (and neighbors’ neighbors, etc.) as exterior as long as one does not cross boundary edges. If one reaches a boundary edge one can simply mark the neighbor triangle as interior and continue similarly.

    Input: set of points densely sampling of the boundary of a closed shape, which can even contain holes
    Output: Voronoi diagram in the interior of the shape (approximation of the medial axis of the shape)

    1. Compute the Delaunay triangulation of your points
    2. Mark the Delaunay edges which connect two consecutive sample points. (See page 4-5 of this paper how you can do this with a local test on every Delaunay edge)
    3. Classify all infinite Delaunay faces as OUTSIDE and push them to a queue Q.
    4. While Q is not empty
      1. Delaunay face f = Pop from Q
      2. For every unclassified neighbor triangle t of f
        • if the Delaunay edge shared by t and f is marked,
          classify t as the opposite of f
        • else classify t the same like f
        • push t to Q
    5. For every Delaunay edge e
      • if the two neighbor Delaunay triangles d1, d2 are both classified as INTERIOR, output the segment connecting the circumcenter of d1 and d2.

    For an input like this
    sample points
    the following medial axis approximation can be computed:
    medial axis

    You can check out how this medial axis approximation behaves in practice using the free windows binary of Mesecina. Source code here.

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

Sidebar

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer From MSDN (http://msdn.microsoft.com/en-us/library/ms228606.aspx) A constant-expression is an expression that can… May 12, 2026 at 1:00 am
  • Editorial Team
    Editorial Team added an answer Add this Action to the FlashUpload Controller: public class FlashUploadController… May 12, 2026 at 1:00 am
  • Editorial Team
    Editorial Team added an answer You could have a look at strtok. First read the… May 12, 2026 at 1:00 am

Related Questions

I am writing a quote-matching program in which two Abstract Factory Patterns are required,
Is it possible to have a C static library API, which uses C++ internally
I am writing a program in Python, and I realized that a problem I
Is there any way of determining the current working directory of an already running

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.