- might be incorrect, please review
More information in log for changeset 230365a
Since meshes no longer create their own default geometry, some parsers, which rely on first creating a mesh and then accessing it's empty geometry to fill it with data, were throwing null reference errors because there was no geometry object. Fixing this where needed by explicitly creating and passing in empty geometry objects to the mesh constructor.
Previously passed yUp parameter as if it was the surfaceClosed parameter, thereby resulting in incorrect geometry when yUp is passed as false.
Now properly respects the slope of the lateral surface, meaning that cones will now get slanting normals instead of normals that are parallel with the base plane. Also fixes issue when radius = 0, which it will always be for one segment in cones. This previously resulted in zero normals, which is no longer the case.