Skip to content

Commit

Permalink
fix: DisplayConduit Boundingbox including fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 authored Sep 26, 2024
1 parent 9ecc765 commit 1596dd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rhinocommon/snippets/cs/display-conduit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MyConduit : Rhino.Display.DisplayConduit
protected override void CalculateBoundingBox(CalculateBoundingBoxEventArgs e)
{
base.CalculateBoundingBox(e);
e.BoundingBox.Union(e.Display.Viewport.ConstructionPlane().Origin);
e.IncludeBoundingBox(e.Display.Viewport.ConstructionPlane().Origin);
}

protected override void PreDrawObjects(DrawEventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion rhinocommon/snippets/cs/draw-mesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected override void CalculateBoundingBox(CalculateBoundingBoxEventArgs e)
// dynamically drawing geometry would get clipped.

// Union the mesh's bbox with the scene's bounding box
e.BoundingBox.Union(m_bbox);
e.IncludeBoundingBox(m_bbox);
}

protected override void PreDrawObjects(DrawEventArgs e)
Expand Down

0 comments on commit 1596dd0

Please sign in to comment.