diff --git a/Geo/GFace.h b/Geo/GFace.h
index e24a6ff8be6f3cf12d8778751f589469595eeba8..0951b096c27665209031a0221de5afdc17ecc834 100644
--- a/Geo/GFace.h
+++ b/Geo/GFace.h
@@ -44,9 +44,9 @@ class GFace : public GEntity
   mean_plane meanPlane;
   std::list<GEdge *> embedded_edges;
   std::list<GVertex *> embedded_vertices;
-  GFaceCompound *compound; // this model ede belongs to a compound 
+  GFaceCompound *compound; // this model edge belongs to a compound 
 
-  // replace edges (gor gluing) for specific modelers, we have to
+  // replace edges (for gluing) for specific modelers, we have to
   // re-create internal data
   virtual void replaceEdgesInternal(std::list<GEdge*> &){}
 
diff --git a/Geo/SBoundingBox3d.h b/Geo/SBoundingBox3d.h
index d62df9060e6508cba28e8977751a9fa79c402da5..179fa67d9191982f1b1bdc65b0a887b3a7c254a4 100644
--- a/Geo/SBoundingBox3d.h
+++ b/Geo/SBoundingBox3d.h
@@ -85,6 +85,7 @@ class SBoundingBox3d {
   SPoint3 min() const { return MinPt; }
   SPoint3 max() const { return MaxPt; }
   SPoint3 center() const { return (MinPt + MaxPt) * .5; }
+  double diag() const { return MinPt.distance(MaxPt); }
   void makeCube()
   {
     SVector3 len = MaxPt - MinPt;