Convex Hull In Triangle Test
1 | ! pip install matplotlib |
1 | import matplotlib.pyplot as plt |
mitk::BaseRenderer 是mitk的核心渲染组件,
定义了哪些mapper能够被使用
1 | enum StandardMapperSlot |
哪些方向可以被渲染
1 | enum class ViewDirection |
所有创建出来的renderer都会被存储到静态变量中,可以直接通过静态方法获取
mitk::BaseRenderer中还存储了当前窗口渲染数据时的几何信息,这些信息是后续做数据操作的重要依据,包括缩放、旋转和平移。
1 | itkGetConstObjectMacro(WorldTimeGeometry, TimeGeometry); |
几何信息包括WorldTimeGeometry、CurrentWorldGeometry、CurrentWorldPlaneGeometry
数学公式渲染参照hexo-filter-mathjax

1 | def cal_porp_two(color1, color2, resultColor): |
也即是通过穷举混合比例来进行判断我们是否可以通过混合得到第三种颜色,从代码也可以看出这种方法的时间复杂度是非常高的,三种的时间复杂度为
接下来我们可以通过几何的方式来对数据进行解释,来尝试降低时间复杂度