BBrother
V2EX  ›  问与答

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

  •  
  •   BBrother · May 9, 2022 · 1161 views
    This topic created in 1470 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   ·   1032 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 22:37 · PVG 06:37 · LAX 15:37 · JFK 18:37
    ♥ Do have faith in what you're doing.