Subject: Python implementation of the mathematical relationship between arcs of circles - Blender

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Subject: Python implementation of the mathematical relationship between arcs of circles - Blender

Godri83
Hello everyone,
I'm currently working on a Python script for Blender that needs to handle the mathematical relationship between two joined arcs. More specifically, I need to understand and implement the formula that governs their behavior when their joining point is moved.
What I know:

Circles are joined at their ends
There is a relationship R1/R2 = κ2/κ1 (where R = radius and κ = curvature).
A common tangent must exist at the junction point

What I'm looking for:

The exact mathematical formula to implement in Python
Suggestions on how best to implement this relationship in Blender via Python
Examples of similar code, if possible

My goal is to create a custom modifier in Blender that automatically maintains this geometric relationship.
Thanks in advance for your help!

Translated with DeepL.com (free version)
Reply | Threaded
Open this post in threaded view
|

Re: Subject: Python implementation of the mathematical relationship between arcs of circles - Blender

dxli
A common tangent exists, if the center points and the common point are collinear.

Clearly, at librecad, we may not understand how blender workers.

The tangent for arcs are just the perpendicular line of the line passing the point and the arc center.


Godri83 wrote
Hello everyone,
I'm currently working on a Python script for Blender that needs to handle the mathematical relationship between two joined arcs. More specifically, I need to understand and implement the formula that governs their behavior when their joining point is moved.
What I know:

Circles are joined at their ends
There is a relationship R1/R2 = κ2/κ1 (where R = radius and κ = curvature).
A common tangent must exist at the junction point

What I'm looking for:

The exact mathematical formula to implement in Python
Suggestions on how best to implement this relationship in Blender via Python
Examples of similar code, if possible

My goal is to create a custom modifier in Blender that automatically maintains this geometric relationship.
Thanks in advance for your help!

Translated with DeepL.com (free version)