9 #ifndef CGNS_ZONE_UNSTRUCT_H
10 #define CGNS_ZONE_UNSTRUCT_H
14 #if defined(HAVE_LIBCGNS)
16 class CGNSZoneUnstruct :
public CGNSZone {
18 CGNSZoneUnstruct(
int fileIndex,
int baseIndex,
int zoneIndex,
int meshDim,
20 const Family2EltNodeTransfo &allEltNodeTransfo,
int &err);
22 virtual cgsize_t indexDataSize(cgsize_t nbVal) {
return nbVal; }
24 virtual void eltFromRange(
const cgsize_t *range,
25 std::vector<cgsize_t> &elt)
const;
26 virtual void eltFromList(
const std::vector<cgsize_t> &list,
27 std::vector<cgsize_t> &elt)
const;
28 virtual void nodeFromRange(
const cgsize_t *range,
29 std::vector<cgsize_t> &node)
const;
30 virtual void nodeFromList(
const std::vector<cgsize_t> &range,
31 std::vector<cgsize_t> &node)
const;
33 virtual int readElements(std::vector<MVertex *> &allVert,
34 std::map<
int, std::vector<MElement *> > *allElt,
35 std::vector<MElement *> &zoneElt,
36 std::vector<std::string> &allGeomName);
39 int readSection(
int iSect,
const std::vector<MVertex *> &allVert,
40 const std::vector<SPoint3> &rawNode,
41 std::map<
int, std::vector<MElement *> > *allElt,
42 std::vector<MElement *> &zoneElt);
45 inline void CGNSZoneUnstruct::eltFromRange(
const cgsize_t *range,
46 std::vector<cgsize_t> &elt)
const
48 UnstructuredIndexing::entFromRange(range, elt);
51 inline void CGNSZoneUnstruct::eltFromList(
const std::vector<cgsize_t> &list,
52 std::vector<cgsize_t> &elt)
const
54 UnstructuredIndexing::entFromList(list, elt);
57 inline void CGNSZoneUnstruct::nodeFromRange(
const cgsize_t *range,
58 std::vector<cgsize_t> &node)
const
60 UnstructuredIndexing::entFromRange(range, node);
63 inline void CGNSZoneUnstruct::nodeFromList(
const std::vector<cgsize_t> &list,
64 std::vector<cgsize_t> &node)
const
66 UnstructuredIndexing::entFromList(list, node);
69 #endif // HAVE_LIBCGNS
71 #endif // CGNS_ZONE_UNSTRUCT_H