X3597

2nd ODEHNAL POINT

Let MA, MB, MC be the centers of the circles A″, B″, C″ used to construct X3596, respectively. Then the lines A-to-MA, B-to-MB, C-to-MC concur in X3597. For more, see the reference and sketch at X3596.
< 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) { 2, 970 }: Central Line L(2, 970) { 226, 986 }: Central Line L(226, 986) { 4, 2092 }: Central Line L(4, 2092) { 429, 2052 }: Central Line L(429, 2052) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_2 = CENTROID (0.5374, 0.2000) X_970 = CENTER OF THE APOLLONIUS CIRCLE (0.2643, -0.2872) X_226 = -CEVA CONJUGATE OF X(65) (0.5778, 0.2588) X_986 = INTERSECTION OF LINES X(1)X(3) AND X(8)X(38) (0.5588, 0.2101) X_4 = ORTHOCENTER (0.6122, 0.3958) X_2092 = DANNEELS-APOLLONIUS PERSPECTOR (0.5833, 0.2396) X_429 = EULER X(58)-5th-SUBSTITUTION POINT (0.6024, 0.3700) X_2052 = ISOGONAL CONJUGATE OF X(577) (0.6161, 0.4941) X_3597 = 2nd ODEHNAL POINT (0.5950, 0.3026) A B C X2 X970 X226 X986 X4 X2092 X429 X2052 X3597 (a, b, c) = (5, 6, 7) | AB = 1

X3597 (2nd ODEHNAL POINT) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3597 = 2nd ODEHNAL POINT."""

        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,
            centroid_of,
            construct_baseline_triangle,
            create_model,
            eval_trilinear_point,
            orthocenter_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03597(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3597 = 2nd ODEHNAL POINT on reference triangle ABC."""
            X_3597 = eval_trilinear_point(model, A, B, C, '(b*c/(a**(5) + a**(4)*(b + c) - a**(3)*(b - c)**(2) - a**(2)*(b + c)*(b**(2) + c**(2)) - 2*a*b*c*(b**(2) + b*c + c**(2)) - 2*b**(2)*c**(2)*(b + c)))', ID="X_3597", classes=["selected", "target"])
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_970 = eval_trilinear_point(model, A, B, C, 'a*(a**(3)*(b + c)**(2) + a*(a*b + a*c - 2*b*c)*(b**(2) + c**(2)) - b*c*(b**(3) + c**(3)) - a*(b**(4) + c**(4)) - (b**(5) + c**(5)))', ID="X_970", classes=["center", "incident"])
            central_line(model, X_2, X_970, 2, 970, incident=True)
            X_226 = eval_trilinear_point(model, A, B, C, '(csc(A))*(cos(B) + cos(C))', ID="X_226", classes=["center", "incident"])
            X_986 = eval_trilinear_point(model, A, B, C, '(a*(b**(2) + b*c + c**(2)) + b**(3) + c**(3))', ID="X_986", classes=["center", "incident"])
            central_line(model, X_226, X_986, 226, 986, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_2092 = eval_trilinear_point(model, A, B, C, '(a**(2)*(b + c)**(2) + a*(b + c)*(b**(2) + c**(2)))', ID="X_2092", classes=["center", "incident"])
            central_line(model, X_4, X_2092, 4, 2092, incident=True)
            return promote_point_to_top(model, X_3597)


        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_3597 on the given reference triangle."""
            model = create_model('X_3597 = 2nd ODEHNAL POINT')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03597(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-03597.json"))
            write_center_svg(
                model_acute,
                here / "x-03597.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )