Mutly Polygon plot

less than 1 minute read

WordCloud Algorithm

Repository spark star
Readme Card Sparkline
  • 分词
  • 根据词频设计字体大小
  • 从大到小,利用积分图寻找可以放置矩形的空白空间
    • 积分图
    • 每个点表示左上角矩形的像素和
    • 利用int_canvas[y+h,x+w] - int_canvas[y,x+w] - int_canvas[y+h,x] + int_canvas[y,x]
    • 可以判断该矩形内是否存在任何像素
    • wordcloud使用内置对象IntegralOccupancyMap实现积分图查找对应矩形内是否存在像素
  • 缺点
    • wordcloud不支持任意角度旋转
    • echart支持

Triangle Texture

20211117163530

  • Random triangle
  • contours = np.random.randint(0, 100, (n, 3, 2))
  • 四叉树
    • 20211211171145
    • 20211211202201
  • Triangle collision detection
    • 20211213200123
  • Quadrilateral collision detection
    • 20211213200624

AABB with AABB collision detection

Square Layout

20211214203648

Refernece

Categories:

Updated: