PrimitiveMesh¶
Inherits: Mesh < Resource < Reference < Object
继承人: CapsuleMesh , CubeMesh , CylinderMesh , PlaneMesh , PointMesh , PrismMesh , QuadMesh , SphereMesh
类别: 核心
属性¶
AABB(0,0,0,0,0,0,0) |
||
假 |
||
方法¶
get_mesh_arrays ( ) const |
描述¶
所有基本网格的基类。处理应用 Material 到原始网格。示例包括 CapsuleMesh , CubeMesh , CylinderMesh , PlaneMesh , PrismMesh , QuadMesh 和 SphereMesh .
属性描述¶
AABB custom_aabb
违约 |
AABB(0,0,0,0,0,0,0) |
设定器 |
设置“自定义”AABB(值) |
吸气剂 |
获取自定义 |
重写 AABB 其中一个由用户定义,用于截锥剔除。在使用明暗器偏移顶点时,特别有助于避免不必要的剔除。
bool flip_faces
违约 |
假 |
设定器 |
设置翻转面(值) |
吸气剂 |
获取“翻转脸”() |
如果设置,则每个三角形中顶点的顺序将颠倒,从而绘制网格的背面。结果与使用相同 * CULL_BACK * 在里面 SpatialMaterial .
Material material
设定器 |
设置材料(值) |
吸气剂 |
获取材料() |
The current Material of the primitive mesh.