Include : aggiunti metodi a BBox3d e migliorie.
This commit is contained in:
@@ -33,20 +33,25 @@ class EGK_EXPORT BBox3d
|
||||
BBox3d( const Point3d ptP)
|
||||
: m_ptMin( ptP), m_ptMax( ptP) {}
|
||||
BBox3d( const Point3d ptP1, const Point3d ptP2) ;
|
||||
BBox3d( double dX1, double dY1, double dZ1, double dX2, double dY2, double dZ2) ;
|
||||
void Reset( void)
|
||||
{ m_ptMin = Point3d( +INFINITO, +INFINITO, +INFINITO) ;
|
||||
m_ptMax = Point3d( -INFINITO, -INFINITO, -INFINITO) ; }
|
||||
void Set( const Point3d ptP)
|
||||
{ m_ptMin = ptP ; m_ptMax = ptP ; }
|
||||
void Set( const Point3d ptP1, const Point3d ptP2) ;
|
||||
void Set( double dX1, double dY1, double dZ1, double dX2, double dY2, double dZ2) ;
|
||||
|
||||
public :
|
||||
bool IsEmpty( void) const
|
||||
{ return ( ! IsValid()) ; }
|
||||
void Add( const Point3d& ptP) ;
|
||||
void Add( const BBox3d& b3B) ;
|
||||
void Expand( double dDelta) ;
|
||||
void Expand( double dDeltaX, double dDeltaY, double dDeltaZ) ;
|
||||
bool GetMinMax( Point3d& ptMin, Point3d& ptMax) const ;
|
||||
bool GetCenterExtent( Point3d& ptCenter, Vector3d& vtExtent) const ;
|
||||
bool GetCenter( Point3d& ptCenter) const ;
|
||||
bool ToGlob( const Frame3d& frRef) ;
|
||||
bool ToLoc( const Frame3d& frRef) ;
|
||||
bool Encloses( const Point3d& ptP) const ;
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "/EgtDev/Include/EGkGeoConst.h"
|
||||
#include <math.h>
|
||||
|
||||
//----------------------- Macro per import/export -----------------------------
|
||||
#undef EGK_EXPORT
|
||||
|
||||
Reference in New Issue
Block a user