Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
MiCellExtractIjk.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2018 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23#ifndef _MICELLEXTRACTIJK_H
24#define _MICELLEXTRACTIJK_H
25
26#include <MeshVizXLM/mesh/data/MiDataSetI.h>
27#include <MeshVizXLM/mesh/data/MiDataSetIjk.h>
28#include <MeshVizXLM/extractors/MiBaseExtractor.h>
29#include <MeshVizXLM/extrmesh/data/MeXDataSetI.h>
30
31#include <MeshVizXLM/mesh/MiVolumeMeshRegular.h>
32#include <MeshVizXLM/mesh/MiVolumeMeshRectilinear.h>
33#include <MeshVizXLM/mesh/MiVolumeMeshCurvilinear.h>
34#include <MeshVizXLM/extrmesh/MeXSurfaceMeshUnstructured.h>
35#include <MeshVizXLM/tessellator/MiTessellator.h>
36
37#include <Inventor/STL/vector>
38
39class MiCellFilterIjk;
40
52class MESHVIZXLM_EXTR_API MiCellExtractIjk : virtual public MiBaseExtractor
53{
54public:
55
56 virtual ~MiCellExtractIjk() {}
57
59
66 static MiCellExtractIjk* getNewInstance(const MiVolumeMeshRegular& mesh, bool parallel = true, MiTessellator* tessellator=NULL);
67 static MiCellExtractIjk* getNewInstance(const MiVolumeMeshRectilinear& mesh, bool parallel = true, MiTessellator* tessellator=NULL);
68 static MiCellExtractIjk* getNewInstance(const MiVolumeMeshCurvilinear& mesh, bool parallel = true, MiTessellator* tessellator=NULL);
70
74 class triplet
75 {
76 public:
77 triplet():i(0),j(0),k(0) {}
78 triplet(size_t x, size_t y, size_t z):i(x),j(y),k(z) {}
79 triplet(size_t v):i(v),j(v),k(v) {}
80 size_t i;
81 size_t j;
82 size_t k;
84 friend bool operator ==(const triplet &t1, const triplet &t2)
85 { return (t1.i==t2.i && t1.j==t2.j && t1.k==t2.k);}
87 friend bool operator <(const triplet &t1, const triplet &t2)
88 { return (t1.i<t2.i || (t1.i==t2.i && (t1.j<t2.j || (t1.j==t2.j && t1.k<t2.k)))); }
89 };
90
98 virtual const MeXSurfaceMeshUnstructured&
99 extractCell(const std::vector<triplet>& cellIndexes, double factor, const MiCellFilterIjk* cellFilter=NULL) = 0;
100
108 virtual const MeXSurfaceMeshUnstructured&
109 extractCell(double factor, const MiCellFilterIjk* cellFilter=NULL) = 0;
110
118 virtual const MeXScalardSetI& extractScalarSet(const MiScalardSetIjk& inputSet) = 0;
119
127 virtual const MeXVec3dSetI& extractVec3Set(const MiVec3dSetIjk& inputSet) = 0;
128
136 virtual const MeXStringSetI& extractStringSet(const MiStringSetIjk& inputSet) = 0;
137
141 virtual const MeXSurfaceMeshUnstructured& getExtract() const = 0;
142
143};
144
145#endif /* _MICELLEXTRACT_H */
146
147
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Generic data set interfa...
Definition MeXDataSetI.h:45
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Extracted unstructured s...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
A triplet of indices used to define the cells to be extracted.
triplet(size_t x, size_t y, size_t z)
constructor
triplet(size_t v)
constructor
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Cell extractor for struc...
virtual const MeXStringSetI & extractStringSet(const MiStringSetIjk &inputSet)=0
Extracts a string set from the original mesh.
virtual const MeXSurfaceMeshUnstructured & getExtract() const =0
Returns the result of the extraction as a mesh.
virtual ~MiCellExtractIjk()
virtual const MeXSurfaceMeshUnstructured & extractCell(const std::vector< triplet > &cellIndexes, double factor, const MiCellFilterIjk *cellFilter=NULL)=0
Creates an unstructured surface mesh from the faces of the cells corresponding to the given indices i...
virtual const MeXSurfaceMeshUnstructured & extractCell(double factor, const MiCellFilterIjk *cellFilter=NULL)=0
Creates an unstructured surface mesh from the faces of all the cells in the original volume mesh.
static MiCellExtractIjk * getNewInstance(const MiVolumeMeshCurvilinear &mesh, bool parallel=true, MiTessellator *tessellator=NULL)
static MiCellExtractIjk * getNewInstance(const MiVolumeMeshRectilinear &mesh, bool parallel=true, MiTessellator *tessellator=NULL)
virtual const MeXVec3dSetI & extractVec3Set(const MiVec3dSetIjk &inputSet)=0
Extracts a vector set from the original mesh.
virtual const MeXScalardSetI & extractScalarSet(const MiScalardSetIjk &inputSet)=0
Extracts a scalar set from the original mesh.
static MiCellExtractIjk * getNewInstance(const MiVolumeMeshRegular &mesh, bool parallel=true, MiTessellator *tessellator=NULL)
Factory method returning a new instance of a class implementing this interface.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Interface class defining...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Generic data set interfa...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract tessellator int...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Curvilinear volume mesh ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Rectilinear volume mesh ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Regular volume mesh abst...