Skip to content
Snippets Groups Projects
Commit 9c34cdcb authored by Francois Henrotte's avatar Francois Henrotte
Browse files

BoundingBox3D.diag()

parent 9b6c2cf7
No related branches found
No related tags found
No related merge requests found
......@@ -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*> &){}
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment