X3725

X312com(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) { 37, 42 }: Central Line L(37, 42) { 1, 333 }: Central Line L(1, 333) { 43, 312 }: Central Line L(43, 312) { 55, 869 }: Central Line L(55, 869) { 354, 1201 }: Central Line L(354, 1201) 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_37 = CROSSPOINT OF INCENTER AND CENTROID (0.5567, 0.2158) X_42 = CROSSPOINT OF INCENTER AND SYMMEDIAN POINT (0.5880, 0.2495) X_1 = INCENTER (0.5714, 0.2333) X_333 = CEVAPOINT OF X(8) AND X(9) (0.4886, 0.1475) X_43 = -CEVA CONJUGATE OF X(1) (0.6358, 0.2963) X_312 = ISOTOMIC CONJUGATE OF X(57) (0.4256, 0.1081) X_55 = INSIMILICENTER(CIRCUMCIRCLE, INCIRCLE) (0.5490, 0.1921) X_869 = INTERSECTION OF LINES X(1)X(2) AND X(31)X(32) (0.6039, 0.2651) X_354 = WEILL POINT (0.5823, 0.2533) X_1201 = 3rd SARAGOSSA POINT OF X(56) (0.6184, 0.2793) X_3725 = com(INCENTRAL TRIANGLE) (0.6101, 0.2733) A B C X31 X48 X37 X42 X1 X333 X43 X312 X55 X869 X354 X1201 X3725 (a, b, c) = (5, 6, 7) | AB = 1

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

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


        def construct_x_03725(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_3725 = X_312com(INCENTRAL TRIANGLE) on reference triangle ABC."""
            X_3725 = eval_barycentric_point(model, A, B, C, '(a**(3)*(b + c)*(b**(2) + c**(2) + a*b + a*c))', ID="X_3725", 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_37 = eval_trilinear_point(model, A, B, C, 'b + c', ID="X_37", classes=["center", "incident"])
            X_42 = eval_trilinear_point(model, A, B, C, 'a*(b + c)', ID="X_42", classes=["center", "incident"])
            central_line(model, X_37, X_42, 37, 42, incident=True)
            X_1 = incenter_of(model, A, B, C, ID="X_1", classes=["center", "incident"])
            X_333 = eval_trilinear_point(model, A, B, C, 'b*c*(b + c - a)/(b + c)', ID="X_333", classes=["center", "incident"])
            central_line(model, X_1, X_333, 1, 333, incident=True)
            return promote_point_to_top(model, X_3725)


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