BBrother
V2EX  ›  问与答

请教一下,平面被一条折线分割后,如何获取分割后的每个面?

  •  
  •   BBrother · May 9, 2022 · 1163 views
    This topic created in 1471 days ago, the information mentioned may be changed or developed.

    如图,已知矩形的四个点的坐标,折线与矩形的交点,折线与折线的交点,折线的绘制顺序

    输出:被折线划分出来的 6 个区域,如:[(a, b,c, e), (c, d, e), ......]

    求个思路,或者有什么现成的算法可以用吗?

    BBrother
        1
    BBrother  
    OP
       May 10, 2022
    有人能帮帮我吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1023 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 22:30 · PVG 06:30 · LAX 15:30 · JFK 18:30
    ♥ Do have faith in what you're doing.