Skip to content

Commit

Permalink
Touch ups to close #2
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbelesky committed Sep 6, 2019
1 parent 333ba28 commit 7f5387b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SandWorm/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ public static PixelSize getDepthPixelSpacing(double sensorHeight)
double kinect2ResolutionForX = 512;
double kinect2ResolutionForY = 404;

return new PixelSize
PixelSize pixelsForHeight = new PixelSize
{
x = getDepthPixelSizeInDimension(kinect2FOVForX, kinect2ResolutionForX, sensorHeight),
y = getDepthPixelSizeInDimension(kinect2FOVForY, kinect2ResolutionForY, sensorHeight)
};
return pixelsForHeight;
}

private static double getDepthPixelSizeInDimension(double fovAngle, double resolution, double height)
Expand Down
2 changes: 1 addition & 1 deletion SandWorm/SandWormComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class SandWorm : GH_Component
public Mesh quadMesh = new Mesh();

public int waterLevel;
public double sensorElevation = 0;
public double sensorElevation = 1000; // Arbitrary default value (must be >0)
public int leftColumns = 0;
public int rightColumns = 0;
public int topRows = 0;
Expand Down

0 comments on commit 7f5387b

Please sign in to comment.