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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:46:01+00:00 2026-05-16T11:46:01+00:00

How to get the co-ordinates of the outline shape formed using smaller grid blocks.

  • 0

How to get the co-ordinates of the outline shape formed using smaller grid blocks.

For example, If I used 32×32 unit blocks for construct a shape (any shape).
Then how can I get overall co-ordinates of the shape, including the negative spaces.

For example:
One could arrange the blocks like this:
(each block is 32×32 and coordinates refer to bottom left corner of the block)

Block 1 - (0,0)
BLock 2 - (32,0)
Block 3 - 64,0)
Block 4 - (64,32)
Block 5 - (64, 64)
BLock 6 - (32, 64)
BLock 6 - (0 64)
Block 7 - (0, 32)

Now you can see this will create an empty space in the middle.

So what I would like to know is, how to get the coordinates of the above shape such that I get:

Main Block = (0,0), (96,0), (0,96)
Empty space = (32,32), (64,32), (64,64), (32,64)

Is there any mathematical solution to this?

Eventually I will be doing complex shapes.

thanks

******** edit ****
Hi,

How to deal with this condition?

<------------------^<----^
|                  ||    |
V------------------>|    |
<------^          /^|    |
|      |<------^ / ||    |
|      ||      |/  ||    |
V------>V------>V-->V---->

i would like the result to be like this

<-------------------<----^
|                        |
V      ^----------->     |
|      |          /      |
|      <-------^ /       |
|              |/        |
V------>------->--->----->
  • 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-16T11:46:02+00:00Added an answer on May 16, 2026 at 11:46 am

    Think of each square as an outline comprised of four vectors going in a counter-clockwise chain.

    <-----^
    |     |
    |     |
    V----->
    

    So for all the squares in your shape, take the union of their outline vectors. If two outline vectors in the union are identical but go in opposite directions, they cancel each other out and are removed from the union.

    For example, for two squares that are side by side the union is 8 vectors

    <-----^<-----^
    |     ||     |
    |     ||     |
    V----->V----->
    

    which reduces to 6 vectors because the two vertical vectors in the middle cancel:

    <-----<-----^
    |           |
    |           |
    V----->----->
    

    For the example you gave, the result of this will be (after cancellations):

    <-----<-----<-----^
    |                 |
    |                 |
    V     ^----->     ^
    |     |     |     |
    |     |     |     |
    V     <-----V     ^
    |                 |
    |                 |
    V----->----->----->
    

    You just have to connect up the vectors in the final reduced union to read off the outline paths. Note that the inner outline (“the hole”) runs clockwise.

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

Sidebar

Related Questions

I'm using the geolocation API to get the user's co-ordinates, which I want to
Also can you please answer this question? how do I get co-ordinates of selected
im new to google maps, i used html5 to get user's cordinates of latitude
How can I get the geographical location (Address) from the co-ordinates in Blackberry jde
I want to get mouse x and y co-ordinates through JavaScript. I have tried
In my IE extension I am trying to get the screen co-ordinates of an
I have started playing around with Geolocation, and I can get the co-ordinates etc.
How do i get gps co-ordinates of the location/address entered by user in android
When detecting eyes using HaarDetectObject() function, we get the results (detectedObjects) like this: [((110,
Possible Duplicate: Get co-ordinates touch screen in a background service I'm experimenting with an

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.