1 // Copyright (C) 2007-2014 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // File : BLSURFPlugin_Hypothesis.hxx
22 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
23 // & Aurelien ALLEAUME (DISTENE)
24 // Size maps developement: Nicolas GEIMER (OCC) & Gilles DAVID (EURIWARE)
27 #ifndef _BLSURFPlugin_Hypothesis_HXX_
28 #define _BLSURFPlugin_Hypothesis_HXX_
30 #include "SMESH_Hypothesis.hxx"
38 #include <utilities.h>
39 #include "BLSURFPlugin_Attractor.hxx"
41 // Parameters for work of MG-CADSurf
43 class BLSURFPlugin_Hypothesis: public SMESH_Hypothesis
46 BLSURFPlugin_Hypothesis(int hypId, int studyId, SMESH_Gen * gen);
63 GeometricalGlobalSize,
67 static const char* GetHypType() { return "MG-CADSurf Parameters"; }
69 TopoDS_Shape entryToShape(std::string entry);
71 void SetPhysicalMesh(PhysicalMesh thePhysicalMesh);
72 PhysicalMesh GetPhysicalMesh() const { return _physicalMesh; }
74 void SetGeometricMesh(GeometricMesh theGeometricMesh);
75 GeometricMesh GetGeometricMesh() const { return _geometricMesh; }
77 void SetPhySize(double thePhySize, bool isRelative = false);
78 double GetPhySize() const { return _phySize; }
79 bool IsPhySizeRel() const { return _phySizeRel; }
81 void SetMinSize(double theMinSize, bool isRelative = false);
82 double GetMinSize() const { return _minSize; }
83 bool IsMinSizeRel() const { return _minSizeRel; }
85 void SetMaxSize(double theMaxSize, bool isRelative = false);
86 double GetMaxSize() const { return _maxSize; }
87 bool IsMaxSizeRel() const { return _maxSizeRel; }
89 void SetGradation(double theGradation);
90 double GetGradation() const { return _gradation; }
92 void SetQuadAllowed(bool theVal);
93 bool GetQuadAllowed() const { return _quadAllowed; }
95 void SetAngleMesh(double theAngle);
96 double GetAngleMesh() const { return _angleMesh; }
98 void SetChordalError(double theDistance);
99 double GetChordalError() const { return _chordalError; }
101 void SetAnisotropic(bool theVal);
102 bool GetAnisotropic() const { return _anisotropic; }
104 void SetAnisotropicRatio(double theVal);
105 double GetAnisotropicRatio() const { return _anisotropicRatio; }
107 void SetRemoveTinyEdges(bool theVal);
108 bool GetRemoveTinyEdges() const { return _removeTinyEdges; }
110 void SetTinyEdgeLength(double theVal);
111 double GetTinyEdgeLength() const { return _tinyEdgeLength; }
113 void SetBadElementRemoval(bool theVal);
114 bool GetBadElementRemoval() const { return _badElementRemoval; }
116 void SetBadElementAspectRatio(double theVal);
117 double GetBadElementAspectRatio() const { return _badElementAspectRatio; }
119 void SetOptimizeMesh(bool theVal);
120 bool GetOptimizeMesh() const { return _optimizeMesh; }
122 void SetQuadraticMesh(bool theVal);
123 bool GetQuadraticMesh() const { return _quadraticMesh; }
125 void SetTopology(Topology theTopology);
126 Topology GetTopology() const { return _topology; }
128 void SetVerbosity(int theVal);
129 int GetVerbosity() const { return _verb; }
131 void ClearEntry(const std::string& entry, const char * attEntry = 0);
132 void ClearSizeMaps();
134 void SetPreCADMergeEdges(bool theVal);
135 bool GetPreCADMergeEdges() const { return _preCADMergeEdges; }
137 void SetPreCADProcess3DTopology(bool theVal);
138 bool GetPreCADProcess3DTopology() const { return _preCADProcess3DTopology; }
140 void SetPreCADDiscardInput(bool theVal);
141 bool GetPreCADDiscardInput() const { return _preCADDiscardInput; }
143 typedef std::map<std::string,std::string> TSizeMap;
145 void SetSizeMapEntry(const std::string& entry,const std::string& sizeMap );
146 std::string GetSizeMapEntry(const std::string& entry);
147 const TSizeMap& _GetSizeMapEntries() const { return _sizeMap; }
149 * \brief Return the size maps
151 static TSizeMap GetSizeMapEntries(const BLSURFPlugin_Hypothesis* hyp);
154 void SetAttractorEntry(const std::string& entry,const std::string& attractor );
155 std::string GetAttractorEntry(const std::string& entry);
156 const TSizeMap& _GetAttractorEntries() const { return _attractors; };
158 * \brief Return the attractors
160 static TSizeMap GetAttractorEntries(const BLSURFPlugin_Hypothesis* hyp);
164 void SetCustomSizeMapEntry(const std::string& entry,const std::string& sizeMap );
165 std::string GetCustomSizeMapEntry(const std::string& entry);
166 void UnsetCustomSizeMap(const std::string& entry);
167 const TSizeMap& GetCustomSizeMapEntries() const { return _customSizeMap; }
170 typedef std::multimap< std::string, BLSURFPlugin_Attractor* > TAttractorMap;
171 typedef std::map< std::string, std::vector<double> > TParamsMap; //TODO à finir
173 void SetClassAttractorEntry(const std::string& entry, const std::string& att_entry, double StartSize, double EndSize, double ActionRadius, double ConstantRadius);
174 std::string GetClassAttractorEntry(const std::string& entry);
175 const TAttractorMap& _GetClassAttractorEntries() const { return _classAttractors; }
177 * \brief Return the attractors entries
179 static TAttractorMap GetClassAttractorEntries(const BLSURFPlugin_Hypothesis* hyp);
182 * To set/get/unset an enforced vertex
185 typedef std::string TEnfName;
187 typedef std::string TEntry;
189 typedef std::set<TEntry> TEntryList;
191 typedef std::string TEnfGroupName;
193 typedef std::vector<double> TEnfVertexCoords;
194 typedef std::set< TEnfVertexCoords > TEnfVertexCoordsList;
200 TEnfVertexCoords coords;
201 TEnfGroupName grpName;
202 TEntryList faceEntries;
203 TopoDS_Vertex vertex;
206 struct CompareEnfVertices
208 bool operator () (const TEnfVertex* e1, const TEnfVertex* e2) const {
210 if (e1->coords.size() && e2->coords.size())
211 return (e1->coords < e2->coords);
213 return (e1->geomEntry < e2->geomEntry);
219 // PreCad Face and Edge periodicity
220 struct TPreCadPeriodicity {
223 std::vector<std::string> theSourceVerticesEntries;
224 std::vector<std::string> theTargetVerticesEntries;
228 struct TEdgePeriodicity {
229 TEntry theFace1Entry;
230 TEntry theEdge1Entry;
231 TEntry theFace2Entry;
232 TEntry theEdge2Entry;
233 int edge_orientation;
236 // Vertex periodicity
237 struct TVertexPeriodicity {
238 TEntry theEdge1Entry;
239 TEntry theVertex1Entry;
240 TEntry theEdge2Entry;
241 TEntry theVertex2Entry;
244 typedef std::pair< TEntry, TEntry > TFacesPeriodicity;
246 // List of enforced vertices
247 typedef std::set< TEnfVertex*, CompareEnfVertices > TEnfVertexList;
249 // Map Face Entry / List of enforced vertices
250 typedef std::map< TEntry, TEnfVertexList > TFaceEntryEnfVertexListMap;
252 // List of Face Entry with internal enforced vertices activated
253 typedef std::set< TEntry > TFaceEntryInternalVerticesList;
255 // Map Face Entry / List of coords
256 typedef std::map< TEntry, TEnfVertexCoordsList > TFaceEntryCoordsListMap;
258 // Map Face Entry / List of Vertex entry
259 typedef std::map< TEntry, TEntryList > TFaceEntryEnfVertexEntryListMap;
261 // Map Coords / Enforced vertex
262 typedef std::map< TEnfVertexCoords, TEnfVertex* > TCoordsEnfVertexMap;
264 // Map Vertex entry / Enforced vertex
265 typedef std::map< TEntry, TEnfVertex* > TEnfVertexEntryEnfVertexMap;
267 typedef std::map< TEnfGroupName, std::set<int> > TGroupNameNodeIDMap;
269 // Map Group Name / List of enforced vertices
270 typedef std::map< TEnfGroupName , TEnfVertexList > TGroupNameEnfVertexListMap;
273 // Vector of pairs of entries
274 typedef std::vector< TPreCadPeriodicity > TPreCadPeriodicityVector;
275 typedef std::vector< TFacesPeriodicity > TFacesPeriodicityVector;
276 typedef std::vector< TEdgePeriodicity > TEdgesPeriodicityVector;
277 typedef std::vector< TVertexPeriodicity > TVerticesPeriodicityVector;
280 bool SetEnforcedVertex(TEntry theFaceEntry, TEnfName theVertexName, TEntry theVertexEntry, TEnfGroupName theGroupName,
281 double x = 0.0, double y = 0.0, double z = 0.0);
282 TEnfVertexList GetEnfVertexList(const TEntry& theFaceEntry) throw (std::invalid_argument);
283 TEnfVertexCoordsList GetEnfVertexCoordsList(const TEntry& theFaceEntry) throw (std::invalid_argument);
284 TEntryList GetEnfVertexEntryList (const TEntry& theFaceEntry) throw (std::invalid_argument);
285 TEnfVertex* GetEnfVertex(TEnfVertexCoords coords) throw (std::invalid_argument);
286 TEnfVertex* GetEnfVertex(const TEntry& theEnfVertexEntry) throw (std::invalid_argument);
287 void AddEnfVertexNodeID(TEnfGroupName theGroupName,int theNodeID);
288 std::set<int> GetEnfVertexNodeIDs(TEnfGroupName theGroupName) throw (std::invalid_argument);
289 void RemoveEnfVertexNodeID(TEnfGroupName theGroupName,int theNodeID) throw (std::invalid_argument);
291 bool ClearEnforcedVertex(const TEntry& theFaceEntry, double x = 0.0, double y = 0.0, double z = 0.0, const TEntry& theVertexEntry="") throw (std::invalid_argument);
292 bool ClearEnforcedVertices(const TEntry& theFaceEntry) throw (std::invalid_argument);
294 void ClearAllEnforcedVertices();
296 const TFaceEntryEnfVertexListMap _GetAllEnforcedVerticesByFace() const { return _faceEntryEnfVertexListMap; }
297 const TEnfVertexList _GetAllEnforcedVertices() const { return _enfVertexList; }
299 const TFaceEntryCoordsListMap _GetAllCoordsByFace() const { return _faceEntryCoordsListMap; }
300 const TCoordsEnfVertexMap _GetAllEnforcedVerticesByCoords() const { return _coordsEnfVertexMap; }
302 const TFaceEntryEnfVertexEntryListMap _GetAllEnfVertexEntriesByFace() const { return _faceEntryEnfVertexEntryListMap; }
303 const TEnfVertexEntryEnfVertexMap _GetAllEnforcedVerticesByEnfVertexEntry() const { return _enfVertexEntryEnfVertexMap; }
306 // const TEnfVertexGroupNameMap _GetEnforcedVertexGroupNameMap() const { return _enfVertexGroupNameMap; }
310 * \brief Return the enforced vertices
312 static TFaceEntryEnfVertexListMap GetAllEnforcedVerticesByFace(const BLSURFPlugin_Hypothesis* hyp);
313 static TEnfVertexList GetAllEnforcedVertices(const BLSURFPlugin_Hypothesis* hyp);
315 static TFaceEntryCoordsListMap GetAllCoordsByFace(const BLSURFPlugin_Hypothesis* hyp);
316 static TCoordsEnfVertexMap GetAllEnforcedVerticesByCoords(const BLSURFPlugin_Hypothesis* hyp);
318 static TFaceEntryEnfVertexEntryListMap GetAllEnfVertexEntriesByFace(const BLSURFPlugin_Hypothesis* hyp);
319 static TEnfVertexEntryEnfVertexMap GetAllEnforcedVerticesByEnfVertexEntry(const BLSURFPlugin_Hypothesis* hyp);
322 * \brief Internal enforced vertices
324 void SetInternalEnforcedVertexAllFaces(bool toEnforceInternalVertices);
325 const bool _GetInternalEnforcedVertexAllFaces() const { return _enforcedInternalVerticesAllFaces; }
326 static bool GetInternalEnforcedVertexAllFaces( const BLSURFPlugin_Hypothesis* hyp );
327 void SetInternalEnforcedVertexAllFacesGroup(TEnfGroupName theGroupName);
328 const TEnfGroupName _GetInternalEnforcedVertexAllFacesGroup() const { return _enforcedInternalVerticesAllFacesGroup; }
329 static TEnfGroupName GetInternalEnforcedVertexAllFacesGroup( const BLSURFPlugin_Hypothesis* hyp );
331 // Enable internal enforced vertices on specific face if requested by user
332 // static TFaceEntryInternalVerticesList GetDefaultFaceEntryInternalVerticesMap() { return TFaceEntryInternalVerticesList(); }
333 // const TFaceEntryInternalVerticesList _GetAllInternalEnforcedVerticesByFace() const { return _faceEntryInternalVerticesList; }
334 // static TFaceEntryInternalVerticesList GetAllInternalEnforcedVerticesByFace(const BLSURFPlugin_Hypothesis* hyp);
335 // void SetInternalEnforcedVertex(TEntry theFaceEntry, bool toEnforceInternalVertices, TEnfGroupName theGroupName);
336 // bool GetInternalEnforcedVertex(const TEntry& theFaceEntry);
338 static PhysicalMesh GetDefaultPhysicalMesh() { return PhysicalGlobalSize; }
339 static GeometricMesh GetDefaultGeometricMesh() { return DefaultGeom; }
340 static double GetDefaultPhySize(double diagonal, double bbSegmentation);
341 static double GetDefaultPhySize() { return undefinedDouble(); }
342 static bool GetDefaultPhySizeRel() { return false; }
343 static double GetDefaultMinSize(double diagonal);
344 static double GetDefaultMinSize() { return undefinedDouble(); }
345 static bool GetDefaultMinSizeRel() { return false; }
346 static double GetDefaultMaxSize(double diagonal);
347 static double GetDefaultMaxSize() { return undefinedDouble(); }
348 static bool GetDefaultMaxSizeRel() { return false; }
349 static double GetDefaultGradation() { return 1.3; }
350 static bool GetDefaultQuadAllowed() { return false; }
351 static double GetDefaultAngleMesh() { return 22.0; }
353 static double GetDefaultChordalError(double diagonal);
354 static double GetDefaultChordalError() { return undefinedDouble(); }
355 static bool GetDefaultAnisotropic() { return false; }
356 static double GetDefaultAnisotropicRatio() { return 0.0; }
357 static bool GetDefaultRemoveTinyEdges() { return false; }
358 static double GetDefaultTinyEdgeLength(double diagonal);
359 static double GetDefaultTinyEdgeLength() { return undefinedDouble(); }
360 static bool GetDefaultBadElementRemoval() { return false; }
361 static double GetDefaultBadElementAspectRatio() {return 1000.0; }
362 static bool GetDefaultOptimizeMesh() { return true; }
363 static bool GetDefaultQuadraticMesh() { return false; }
365 static int GetDefaultVerbosity() { return 3; }
366 // Since Salome 7.5.0 and MeshGems 1.3, the default behaviour is to use PreCAD with all options at false
367 static Topology GetDefaultTopology() { return PreCAD; }
369 static bool GetDefaultPreCADMergeEdges() { return false; }
370 static bool GetDefaultPreCADProcess3DTopology() { return false; }
371 static bool GetDefaultPreCADDiscardInput() { return false; }
373 static TSizeMap GetDefaultSizeMap() { return TSizeMap();}
374 static TAttractorMap GetDefaultAttractorMap() { return TAttractorMap(); }
376 static TFaceEntryEnfVertexListMap GetDefaultFaceEntryEnfVertexListMap() { return TFaceEntryEnfVertexListMap(); }
377 static TEnfVertexList GetDefaultEnfVertexList() { return TEnfVertexList(); }
378 static TFaceEntryCoordsListMap GetDefaultFaceEntryCoordsListMap() { return TFaceEntryCoordsListMap(); }
379 static TCoordsEnfVertexMap GetDefaultCoordsEnfVertexMap() { return TCoordsEnfVertexMap(); }
380 static TFaceEntryEnfVertexEntryListMap GetDefaultFaceEntryEnfVertexEntryListMap() { return TFaceEntryEnfVertexEntryListMap(); }
381 static TEnfVertexEntryEnfVertexMap GetDefaultEnfVertexEntryEnfVertexMap() { return TEnfVertexEntryEnfVertexMap(); }
382 static TGroupNameNodeIDMap GetDefaultGroupNameNodeIDMap() { return TGroupNameNodeIDMap(); }
384 static bool GetDefaultInternalEnforcedVertex() { return false; }
387 static TGroupNameEnfVertexListMap GetDefaultGroupNameEnfVertexListMap() { return TGroupNameEnfVertexListMap(); }
388 static TEnfVertexGroupNameMap GetDefaultEnfVertexGroupNameMap() { return TEnfVertexGroupNameMap(); }
391 // const TPreCadPeriodicityEntriesVector _GetPreCadFacesPeriodicityEntries() const { return _preCadFacesPeriodicityEntriesVector; }
393 static TPreCadPeriodicityVector GetDefaultPreCadFacesPeriodicityVector() { return TPreCadPeriodicityVector(); }
394 const TPreCadPeriodicityVector _GetPreCadFacesPeriodicityVector() const { return _preCadFacesPeriodicityVector; }
395 static TPreCadPeriodicityVector GetPreCadFacesPeriodicityVector(const BLSURFPlugin_Hypothesis* hyp);
397 static TPreCadPeriodicityVector GetDefaultPreCadEdgesPeriodicityVector() { return TPreCadPeriodicityVector(); }
398 const TPreCadPeriodicityVector _GetPreCadEdgesPeriodicityVector() const { return _preCadEdgesPeriodicityVector; }
399 static TPreCadPeriodicityVector GetPreCadEdgesPeriodicityVector(const BLSURFPlugin_Hypothesis* hyp);
401 static TFacesPeriodicityVector GetDefaultFacesPeriodicityVector() { return TFacesPeriodicityVector(); }
402 const TFacesPeriodicityVector _GetFacesPeriodicityVector() const { return _facesPeriodicityVector; }
403 static TFacesPeriodicityVector GetFacesPeriodicityVector(const BLSURFPlugin_Hypothesis* hyp);
405 static TEdgesPeriodicityVector GetDefaultEdgesPeriodicityVector() { return TEdgesPeriodicityVector(); }
406 const TEdgesPeriodicityVector _GetEdgesPeriodicityVector() const { return _edgesPeriodicityVector; }
407 static TEdgesPeriodicityVector GetEdgesPeriodicityVector(const BLSURFPlugin_Hypothesis* hyp);
409 static TVerticesPeriodicityVector GetDefaultVerticesPeriodicityVector() { return TVerticesPeriodicityVector(); }
410 const TVerticesPeriodicityVector _GetVerticesPeriodicityVector() const { return _verticesPeriodicityVector; }
411 static TVerticesPeriodicityVector GetVerticesPeriodicityVector(const BLSURFPlugin_Hypothesis* hyp);
413 void ClearPreCadPeriodicityVectors();
415 void AddPreCadFacesPeriodicity(TEntry theFace1Entry, TEntry theFace2Entry,
416 std::vector<std::string> &theSourceVerticesEntries, std::vector<std::string> &theTargetVerticesEntries);
417 void AddPreCadEdgesPeriodicity(TEntry theEdge1Entry, TEntry theEdge2Entry,
418 std::vector<std::string> &theSourceVerticesEntries, std::vector<std::string> &theTargetVerticesEntries);
420 void AddFacePeriodicity(TEntry theFace1Entry, TEntry theFace2Entry);
421 void AddEdgePeriodicity(TEntry theFace1Entry, TEntry theEdge1Entry, TEntry theFace2Entry, TEntry theEdge2Entry, int edge_orientation = 0);
422 void AddVertexPeriodicity(TEntry theEdge1Entry, TEntry theVertex1Entry, TEntry theEdge2Entry, TEntry theVertex2Entry);
424 static double undefinedDouble() { return -1.0; }
426 typedef std::map< std::string, std::string > TOptionValues;
427 typedef std::set< std::string > TOptionNames;
429 void SetOptionValue(const std::string& optionName,
430 const std::string& optionValue) throw (std::invalid_argument);
431 void SetPreCADOptionValue(const std::string& optionName,
432 const std::string& optionValue) throw (std::invalid_argument);
433 std::string GetOptionValue(const std::string& optionName) throw (std::invalid_argument);
434 std::string GetPreCADOptionValue(const std::string& optionName) throw (std::invalid_argument);
435 void ClearOption(const std::string& optionName);
436 void ClearPreCADOption(const std::string& optionName);
437 const TOptionValues& GetOptionValues() const { return _option2value; }
438 const TOptionValues& GetPreCADOptionValues() const { return _preCADoption2value; }
441 * Sets the file for export resulting mesh in GMF format
443 // void SetGMFFile(const std::string& theFileName, bool isBinary);
444 void SetGMFFile(const std::string& theFileName);
445 std::string GetGMFFile() const { return _GMFFileName; }
446 static std::string GetDefaultGMFFile() { return "";}
447 // bool GetGMFFileMode() const { return _GMFFileMode; }
450 virtual std::ostream & SaveTo(std::ostream & save);
451 virtual std::istream & LoadFrom(std::istream & load);
452 friend std::ostream & operator <<(std::ostream & save, BLSURFPlugin_Hypothesis & hyp);
453 friend std::istream & operator >>(std::istream & load, BLSURFPlugin_Hypothesis & hyp);
456 * \brief Does nothing
457 * \param theMesh - the built mesh
458 * \param theShape - the geometry of interest
459 * \retval bool - always false
461 virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape);
464 * \brief Initialize my parameter values by default parameters.
465 * \retval bool - true if parameter values have been successfully defined
467 virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0);
471 PhysicalMesh _physicalMesh;
472 GeometricMesh _geometricMesh;
475 double _minSize, _maxSize;
476 bool _minSizeRel, _maxSizeRel;
480 double _chordalError;
482 double _anisotropicRatio;
483 bool _removeTinyEdges;
484 double _tinyEdgeLength;
485 bool _badElementRemoval;
486 double _badElementAspectRatio;
492 bool _preCADMergeEdges;
493 bool _preCADProcess3DTopology;
494 bool _preCADDiscardInput;
495 double _preCADEpsNano;
497 TOptionValues _option2value, _preCADoption2value;
498 TOptionNames _doubleOptions, _charOptions;
499 TOptionNames _preCADdoubleOptions, _preCADcharOptions;
501 TSizeMap _attractors;
502 TAttractorMap _classAttractors;
504 TParamsMap _attParams;
506 TFaceEntryEnfVertexListMap _faceEntryEnfVertexListMap;
507 TEnfVertexList _enfVertexList;
508 // maps to get "manual" enf vertex (through their coordinates)
509 TFaceEntryCoordsListMap _faceEntryCoordsListMap;
510 TCoordsEnfVertexMap _coordsEnfVertexMap;
511 // maps to get "geom" enf vertex (through their geom entries)
512 TFaceEntryEnfVertexEntryListMap _faceEntryEnfVertexEntryListMap;
513 TEnfVertexEntryEnfVertexMap _enfVertexEntryEnfVertexMap;
514 TGroupNameNodeIDMap _groupNameNodeIDMap;
516 // Enable internal enforced vertices on specific face if requested by user
517 // TFaceEntryInternalVerticesList _faceEntryInternalVerticesList;
518 bool _enforcedInternalVerticesAllFaces;
519 TEnfGroupName _enforcedInternalVerticesAllFacesGroup;
521 TPreCadPeriodicityVector _preCadFacesPeriodicityVector;
522 TPreCadPeriodicityVector _preCadEdgesPeriodicityVector;
524 TFacesPeriodicityVector _facesPeriodicityVector;
525 TEdgesPeriodicityVector _edgesPeriodicityVector;
526 TVerticesPeriodicityVector _verticesPeriodicityVector;
528 // Called by SaveTo to store content of _preCadFacesPeriodicityVector and _preCadEdgesPeriodicityVector
529 void SavePreCADPeriodicity(std::ostream & save, const char* shapeType);
531 // Called by LoadFrom to fill _preCadFacesPeriodicityVector and _preCadEdgesPeriodicityVector
532 void LoadPreCADPeriodicity(std::istream & load, const char* shapeType);
534 // Called by LoadFrom to fill _facesPeriodicityVector
535 void LoadFacesPeriodicity(std::istream & load);
537 // Called by LoadFrom to fill _edgesPeriodicityVector
538 void LoadEdgesPeriodicity(std::istream & load);
540 // Called by LoadFrom to fill _verticesPeriodicityVector
541 void LoadVerticesPeriodicity(std::istream & load);
543 // Called by SaveTo to store content of _facesPeriodicityVector
544 void SaveFacesPeriodicity(std::ostream & save);
546 // Called by SaveTo to store content of _edgesPeriodicityVector
547 void SaveEdgesPeriodicity(std::ostream & save);
549 // Called by SaveTo to store content of _verticesPeriodicityVector
550 void SaveVerticesPeriodicity(std::ostream & save);
552 std::string _GMFFileName;
553 // bool _GMFFileMode;
555 // TSizeMap _customSizeMap;