Include :

- modificata interfaccia SurfTriMesh.
This commit is contained in:
Dario Sassi
2014-05-02 06:58:31 +00:00
parent b9df9bf817
commit 4cf56692ae
3 changed files with 9 additions and 0 deletions
+5
View File
@@ -39,6 +39,11 @@ const double SIN_EPS_ANG_ZERO = EPS_ANG_ZERO * DEGTORAD ;
const double COS_ORTO_ANG_SMALL = SIN_EPS_ANG_SMALL ;
const double COS_ORTO_ANG_ZERO = SIN_EPS_ANG_ZERO ;
// angoli notevoli (in gradi)
const double ANG_RIGHT = 90 ;
const double ANG_STRAIGHT = 180 ;
const double ANG_FULL = 360 ;
// altre costanti
const double SQRT2 = 1.41421356237309504880 ;
const double SQRT1_2 = 1 / SQRT2 ;
+2
View File
@@ -70,6 +70,8 @@ class PolyLine
EGK_EXPORT bool GetNextLine( Point3d& ptIni, Point3d& ptFin) const
{ return GetNextULine( nullptr, &ptIni, nullptr, &ptFin) ; }
EGK_EXPORT bool IsPlanar( Plane3d& plPlane, double dToler = EPS_SMALL) const ;
EGK_EXPORT bool GetMaxDistanceFromLine( double& dMaxDist, const Point3d& ptAx,
const Vector3d& vtAx, double dLen, bool bIsSegment = true) const ;
private :
bool NewellPlane( Plane3d& plPlane) const ;
+2
View File
@@ -33,6 +33,8 @@ class __declspec( novtable) ISurfTriMesh : public ISurf
virtual bool AdjustTopology( void) = 0 ;
virtual bool CreateByTriangulation( const PolyLine& PL) = 0 ;
virtual bool CreateByExtrusion( const PolyLine& PL, const Vector3d& vtExtr) = 0 ;
virtual bool CreateByRevolution( const PolyLine& PL, const Point3d& ptAx, const Vector3d& vtAx,
double dAngRot, double dStepRot) = 0 ;
virtual int GetVertexNum( void) const = 0 ;
virtual int GetTriangleNum( void) const = 0 ;
virtual int GetFirstVertex( Point3d& ptP) const = 0 ;