Skip to content

Commit

Permalink
Merge pull request #102 from ArchiDog1998/Fix_DisplayConduit_BoundingBox
Browse files Browse the repository at this point in the history
fix: DisplayConduit Boundingbox including fix.
  • Loading branch information
dalefugier authored Sep 26, 2024
2 parents 9ecc765 + 1596dd0 commit e1a5f92
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 e1a5f92

Please sign in to comment.