Skip to content

Commit

Permalink
Z-fighting between groundplane and coplanar objects with large size.
Browse files Browse the repository at this point in the history
When objects become large the nudge value is too small to properly
work anymore. Change from 1.0e-5f to 2.5-4f.
  • Loading branch information
jesterKing committed Aug 28, 2017
1 parent 6a772f9 commit 86bfff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Database/ChangeDatabase.cs
Expand Up @@ -1165,7 +1165,7 @@ private void InitialiseGroundPlane(CqGroundPlane gp)
{
var gpid = _groundplaneGuid;
var altitude = (float) (gp.Enabled ? gp.Altitude : 0.0);
altitude -= 1.0e-5f;
altitude -= 2.5e-4f;
if (!_dynamic)
{
Plane p = new Plane(Point3d.Origin, Vector3d.ZAxis);
Expand Down

0 comments on commit 86bfff0

Please sign in to comment.