dszsajhd237437 2011-06-02 20:28
浏览 61
已采纳

哈希,相对于x,y位置的多边形形状

I am trying to build a polygonal shape tool and have it calculate against its area to find if a point exists inside or out side the area.

These examples work well you you want to calculate on every object every time, but I am looking for a way to "HASH" the shape/area of a polygon relative to a spacial location, then The math becomes a simple "HASH" check to find if a value exists inside or outside of the defined "HASH".

I have found some decent basic examples:
http://jsfromhell.com/math/is-point-in-poly ,
http://en.wikipedia.org/wiki/Point_in_polygon (Ray casting algorithm)

  • 写回答

3条回答 默认 最新

  • douzhenyu6533 2011-06-02 20:35
    关注

    http://en.wikipedia.org/wiki/Geometric_hashing

    I think this explains everything nicely.

    Given that it can really only be used to determine if two objects are similar (given that the difference is a simple set of transformations), it can be shown that actual spatial information is lost.

    Therefore the answer to your question is no.

    To my knowledge you can't use a geometrical hash to determine if a point is in a shape.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记