X3724

X908com(INCENTRAL 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) { 31, 48 }: Central Line L(31, 48) { 42, 181 }: Central Line L(42, 181) { 36, 214 }: Central Line L(36, 214) { 55, 199 }: Central Line L(55, 199) { 187, 237 }: Central Line L(187, 237) { 100, 740 }: Central Line L(100, 740) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) X_31 = 2nd POWER POINT (0.6228, 0.3008) X_48 = CROSSPOINT OF X(1) AND X(63) (0.5412, 0.1246) X_42 = CROSSPOINT OF INCENTER AND SYMMEDIAN POINT (0.5880, 0.2495) X_181 = APOLLONIUS POINT (0.6163, 0.3093) X_36 = INVERSE-IN-CIRCUMCIRCLE OF INCENTER (1.3333, 1.6330) X_214 = -CEVA CONJUGATE OF X(44) (0.3571, 0.3499) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_199 = -CEVA CONJUGATE OF X(6) (0.4796, 0.0487) X_187 = INVERSE-IN-CIRCUMCIRCLE OF X(6) (SCHOUTE CENTER) (1.1986, 1.2559) X_237 = -LINE CONJUGATE OF X(2) (0.9894, 1.3825) X_100 = ANTICOMPLEMENT OF FEUERBACH POINT (0.1429, 0.4666) X_740 = EVEN (- 1, 1) INFINITY POINT (0.9745, 0.5915) X_3724 = com(INCENTRAL TRIANGLE) (1.0944, 1.3190) A B C X31 X48 X42 X181 X36 X214 X55 X199 X187 X237 X100 X740 X3724 (a, b, c) = (5, 6, 7) | AB = 1

X3724 (X908com(INCENTRAL TRIANGLE)) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_3724 = X_908com(INCENTRAL 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,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_03724(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3724 = X_908com(INCENTRAL TRIANGLE) on reference triangle ABC."""
            X_3724 = eval_barycentric_point(model, A, B, C, 'a**(3)*(b+c) * (a**(2)-b**(2)+b*c-c**(2))', ID="X_3724", classes=["selected", "target"])
            X_31 = eval_trilinear_point(model, A, B, C, 'a**(2)', ID="X_31", classes=["center", "incident"])
            X_48 = eval_trilinear_point(model, A, B, C, 'tan(B) + tan(C)', ID="X_48", classes=["center", "incident"])
            central_line(model, X_31, X_48, 31, 48, incident=True)
            X_42 = eval_trilinear_point(model, A, B, C, 'a*(b + c)', ID="X_42", classes=["center", "incident"])
            X_181 = eval_trilinear_point(model, A, B, C, 'a*(b + c)**(2)/(b + c - a)', ID="X_181", classes=["center", "incident"])
            central_line(model, X_42, X_181, 42, 181, incident=True)
            X_36 = eval_trilinear_point(model, A, B, C, '1 - 2*cos(A)', ID="X_36", classes=["center", "incident"])
            X_214 = eval_trilinear_point(model, A, B, C, '(b + c - 2*a)*(b**(2) + c**(2) - a**(2) - b*c)', ID="X_214", classes=["center", "incident"])
            central_line(model, X_36, X_214, 36, 214, incident=True)
            return promote_point_to_top(model, X_3724)


        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_3724 on the given reference triangle."""
            model = create_model('X_3724 = X_908com(INCENTRAL TRIANGLE)')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_03724(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-03724.json"))
            write_center_svg(
                model_acute,
                here / "x-03724.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )