I’m experimenting in the following sandbox to understand facet face orientations.
If I understand correctly what I am seeing, then when creating a custom mesh, by default, Babylon sets the front face of each facet as the side where the vertices of the facet (in the order specified) are positioned counterclockwise about the facet.
We can change the side orientation to clockwise by setting
customMesh.overrideMaterialSideOrientation = BABYLON.Material.ClockWiseSideOrientation or by calling
Is the appropriate way to determine the side orientation of a mesh (without setting a material) the following?
let orientation = (customMesh.overrideMaterialSideOrientation == null) ? BABYLON.Material.CounterClockWiseSideOrientation : customMesh.overrideMaterialSideOrientation;