[G+smo]细分网格时控制点的排序
2016-05-31 11:00
344 查看
细分方案:
for (int i = 0; i < numElevate; ++i)
{
patches -> degreeElevate();
}
for (int i = 0; i < numHref; ++i)
{
patches -> uniformRefine();
}
升阶和加密的次序影响最终结果。
GISMO_DEBUG:
Patch 0: control points
0 100 0
0 50 0
0 0 0
Refine 1 time:
GISMO_DEBUG: Patch 0: control points
0 100 0
0 75 0
0 25 0
0 0 0
refine twice:
GISMO_DEBUG: Patch 0: control points 0 100 0
0 87.5 0
0 62.5 0
0 37.5 0
0 12.5 0
0 0 0
degree elevate 1:
GISMO_DEBUG: Patch 0: control points 0 100 0
0 66.6667 0
0 33.3333 0
0 0 0
degree elevate 2:
GISMO_DEBUG: Patch 0: control points 0 100 0
0 75 0
0 50 0
0 25 0
0 0 0
degree elevate 1, refine 1
GISMO_DEBUG: Patch 0: control points 0 100 0
0 83.3333 0
0 50 0
0 16.6667 0
0 0 0
refine 1, degree elevate 1
GISMO_DEBUG: Patch 0: control points 0 100 0
0 83.3333 0
0 66.6667 0
0 33.3333 0
0 16.6667 0
0 0 0
for (int i = 0; i < numElevate; ++i)
{
patches -> degreeElevate();
}
for (int i = 0; i < numHref; ++i)
{
patches -> uniformRefine();
}
升阶和加密的次序影响最终结果。
GISMO_DEBUG:
Patch 0: control points
0 100 0
0 50 0
0 0 0
Refine 1 time:
GISMO_DEBUG: Patch 0: control points
0 100 0
0 75 0
0 25 0
0 0 0
refine twice:
GISMO_DEBUG: Patch 0: control points 0 100 0
0 87.5 0
0 62.5 0
0 37.5 0
0 12.5 0
0 0 0
degree elevate 1:
GISMO_DEBUG: Patch 0: control points 0 100 0
0 66.6667 0
0 33.3333 0
0 0 0
degree elevate 2:
GISMO_DEBUG: Patch 0: control points 0 100 0
0 75 0
0 50 0
0 25 0
0 0 0
degree elevate 1, refine 1
GISMO_DEBUG: Patch 0: control points 0 100 0
0 83.3333 0
0 50 0
0 16.6667 0
0 0 0
refine 1, degree elevate 1
GISMO_DEBUG: Patch 0: control points 0 100 0
0 83.3333 0
0 66.6667 0
0 33.3333 0
0 16.6667 0
0 0 0
相关文章推荐
- Delphi中的布尔类型
- Andriod Studio 背景设置成主流背景
- c++中[Error] 'cin' was not declared in this scope 是什么意思
- C/C++中static关键字详解
- "House Robber" and "House Robber III"
- getHibernateTemplate用法
- 快消行业如何营销?
- STL运用的C++技术(5)——重载操作符
- iOS 支持 IPv6
- sqlserver 创建用户 sp_addlogin
- 为什么有人不喜欢标准成本?
- 2016-5-30 代码Review问题总结
- 【Android基础】二、网络编程
- 如何在JSP页面中设置断点,调试代码?
- Bootstrap时间控件 datetimepicker
- STL运用的C++技术(4)——重载函数
- docker相关
- 好玩的前端技术开发,给你刺激
- SDUTOJ1755 装备合成(dfs序+线段树)
- struts2 拦截器,使用spring注入