X3122

DANNEELS PERSPECTOR FOR X42

< 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) { 11, 244 }: Central Line L(11, 244) { 86, 256 }: Central Line L(86, 256) { 190, 291 }: Central Line L(190, 291) { 351, 865 }: Central Line L(351, 865) { 6, 2054 }: Central Line L(6, 2054) { 1015, 1960 }: Central Line L(1015, 1960) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_3124 = DANNEELS PERSPECTOR FOR X(76) (0.7888, 0.1151) X_3125 = DANNEELS PERSPECTOR FOR X(81) (0.7794, 0.1074) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_244 = -LINE CONJUGATE OF X(100) (0.7857, 0.1166) X_86 = CEVAPOINT OF INCENTER AND CENTROID (0.5534, 0.2171) X_256 = 1st SHARYGIN POINT (0.5601, 0.2146) X_190 = YFF PARABOLIC POINT (0.0748, 0.3999) X_291 = 2nd SHARYGIN POINT (1.0249, 0.0364) X_351 = CENTER OF THE PARRY CIRCLE (1.3537, 1.1619) X_865 = INTERCEPT OF EULER LINE AND TRILINEAR POLAR OF X(512) (-0.1837, -1.6869) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_2054 = -ISOCONJUGATE OF X(1931) (0.9934, -0.0217) X_1015 = EXSIMILICENTER OF MOSES CIRCLE AND INCIRCLE (0.7982, 0.1348) X_1960 = BICENTRIC SUM OF PU(25) (1.2500, 1.2247) X_3122 = DANNEELS PERSPECTOR FOR X(42) (0.7940, 0.1247) A B C X3124 X3125 X11 X244 X86 X256 X190 X291 X351 X865 X6 X2054 X1015 X1960 X3122 (a, b, c) = (5, 6, 7) | AB = 1

X3122 (DANNEELS PERSPECTOR FOR X42) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3122 = DANNEELS PERSPECTOR FOR X_42."""

        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,
            feuerbach_point_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03122(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3122 = DANNEELS PERSPECTOR FOR X_42 on reference triangle ABC."""
            X_3122 = eval_trilinear_point(model, A, B, C, '(a*(b + c)*(b - c)**(2))', ID="X_3122", classes=["selected", "target"])
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center", "incident"])
            X_244 = eval_trilinear_point(model, A, B, C, '(b - c)**(2)', ID="X_244", classes=["center", "incident"])
            central_line(model, X_11, X_244, 11, 244, incident=True)
            X_86 = eval_trilinear_point(model, A, B, C, 'b*c/(b + c)', ID="X_86", classes=["center", "incident"])
            X_256 = eval_trilinear_point(model, A, B, C, '1/(a**(2) + b*c)', ID="X_256", classes=["center", "incident"])
            central_line(model, X_86, X_256, 86, 256, incident=True)
            X_190 = eval_trilinear_point(model, A, B, C, 'b*c/(b - c)', ID="X_190", classes=["center", "incident"])
            X_291 = eval_trilinear_point(model, A, B, C, '1/(a**(2) - b*c)', ID="X_291", classes=["center", "incident"])
            central_line(model, X_190, X_291, 190, 291, incident=True)
            return promote_point_to_top(model, X_3122)


        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_3122 on the given reference triangle."""
            model = create_model('X_3122 = DANNEELS PERSPECTOR FOR X_42')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03122(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-03122.json"))
            write_center_svg(
                model_acute,
                here / "x-03122.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )