X3975

X2664com(EXTOUCH 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) { 8, 210 }: Central Line L(8, 210) { 2, 330 }: Central Line L(2, 330) { 239, 350 }: Central Line L(239, 350) { 75, 966 }: Central Line L(75, 966) { 190, 2183 }: Central Line L(190, 2183) { 645, 2323 }: Central Line L(645, 2323) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_8 = NAGEL POINT (0.4694, 0.1333) X_210 = -CEVA CONJUGATE OF X(37) (0.4925, 0.1466) X_2 = CENTROID (0.5374, 0.2000) X_330 = ISOTOMIC CONJUGATE OF X(192) (0.4364, 0.1391) X_239 = -LINE CONJUGATE OF X(42) (4.2109, 3.7992) X_350 = -HIRST INVERSE OF X(75) (-3.5227, -3.1370) X_75 = ISOTOMIC CONJUGATE OF INCENTER (0.4988, 0.1682) X_966 = INTERSECTION OF LINES X(2)X(6) AND X(4)X(9) (0.5191, 0.1803) X_190 = YFF PARABOLIC POINT (0.0748, 0.3999) X_2183 = -ISOCONJUGATE OF X(104) (1.5000, 2.4495) X_645 = BARYCENTRIC MULTIPLIER FOR KIEPERT PARABOLA (-0.0375, 0.2992) X_2323 = -ISOCONJUGATE OF X(1411) (-2.1000, -2.9394) X_3975 = com(EXTOUCH TRIANGLE) (-0.4984, -0.4245) A B C X8 X210 X2 X330 X239 X350 X75 X966 X190 X2183 X645 X2323 X3975 (a, b, c) = (5, 6, 7) | AB = 1

X3975 (X2664com(EXTOUCH TRIANGLE)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3975 = X_2664com(EXTOUCH 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,
            centroid_of,
            construct_baseline_triangle,
            create_model,
            eval_barycentric_point,
            eval_trilinear_point,
            nagel_point_of,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03975(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3975 = X_2664com(EXTOUCH TRIANGLE) on reference triangle ABC."""
            X_3975 = eval_barycentric_point(model, A, B, C, '(b*c*(b + c - a)*(a**(2) - b*c))', ID="X_3975", classes=["selected", "target"])
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_210 = eval_trilinear_point(model, A, B, C, '(b + c)*(b + c - a)', ID="X_210", classes=["center", "incident"])
            central_line(model, X_8, X_210, 8, 210, incident=True)
            X_2 = centroid_of(model, A, B, C, ID="X_2", classes=["center", "incident"])
            X_330 = eval_trilinear_point(model, A, B, C, 'b*c/(a*b + a*c - b*c)', ID="X_330", classes=["center", "incident"])
            central_line(model, X_2, X_330, 2, 330, incident=True)
            X_239 = eval_trilinear_point(model, A, B, C, 'b*c*(a**(2) - b*c)', ID="X_239", classes=["center", "incident"])
            X_350 = eval_trilinear_point(model, A, B, C, '(a**(2) - b*c)*b**(2)*c**(2)', ID="X_350", classes=["center", "incident"])
            central_line(model, X_239, X_350, 239, 350, incident=True)
            return promote_point_to_top(model, X_3975)


        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_3975 on the given reference triangle."""
            model = create_model('X_3975 = X_2664com(EXTOUCH TRIANGLE)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03975(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-03975.json"))
            write_center_svg(
                model_acute,
                here / "x-03975.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )