From 9c34cdcb1116ee7eebab73edf2822d73931c41be Mon Sep 17 00:00:00 2001 From: Francois Henrotte <francois.henrotte@ulg.ac.be> Date: Tue, 19 Mar 2013 10:22:40 +0000 Subject: [PATCH] BoundingBox3D.diag() --- Geo/GFace.h | 4 ++-- Geo/SBoundingBox3d.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Geo/GFace.h b/Geo/GFace.h index e24a6ff8be..0951b096c2 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 d62df9060e..179fa67d91 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; -- GitLab