K
K
korner-brazers2019-02-05 19:59:23
JavaScript
korner-brazers, 2019-02-05 19:59:23

How to find contact lines on forms?

Hello everyone, I don’t know how to explain exactly, I need to find the lines of contact with the forms.
54b6302ab07f3d437c5582d47bd21f91.jpg
There are two forms, you need to find the red lines as in the picture, something like draw a belt around the gears))
Find the option with the help of rays, start from some point and find the contact lines, like here https://www.redblobgames.com/ articles/visibility/ but I don't think this is the best option.
Any idea how this can be done?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaly Stolyarov, 2019-02-05
@korner-brazers

There is a similar method, but not by means of rays, but by constructing a convex geometry. Lines can be drawn from it. This method is called Convex hull
https://github.com/mikolalysenko/monotone-convex-h...

V
Vladimir, 2019-02-06
@djQuery

Look for the term "junction points" - it's from geometry, possibly from descriptive geometry. Then you will understand how to do it.

F
forspamonly2, 2019-02-06
@forspamonly2

connect each point of the first figure with all points of the second and choose from the resulting lines those that do not intersect any other lines

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question