Function physx_sys::phys_PxBuildSmoothNormals
source · pub unsafe extern "C" fn phys_PxBuildSmoothNormals(
nbTris: u32,
nbVerts: u32,
verts: *const PxVec3,
dFaces: *const u32,
wFaces: *const u16,
normals: *mut PxVec3,
flip: bool
) -> bool
Expand description
Builds smooth vertex normals over a mesh.
- “smooth” because smoothing groups are not supported here
- takes angles into account for correct cube normals computation
To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to wFaces and set dFaces to zero.
True on success.