X3703

X31com(EXTOUCH TRIANGLE)

X3703 = excentral-to-ABC barycentric image of X31
< 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, 21 }: Central Line L(8, 21) { 38, 141 }: Central Line L(38, 141) { 11, 312 }: Central Line L(11, 312) { 209, 306 }: Central Line L(209, 306) { 346, 497 }: Central Line L(346, 497) { 5, 1089 }: Central Line L(5, 1089) 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_21 = SCHIFFLER POINT (0.5287, 0.1771) X_38 = CROSSPOINT OF X(1) AND X(75) (0.5443, 0.1976) X_141 = COMPLEMENT OF SYMMEDIAN POINT (0.5061, 0.1663) X_11 = FEUERBACH POINT (0.7347, 0.0667) X_312 = ISOTOMIC CONJUGATE OF X(57) (0.4256, 0.1081) X_209 = -CEVA CONJUGATE OF X(37) (0.7303, 0.4592) X_306 = ISOTOMIC CONJUGATE OF X(27) (0.3924, 0.0579) X_346 = ISOTOMIC CONJUGATE OF X(279) (0.3948, 0.0827) X_497 = CROSSPOINT OF GERGONNE POINT AND NAGEL POINT (0.5593, 0.1851) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_1089 = TRILINEAR SQUARE OF X(10) (0.4606, 0.1381) X_3703 = com(EXTOUCH TRIANGLE) (0.4338, 0.1070) A B C X8 X21 X38 X141 X11 X312 X209 X306 X346 X497 X5 X1089 X3703 (a, b, c) = (5, 6, 7) | AB = 1

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

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


        def construct_x_03703(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3703 = X_31com(EXTOUCH TRIANGLE) on reference triangle ABC."""
            X_3703 = eval_barycentric_point(model, A, B, C, '((b + c - a)*(b**(2) + c**(2)))', ID="X_3703", classes=["selected", "target"])
            X_8 = nagel_point_of(model, A, B, C, ID="X_8", classes=["center", "incident"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            central_line(model, X_8, X_21, 8, 21, incident=True)
            X_38 = eval_trilinear_point(model, A, B, C, 'b**(2) + c**(2)', ID="X_38", classes=["center", "incident"])
            X_141 = eval_trilinear_point(model, A, B, C, 'b*c*(b**(2) + c**(2))', ID="X_141", classes=["center", "incident"])
            central_line(model, X_38, X_141, 38, 141, incident=True)
            X_11 = feuerbach_point_of(model, A, B, C, ID="X_11", classes=["center", "incident"])
            X_312 = eval_trilinear_point(model, A, B, C, '(b + c - a)*b**(2)*c**(2)', ID="X_312", classes=["center", "incident"])
            central_line(model, X_11, X_312, 11, 312, incident=True)
            return promote_point_to_top(model, X_3703)


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