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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:18:03+00:00 2026-05-31T20:18:03+00:00

Help needed.. I have a organization layout which have rectangular shapes not in an

  • 0

Help needed..

I have a organization layout which have rectangular shapes not in an ordered grid. If it was a grid, I would have used A- star code. So, How to connect two nodes (i.e. two rectangles) without interfering in between nodes(rectangles).

I just want the algorithm to find coordinates that will draw the path so that I can use that in generating SVG file.

  • 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-31T20:18:04+00:00Added an answer on May 31, 2026 at 8:18 pm

    Algorithm which I followed-

    1. Store coordinates of edges of all Rectangles namely edge left,
      right, top, bottom as four datasets.
    2. Follow the path from a point on RectangleA to a point on RectangleB.
    3. Find the first edge that intersect with the path( Skew edges that are impossible to intersect the path are found based on calculations using coordinates and they are eliminated while finding intersecting edges).
    4. After finding the first intersection, path from PointA to PointB is changed to PointA to Point of intersection and the path generated along the edge that intersect and from there to Point B.
    5. Points 3 n 4 are repeated till path to PointB is complete without intersecting any edge.

    I implemented this algorithm even though this is not giving an exact shortest path. This gives great output. I would like to share the java code if anyone requests since I find it difficult to explain how I implemented by above points.

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

Sidebar

Related Questions

Some MATLAB help needed ! I have an set of 1s and 0s, I
Beginner help needed :) I am doign an example form a php book which
A little help needed, I have a Macro automatically creating pivot tables and charts,
New to js/html so help is needed. i have this simple html file: <html>
I am learning asp.net and needed to have a CheckBoxList which items will be
Help needed! I have 10 different .png files and i want to display them
Help needed. Im writing a function that returns result of ajax call but i
A little help needed. I'm receiving an xml file similar to this: <?xml version=1.0
First steps in FreeBSD: trying to run my installation script. Fast help needed: #
Help with regular expressions needed. I'm trying using regular expressions and preg_match_all find blocks

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.