Skip to content

Commit

Permalink
Expand bounding box by one meter to all sides
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgDangl committed Oct 4, 2024
1 parent cfa3a78 commit efe9303
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ private BcfViewpoint GetViewpointFromNavisworksViewpoint(Viewpoint viewpoint,
var maxY = elementBoundingBoxes.Max(b => b.Max.Y);
var maxZ = elementBoundingBoxes.Max(b => b.Max.Z);

var commonBoundingBox = new BoundingBox3D(new Point3D(minX, minY, minZ),
new Point3D(maxX, maxY, maxZ));
var commonBoundingBox = new BoundingBox3D(new Point3D(minX - 1d.ToInternal(), minY - 1d.ToInternal(), minZ - 1d.ToInternal()),
new Point3D(maxX + 1d.ToInternal(), maxY + 1d.ToInternal(), maxZ + 1d.ToInternal()));

if (centerForBoundingBox != null)
{
Expand Down

0 comments on commit efe9303

Please sign in to comment.