X3652

KS(CARNOT TRIANGLE)

Quim Castellsaguer defines the Carnot triangle as the triangle formed by the circumcenters of the triangles BCH, CAH, ABH, where H denotes the orthocenter. The Carnot triangle is also known as the Johnson triangle.
< A B C >: Reference Triangle △ABC [ A B ]: Sideline AB (Base c = 1) [ B C ]: Sideline BC (Side a) [ C A ]: Sideline CA (Side b) { 30, 40 }: Central Line L(30, 40) { 5, 79 }: Central Line L(5, 79) { 21, 104 }: Central Line L(21, 104) { 500, 846 }: Central Line L(500, 846) { 12, 1727 }: Central Line L(12, 1727) { 140, 1768 }: Central Line L(140, 1768) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_30 = EULER INFINITY POINT (0.7469, 0.7481) X_40 = BEVAN POINT (0.4286, -0.0292) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_79 = ISOGONAL CONJUGATE OF X(35) (0.5976, 0.3019) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_104 = ANTIPODE OF X(100) (0.8571, -0.2624) X_500 = ORTHOCENTER OF THE INCENTRAL TRIANGLE (0.5577, 0.1973) X_846 = 4th SHARYGIN POINT (0.5437, 0.1969) X_12 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(11) (0.5641, 0.2407) X_1727 = MIMOSA TRANSFORM OF X(80) (1.2736, 0.8828) X_140 = MIDPOINT OF X(3) AND X(5) (0.5281, 0.1755) X_1768 = MIMOSA TRANSFORM OF X(521) (1.1429, -0.7582) X_3652 = KS(CARNOT TRIANGLE) (0.5146, 0.1959) A B C X30 X40 X5 X79 X21 X104 X500 X846 X12 X1727 X140 X1768 X3652 (a, b, c) = (5, 6, 7) | AB = 1

X3652 (KS(CARNOT TRIANGLE)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3652 = KS(CARNOT TRIANGLE)."""

        from __future__ import annotations

        from pathlib import Path

        import sympy.geometry as spg
        from geometor.model import Model

        from geometor.etc.ops import (
            central_line,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            nine_point_center_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03652(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3652 = KS(CARNOT TRIANGLE) on reference triangle ABC."""
            X_3652 = eval_trilinear_point(model, A, B, C, '(a**(6) + a**(4)*(b*c - 3*b**(2) - 3*c**(2)) + a**(3)*b*c*(b + c) + 3*a**(2)*(b**(4) + c**(4)) - a*b*c*(b + c)*(b - c)**(2) - (b**(2) - c**(2))**(2)*(b**(2) + b*c + c**(2)))', ID="X_3652", classes=["selected", "target"])
            X_30 = eval_trilinear_point(model, A, B, C, 'cos(A) - 2*cos(B)*cos(C)', ID="X_30", classes=["center", "incident"])
            X_40 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A) - 1', ID="X_40", classes=["center", "incident"])
            central_line(model, X_30, X_40, 30, 40, incident=True)
            X_5 = nine_point_center_of(model, A, B, C, ID="X_5", classes=["center", "incident"])
            X_79 = eval_trilinear_point(model, A, B, C, '1/(1 + 2*cos(A))', ID="X_79", classes=["center", "incident"])
            central_line(model, X_5, X_79, 5, 79, incident=True)
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_104 = eval_trilinear_point(model, A, B, C, '1/(-1 + cos(B) + cos(C))', ID="X_104", classes=["center", "incident"])
            central_line(model, X_21, X_104, 21, 104, incident=True)
            return promote_point_to_top(model, X_3652)


        def build_model(
            sides: tuple[float, float, float] = (5.0, 6.0, 7.0),
            show_guides: bool = False,
        ) -> Model:
            """Build a `geometor.model.Model` for X_3652 on the given reference triangle."""
            model = create_model('X_3652 = KS(CARNOT TRIANGLE)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03652(model, A, B, C)
            return model


        if __name__ == "__main__":
            here = Path(__file__).resolve().parent
            model_acute = build_model((5.0, 6.0, 7.0))
            model_acute.save(str(here / "x-03652.json"))
            write_center_svg(
                model_acute,
                here / "x-03652.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )