diff --git a/EGkTriangle3d.h b/EGkTriangle3d.h index c1b816e..2eb3763 100644 --- a/EGkTriangle3d.h +++ b/EGkTriangle3d.h @@ -14,6 +14,8 @@ #pragma once #include "/EgtDev/Include/EGkPoint3d.h" +#include +#include #include //----------------------------------------------------------------------------- @@ -80,6 +82,11 @@ class Triangle3d Vector3d vtN ; } ; +//---------------------------------------------------------------------------- +// Raccolte di Triangle3d +typedef std::vector TRIA3DVECTOR ; // vettore di Triangle3d +typedef std::list TRIA3DLIST ; // lista di Triangle3d + //----------------------------------------------------------------------------- // Flags indicanti se i lati sono parte del contorno di un poligono di pił triangoli class TriFlags3d @@ -205,4 +212,4 @@ CalcNormal( const Point3d& ptP, const Triangle3d& Tria, const TriNormals3d& Tnor vtNorm = dU * Tnorms.vtN[0] + dV * Tnorms.vtN[1] + dW * Tnorms.vtN[2] ; // la normalizzo return vtNorm.Normalize() ; -} \ No newline at end of file +} diff --git a/EGkVolZmap.h b/EGkVolZmap.h index cfcb56c..e423f2c 100644 --- a/EGkVolZmap.h +++ b/EGkVolZmap.h @@ -15,6 +15,7 @@ #include "/EgtDev/Include/EGkGeoObj.h" #include "/EgtDev/Include/EGkPolyLine.h" +#include "/EgtDev/Include/EGkTriangle3d.h" //---------------------------------------------------------------------------- @@ -22,6 +23,8 @@ class __declspec( novtable) IVolZmap : public IGeoObj { public : virtual bool CopyFrom( const IGeoObj* pGObjSrc) = 0 ; + virtual bool CreateMap( const Point3d& ptO, double dPrec, double dLenX, double dLenY, double dLenZ) = 0 ; + virtual bool GetAllTriangles( TRIA3DLIST& lstTria) const = 0 ; virtual bool GetDexelLines( int nDir, int nPos1, int nPos2, POLYLINELIST& lstPL) const = 0 ; } ;