X17

1st NAPOLEON POINT

Let Napa, Napb, Napc be the centers of the equilateral triangles in the construction of X13. The lines ANapa, BNapb, CNapc concur in X17.
< A B C >: Reference Triangle △ABC < B C A' >: Equilateral Triangle on BC < C A B' >: Equilateral Triangle on CA < A B C' >: Equilateral Triangle on AB < Nap_a Nap_b Nap_c >: Outer Napoleon Triangle △Nap_a Nap_b Nap_c [ A B ]: Sideline AB (Base c = 1) [ B C ]: Sideline BC (Side a) [ C A ]: Sideline CA (Side b) [ A Nap_a ]: Outer Napoleon Cevian A–Nap_a [ B Nap_b ]: Outer Napoleon Cevian B–Nap_b [ C Nap_c ]: Outer Napoleon Cevian C–Nap_c { 3, 13 }: Central Line L(3, 13) { 4, 15 }: Central Line L(4, 15) { 5, 14 }: Central Line L(5, 14) { 6, 18 }: Central Line L(6, 18) A = Vertex A (0.0000, 0.0000) B = Vertex B (1.0000, 0.0000) C = Vertex C (0.6122, 0.5999) A' = Auxiliary Apex A' (1.3256, 0.6357) B' = Auxiliary Apex B' (-0.2134, 0.8302) C' = Auxiliary Apex C' (0.5000, -0.8660) Nap_a = Napoleon Center Nap_a (0.9793, 0.4119) Nap_b = Napoleon Center Nap_b (0.1330, 0.4767) Nap_c = Napoleon Center Nap_c (0.5000, -0.2887) X_3 = CIRCUMCENTER (0.5000, 0.1021) X_13 = 1st ISOGONIC CENTER (FERMAT POINT, TORRICELLI POINT) (0.5879, 0.2819) X_4 = ORTHOCENTER (0.6122, 0.3958) X_15 = 1st ISODYNAMIC POINT (0.5519, 0.1878) X_5 = NINE-POINT CENTER (0.5561, 0.2489) X_14 = 2nd ISOGONIC CENTER (0.9134, -0.1143) X_6 = SYMMEDIAN POINT (LEMOINE POINT, GREBE POINT) (0.6000, 0.2672) X_18 = 2nd NAPOLEON POINT (0.4434, 0.1317) X_17 = 1st NAPOLEON POINT (0.5666, 0.2383) A B C A' B' C' Napa Napb Napc X3 X13 X4 X15 X5 X14 X6 X18 X17

X17 (1st NAPOLEON POINT) constructed on acute reference triangle \((a, b, c) = (5, 6, 7)\) with unit baseline AB = \(1\).

"""GEOMETOR construction model for X_17 = 1st NAPOLEON POINT."""

        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,
            nine_point_center_of,
            orthocenter_of,
            outer_napoleon_triangle,
            perspector,
            promote_point_to_top,
        )
        from geometor.etc.render import write_center_svg


        def construct_x_00017(
            model: Model, A: spg.Point, B: spg.Point, C: spg.Point
        ) -> spg.Point:
            """Construct X_17 = 1st NAPOLEON POINT on reference triangle ABC."""
            Na, Nb, Nc = outer_napoleon_triangle(model, A, B, C)
            X_17 = perspector(model, A, B, C, Na, Nb, Nc, ID="X_17", classes=["selected", "target"])
            X_3 = circumcenter_of(model, A, B, C, ID="X_3", classes=["center", "incident"])
            X_13 = eval_trilinear_point(model, A, B, C, 'csc(A +  pi  /3)', ID="X_13", classes=["center", "incident"])
            central_line(model, X_3, X_13, 3, 13, incident=True)
            X_4 = orthocenter_of(model, A, B, C, ID="X_4", classes=["center", "incident"])
            X_15 = eval_trilinear_point(model, A, B, C, 'sin(A +  pi  /3)', ID="X_15", classes=["center", "incident"])
            central_line(model, X_4, X_15, 4, 15, incident=True)
            X_5 = nine_point_center_of(model, A, B, C, ID="X_5", classes=["center", "incident"])
            X_14 = eval_trilinear_point(model, A, B, C, 'csc(A -  pi  /3)', ID="X_14", classes=["center", "incident"])
            central_line(model, X_5, X_14, 5, 14, incident=True)
            return promote_point_to_top(model, X_17)


        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_17 on the given reference triangle."""
            model = create_model('X_17 = 1st NAPOLEON POINT')
            A, B, C = construct_baseline_triangle(model, *sides, show_guides=show_guides)
            construct_x_00017(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-00017.json"))
            write_center_svg(
                model_acute,
                here / "x-00017.svg",
                subtitle="(a, b, c) = (5, 6, 7) | AB = 1",
            )