diff --git a/EGkBBox3d.h b/EGkBBox3d.h index 00b6630..34c56a8 100644 --- a/EGkBBox3d.h +++ b/EGkBBox3d.h @@ -15,6 +15,7 @@ #pragma once #include "/EgtDev/Include/EGkPoint3d.h" +#include //----------------------- Macro per import/export ---------------------------- #undef EGK_EXPORT @@ -47,7 +48,7 @@ class EGK_EXPORT BBox3d { m_ptMin = Point3d( +INFINITO, +INFINITO, +INFINITO) ; m_ptMax = Point3d( -INFINITO, -INFINITO, -INFINITO) ; } void Set( const Point3d& ptP) - { m_ptMin = ptP ; m_ptMax = ptP ; } + { m_ptMin = ptP ; m_ptMax = ptP ; } void Set( double dX, double dY, double dZ) { m_ptMin = Point3d( dX, dY, dZ) ; m_ptMax = m_ptMin ; } void Set( const Point3d& ptP1, const Point3d& ptP2) ; @@ -65,6 +66,8 @@ class EGK_EXPORT BBox3d void Add( const Point3d& ptP) ; void Add( double dX, double dY, double dZ) ; void Add( const BBox3d& b3B) ; + void Add( const std::vector& vPnt) { for ( const Point3d& pt: vPnt){ + Add( pt) ; }} void Expand( double dDelta) ; void Expand( double dDeltaX, double dDeltaY, double dDeltaZ) ; const Point3d& GetMin( void) const