X1046

X65-CEVA 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, 21 }: Central Line L(1, 21) { 43, 46 }: Central Line L(43, 46) { 72, 171 }: Central Line L(72, 171) { 40, 511 }: Central Line L(40, 511) { 10, 894 }: Central Line L(10, 894) { 6, 986 }: Central Line L(6, 986) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_65 = ORTHOCENTER OF THE INTOUCH TRIANGLE (0.6041, 0.2933) X_1 = INCENTER (0.5714, 0.2333) X_21 = SCHIFFLER POINT (0.5287, 0.1771) X_43 = -CEVA CONJUGATE OF X(1) (0.6358, 0.2963) X_46 = -CEVA CONJUGATE OF X(1) (0.6917, 0.4543) X_72 = ISOGONAL CONJUGATE OF X(28) (0.4367, 0.0733) X_171 = {X(2), X(31)}-HARMONIC CONJUGATE OF X(238) (0.5819, 0.2525) X_40 = BEVAN POINT (0.4286, -0.0292) X_511 = ISOGONAL CONJUGATE OF X(98) (0.2335, -0.3020) X_10 = SPIEKER CENTER (0.5204, 0.1833) X_894 = ISOGONAL CONJUGATE OF X(893) (0.5501, 0.2184) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_986 = INTERSECTION OF LINES X(1)X(3) AND X(8)X(38) (0.5588, 0.2101) X_1046 = -CEVA CONJUGATE OF X(1) (0.6500, 0.3366) A B C X65 X1 X21 X43 X46 X72 X171 X40 X511 X10 X894 X6 X986 X1046 (a, b, c) = (5, 6, 7) | AB = 1

X1046 (X65-CEVA CONJUGATE OF X1) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_1046 = X_65-CEVA CONJUGATE OF X_1."""

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


        def construct_x_01046(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_1046 = X_65-CEVA CONJUGATE OF X_1 on reference triangle ABC."""
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center"])
            X_21 = eval_trilinear_point(model, A, B, C, '1/(cos(B) + cos(C))', ID="X_21", classes=["center"])
            X_43 = eval_trilinear_point(model, A, B, C, 'a*b + a*c - b*c', ID="X_43", classes=["center"])
            X_46 = eval_trilinear_point(model, A, B, C, 'cos(B) + cos(C) - cos(A)', ID="X_46", classes=["center"])
            central_line(model, X_1, X_21, 1, 21)
            central_line(model, X_43, X_46, 43, 46)
            X_1046 = intersect_lines(model, X_1, X_21, X_43, X_46, ID="X_1046", classes=["selected", "target"])
            X_72 = eval_trilinear_point(model, A, B, C, '(b + c)*cot(A)', ID="X_72", classes=["center", "incident"])
            X_171 = eval_trilinear_point(model, A, B, C, 'a**(2) + b*c', ID="X_171", classes=["center", "incident"])
            central_line(model, X_72, X_171, 72, 171, incident=True)
            return promote_point_to_top(model, X_1046)


        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_1046 on the given reference triangle."""
            model = create_model('X_1046 = X_65-CEVA CONJUGATE OF X_1')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_01046(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-01046.json"))
            write_center_svg(
                model_acute,
                here / "x-01046.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )