Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用XTK,我尝试加载 STL 文件。阴影不平滑。我需要做哪些修改才能获得平滑的阴影?
XTK 不会重新计算法线(还)。由于 .STL 只有面法线,没有顶点法线,所以不会平滑
您可以将模型转换为支持顶点法线的 .vtk 文件。
此外,欢迎您提供法线计算代码:) 对于自由冲浪者网格,法线会重新计算,因此所有部分都应该在那里