Include : nuovi prototipi per EgtGeometricKernel.
This commit is contained in:
@@ -102,3 +102,20 @@ operator/( const Frame3d& frRef1, const Frame3d& frRef2)
|
||||
|
||||
return frRefR ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Verifica che due riferimenti sono coincidenti
|
||||
//----------------------------------------------------------------------------
|
||||
inline bool
|
||||
AreSameFrame( const Frame3d& frRef1, const Frame3d& frRef2)
|
||||
{
|
||||
if ( ! AreSamePointNear( frRef1.Orig(), frRef2.Orig()))
|
||||
return false ;
|
||||
if ( ! AreSameVectorExact( frRef1.VersX(), frRef2.VersX()))
|
||||
return false ;
|
||||
if ( ! AreSameVectorExact( frRef1.VersY(), frRef2.VersY()))
|
||||
return false ;
|
||||
if ( ! AreSameVectorExact( frRef1.VersZ(), frRef2.VersZ()))
|
||||
return false ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
@@ -47,12 +47,18 @@ class __declspec( novtable) IGeomDB
|
||||
virtual bool GetLocalBBox( int nId, BBox3d& b3Loc) const = 0 ;
|
||||
virtual bool GetBBox( int nId, const Frame3d& frRef, BBox3d& b3Ref) const = 0 ;
|
||||
virtual int Copy( int nIdSou, int nIdDest, int nParentIdDest) = 0 ;
|
||||
virtual int CopyGlob( int nIdSou, int nIdDest, int nParentIdDest) = 0 ;
|
||||
virtual bool Erase( int nId) = 0 ;
|
||||
virtual bool Translate( int nId, const Vector3d& vtMove) = 0 ;
|
||||
virtual bool TranslateGlob( int nId, const Vector3d& vtMove) = 0 ;
|
||||
virtual bool Rotate( int nId, const Point3d& ptAx, const Vector3d& vtAx, double dCosAng, double dSinAng) = 0 ;
|
||||
virtual bool RotateGlob( int nId, const Point3d& ptAx, const Vector3d& vtAx, double dCosAng, double dSinAng) = 0 ;
|
||||
virtual bool Rotate( int nId, const Point3d& ptAx, const Vector3d& vtAx, double dAngDeg) = 0 ;
|
||||
virtual bool RotateGlob( int nId, const Point3d& ptAx, const Vector3d& vtAx, double dAngDeg) = 0 ;
|
||||
virtual bool Scale( int nId, const Frame3d& frRef, double dCoeffX, double dCoeffY, double dCoeffZ) = 0 ;
|
||||
virtual bool ScaleGlob( int nId, const Frame3d& frRef, double dCoeffX, double dCoeffY, double dCoeffZ) = 0 ;
|
||||
virtual bool Mirror( int nId, const Point3d& ptOn, const Vector3d& vtNorm) = 0 ;
|
||||
virtual bool MirrorGlob( int nId, const Point3d& ptOn, const Vector3d& vtNorm) = 0 ;
|
||||
} ;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ class __declspec( novtable) ICurveBezier : public ICurve
|
||||
virtual bool Init( int nDeg, bool bIsRational) = 0 ;
|
||||
virtual bool SetControlPoint( int nInd, const Point3d& ptCtrl) = 0 ;
|
||||
virtual bool SetControlPoint( int nInd, const Point3d& ptCtrl, double dW) = 0 ;
|
||||
virtual bool SetFromArc( const ICurveArc& crArc) = 0 ;
|
||||
virtual bool FromArc( const ICurveArc& crArc) = 0 ;
|
||||
virtual int GetDegree( void) const = 0 ;
|
||||
virtual bool IsRational( void) const = 0 ;
|
||||
virtual const Point3d& GetControlPoint( int nInd, bool* pbOk = NULL) const = 0 ;
|
||||
|
||||
Reference in New Issue
Block a user