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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:40:43+00:00 2026-05-25T06:40:43+00:00

In the image below you see in (1) a triangle and a circle. Given

  • 0

In the image below you see in (1) a triangle and a circle. Given a dedicated point X in that triangle I want clip away everything that is not visible from this point. There’s no problem with removing just the circle with a simple polygon difference algorithm like in (2). But what kind of algorithm can I use to get a polygon like in (3) ?

The Polygon is always simple.

Edit: The circle is just an example. Every simple polygon should be possible.

Image #1

You can image my needs by taking a look at the image of the game “Commandos – Behind enemy lines”:

Image #2

  • 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-25T06:40:44+00:00Added an answer on May 25, 2026 at 6:40 am

    This is the basic idea.

    I’m assuming a problem a few more general, but it will be a lot easier to adapt it to your problem: given a plan containing all the shapes, a point and a set of geometrical shapes, we want to remove from the plan the area not visible from that point.

    What we want to do is to get, for each shape, it’s starting_polar and ending_polar points, that are the 2 points with the minimum and maximum polar angle belonging to the shape.

    Now we’ll remove from the plan the shape and we’ll remove the quadrilateral formed by the points: starting_polar, ending_polar, and the intersections between the 2 straight lines (x, starting_polar) and (x, ending_polar) and the boundaries of the plan.

    In your case the plan will simply be the triangle.

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

Sidebar

Related Questions

I have an interface that has large numbers of controls, see image below. Interface
As you can see on the image below my aspx files does not have
I want to convert image into HTML sections ( see image below marked as
I have an R code block that generates an image (see below). Executing the
I receive this message (see image below) when I try to edit in debugging.
How to create such (see image below) effect using pure HTML JS and CSS?
See this Image below http://i46.tinypic.com/2pt6jkn.jpg This is report in SSRS as shown when it
I have two divs inside a parent div (see image below). When the black
In My application there is tabBar and the Edittext. See below image: Normal Screen:
(iOS) I have a view that contains multiple textviews under static headings (see image

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.