00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 #ifndef _MiTessellator_h 00024 #define _MiTessellator_h 00025 00026 class MiLineCell; 00027 class MiSurfaceCell; 00028 class MiVolumeCell; 00029 00030 #include <MeshVizXLM/MxMeshIViz.h> 00031 00032 #include <MeshVizXLM/tessellator/MiEdgeErrorMetric.h> 00033 00034 #include <MeshVizXLM/extrmesh/geometry/MeWGeometryI.h> 00035 #include <MeshVizXLM/extrmesh/topology/MeWVolumeTopologyExplicitI.h> 00036 #include <MeshVizXLM/extrmesh/topology/MeWSurfaceTopologyExplicitI.h> 00037 #include <MeshVizXLM/extrmesh/topology/MeWLineTopologyExplicitI.h> 00038 00133 class MESHIVIZ_API MiTessellator 00134 { 00135 public: 00136 virtual ~MiTessellator() {} 00137 00144 virtual size_t getTimeStamp() const = 0; 00145 00147 // @{ 00148 00160 static MiTessellator* getNewTessellatorBasic(); 00161 00187 static MiTessellator* getNewTessellatorGeometry(const MiEdgeErrorMetric<MbVec3d>& edgeMetric); 00188 00201 static MiTessellator* getNewTessellatorPolyhedron(); 00202 // @} 00203 00205 // @{ 00206 00213 virtual void setMesh(const MiTopologyExplicitI& topology, const MiGeometryI& geometry) = 0; 00214 00218 virtual void unsetMesh() = 0; 00219 00220 // @} 00221 00223 // @{ 00224 00234 virtual void startVolumeTessellation(MeWVolumeTopologyExplicitI& tessellatedTopology, MeWGeometryI& tessellatedGeometry) = 0; 00235 00241 virtual void finishVolumeTessellation() = 0; 00242 00250 virtual size_t tessellateVolumeCell(const MiVolumeCell* volumeCell) = 0; 00251 00252 // @} 00253 00255 // @{ 00256 00266 virtual void startSurfaceTessellation(MeWSurfaceTopologyExplicitI& tessellatedTopology, MeWGeometryI& tessellatedGeometry) = 0; 00267 00273 virtual void finishSurfaceTessellation() = 0; 00274 00284 virtual size_t tessellateSurfaceCell(const MiSurfaceCell* surfaceCell) = 0; 00285 00286 // @} 00287 00289 // @{ 00290 00300 virtual void startLineTessellation(MeWLineTopologyExplicitI& tessellatedTopology, MeWGeometryI& tessellatedGeometry) = 0; 00301 00307 virtual void finishLineTessellation() = 0; 00308 00316 virtual size_t tessellateLineCell(const MiLineCell* lineCell) = 0; 00317 00319 00320 }; 00321 00322 00323 #endif 00324 00325 00326