X3746

X191com[n(MEDIAL)*n(INCENTRAL)]

X3746 = incentral-isogonal conjugate of X1
< 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) { 1, 3 }: OI Line (Incenter–Circumcenter Line) { 21, 519 }: Central Line L(21, 519) { 12, 546 }: Central Line L(12, 546) { 79, 516 }: Central Line L(79, 516) { 42, 595 }: Central Line L(42, 595) { 191, 518 }: Central Line L(191, 518) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_1 = INCENTER (0.5714, 0.2333) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_519 = ISOGONAL CONJUGATE OF X(106) (0.9566, 0.6107) X_12 = {X(1),X(5)}-HARMONIC CONJUGATE OF X(11) (0.5641, 0.2407) X_546 = MIDPOINT OF X(4) AND X(5) (0.5842, 0.3223) X_79 = ISOGONAL CONJUGATE OF X(35) (0.5976, 0.3019) X_516 = ISOGONAL CONJUGATE OF X(103) (0.7703, 0.7386) X_42 = CROSSPOINT OF INCENTER AND SYMMEDIAN POINT (0.5880, 0.2495) X_595 = 2nd HATZIPOLAKIS-YIU POINT (0.6456, 0.3307) X_191 = -CEVA CONJUGATE OF X(1) (0.4859, 0.1209) X_518 = ISOGONAL CONJUGATE OF X(105) (0.9154, 0.6489) X_3746 = com[n(MEDIAL)*n(INCENTRAL)] (0.5547, 0.2026) A B C X1 X3 X21 X519 X12 X546 X79 X516 X42 X595 X191 X518 X3746 (a, b, c) = (5, 6, 7) | AB = 1

X3746 (X191com[n(MEDIAL)*n(INCENTRAL)]) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3746 = X_191com[n(MEDIAL)*n(INCENTRAL)]."""

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


        def construct_x_03746(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3746 = X_191com[n(MEDIAL)*n(INCENTRAL)] on reference triangle ABC."""
            X_3746 = eval_trilinear_point(model, A, B, C, '3 + 2*cos(A)', ID="X_3746", classes=["selected", "target"])
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            central_line(model, X_1, X_3, 1, 3, incident=True)
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center", "incident"])
            X_519 = eval_trilinear_point(model, A, B, C, '(2*a - b - c)/a', ID="X_519", classes=["center", "incident"])
            central_line(model, X_21, X_519, 21, 519, incident=True)
            X_12 = eval_trilinear_point(model, A, B, C, '1 + cos(B - C)', ID="X_12", classes=["center", "incident"])
            X_546 = eval_trilinear_point(model, A, B, C, '3*cos(B - C) - 2*cos(A)', ID="X_546", classes=["center", "incident"])
            central_line(model, X_12, X_546, 12, 546, incident=True)
            return promote_point_to_top(model, X_3746)


        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_3746 on the given reference triangle."""
            model = create_model('X_3746 = X_191com[n(MEDIAL)*n(INCENTRAL)]')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03746(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-03746.json"))
            write_center_svg(
                model_acute,
                here / "x-03746.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )