Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
PbMesh3D.h
Go to the documentation of this file.
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-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PB_MESH3D_
25#define _PB_MESH3D_
26
28
29class PoMeshSkin;
32class PoMeshSkeleton;
33class PoMesh3D;
34class PoMesh3DVec;
35class PiCellOctree;
36class PoCellFilter;
37class PiMeshSkinCache;
38class PiMeshSkin;
39
51class PbMesh3D : public PbMesh {
52
53 public:
54
58 virtual float getVolume() const;
59
63 virtual float getArea() const
64 { return 0.0;}
65
66 private:
67
68 PbMesh3D(SbBool is_data_duplicate=TRUE);
69 PbMesh3D(const PbMesh3D &mesh);
70 virtual ~PbMesh3D();
71
72 /*----------------------------------------------------------------------------*/
73 private:
74
75 // Assignment operator.
76 PbMesh3D &operator=(const PbMesh3D &mesh);
77
78 virtual void meshSkin(PoMeshSkin *_PoMeshSkin) const;
79 virtual void meshLevelSurfShapeIndices(PoMesh3D *_PoMesh3D, int surfOrientation=1,
80 const float *per_cell_value=NULL) const;
81 virtual void meshCrossSection(PoMeshCrossSection *_PoMeshCrossSection) const;
82 virtual void meshCrossContour(PoMeshCrossContour *_PoMeshCrossContour) const;
83 virtual void meshSkeleton(PoMeshSkeleton *skeleton, const float *nod_values,
84 float *x_cont, float *y_cont,float *z_cont) const;
85 virtual void mesh3DVec(PoMesh3DVec *_PoMesh3DVec) const;
86
87 virtual SbBool isCrossSectionOptimal() const;
88
89 void print(FILE *fp) const;
90
96 virtual int evaluateSkinFacesNum() const;
97
98 PiMeshSkin* getSkinTopology(const PoCellFilter*, int valuesIdFilter, uint32_t &wasUpToDate) const;
99
100 private:
101
102 const PbCell *findContainingCellProtected(const SbVec3f &point,
103 float tolerance,
104 SbVec3f &pcoord,
105 PbArrayOfInt &test_cell) const;
106
107 mutable SbBool m_skinIsUpdated;
108 mutable PiCellOctree *m_cellOctree;
109 mutable SbBool m_cellOctreeIsUpdated;
110
111 private:
112
113 void copy(const PbMesh3D &mesh);
114 void destroy();
115 mutable PiMeshSkinCache* m_skinTopologyCache;
116};
117
118/*---------------------------------------------------------------------------*/
119
120#endif /* _PB_MESH3D_ */
121
#define TRUE
Possible value of SbBool.
Definition SbBase.h:77
DTEXT Dynamic array of int .
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract cell...
Definition PbCell.h:49
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract volu...
Definition PbMesh3D.h:51
virtual float getVolume() const
Gets the volume of the mesh.
virtual float getArea() const
Returns always 0.
Definition PbMesh3D.h:63
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract mesh...
Definition PbMesh.h:84
<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> Base class for all volum...
Definition PoMesh3D.h:53
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Representation of vector...
Definition PoMesh3DVec.h:95
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Representation of cross-...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Representation of cross ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Representation of the sk...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Representation of the me...
Definition PoMeshSkin.h:61
3D vector class.
Definition SbVec.h:932
int SbBool
Boolean type.
Definition SbBase.h:87