-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2016 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
CORBA::Double GetMaxSize();
CORBA::Boolean IsMaxSizeRel();
+ void SetUseGradation(CORBA::Boolean theValue);
+ CORBA::Boolean GetUseGradation();
void SetGradation(CORBA::Double theValue);
CORBA::Double GetGradation();
+ void SetUseVolumeGradation(CORBA::Boolean theValue);
+ CORBA::Boolean GetUseVolumeGradation();
+ void SetVolumeGradation(CORBA::Double theValue);
+ CORBA::Double GetVolumeGradation();
+
void SetQuadAllowed(CORBA::Boolean theValue);
CORBA::Boolean GetQuadAllowed();
void SetAngleMesh(CORBA::Double theValue);
CORBA::Double GetAngleMesh();
-
+
void SetChordalError(CORBA::Double distance);
CORBA::Double GetChordalError();
-
+
void SetAnisotropic(CORBA::Boolean anisotropic);
CORBA::Boolean GetAnisotropic();
-
+
void SetAnisotropicRatio(CORBA::Double ratio);
CORBA::Double GetAnisotropicRatio();
-
+
void SetRemoveTinyEdges(CORBA::Boolean remove);
CORBA::Boolean GetRemoveTinyEdges();
-
+
void SetTinyEdgeLength(CORBA::Double length);
CORBA::Double GetTinyEdgeLength();
-
+
+ void SetOptimiseTinyEdges(CORBA::Boolean toOptimise);
+ CORBA::Boolean GetOptimiseTinyEdges();
+
+ void SetTinyEdgeOptimisationLength(CORBA::Double length);
+ CORBA::Double GetTinyEdgeOptimisationLength();
+
+ void SetCorrectSurfaceIntersection(CORBA::Boolean toOptimise);
+ CORBA::Boolean GetCorrectSurfaceIntersection();
+
+ void SetCorrectSurfaceIntersectionMaxCost(CORBA::Double maxCost);
+ CORBA::Double GetCorrectSurfaceIntersectionMaxCost();
+
void SetBadElementRemoval(CORBA::Boolean remove);
CORBA::Boolean GetBadElementRemoval();
-
+
void SetBadElementAspectRatio(CORBA::Double ratio);
CORBA::Double GetBadElementAspectRatio();
-
+
void SetOptimizeMesh(CORBA::Boolean optimize);
CORBA::Boolean GetOptimizeMesh();
-
+
void SetQuadraticMesh(CORBA::Boolean quadratic);
CORBA::Boolean GetQuadraticMesh();
void SetVerbosity(CORBA::Short theVal) throw (SALOME::SALOME_Exception);
CORBA::Short GetVerbosity();
+ void SetEnforceCadEdgesSize( CORBA::Boolean toEnforce );
+ CORBA::Boolean GetEnforceCadEdgesSize();
+
+ void SetJacobianRectificationRespectGeometry( CORBA::Boolean allowRectification );
+ CORBA::Boolean GetJacobianRectificationRespectGeometry();
+
+ void SetJacobianRectification( CORBA::Boolean allowRectification );
+ CORBA::Boolean GetJacobianRectification();
+
+ void SetMaxNumberOfPointsPerPatch( CORBA::Long nb ) throw (SALOME::SALOME_Exception);
+ CORBA::Long GetMaxNumberOfPointsPerPatch();
+
+ void SetRespectGeometry( CORBA::Boolean toRespect );
+ CORBA::Boolean GetRespectGeometry();
+
+ void SetTinyEdgesAvoidSurfaceIntersections( CORBA::Boolean toAvoidIntersection );
+ CORBA::Boolean GetTinyEdgesAvoidSurfaceIntersections();
+
+ void SetClosedGeometry( CORBA::Boolean isClosed );
+ CORBA::Boolean GetClosedGeometry();
+
+ void SetDebug( CORBA::Boolean isDebug );
+ bool GetDebug();
+
+ void SetPeriodicTolerance( CORBA::Double tol ) throw (SALOME::SALOME_Exception);
+ double GetPeriodicTolerance() throw (SALOME::SALOME_Exception);
+
+ void SetRequiredEntities( const char* howToTreat ) throw (SALOME::SALOME_Exception);
+ char* GetRequiredEntities();
+
+ void SetSewingTolerance( CORBA::Double tol ) throw (SALOME::SALOME_Exception);
+ CORBA::Double GetSewingTolerance() throw (SALOME::SALOME_Exception);
+
+ void SetTags( const char* howToTreat ) throw (SALOME::SALOME_Exception);
+ char* GetTags();
+
void SetPreCADMergeEdges(CORBA::Boolean theValue);
CORBA::Boolean GetPreCADMergeEdges();
+ void SetPreCADRemoveTinyUVEdges(CORBA::Boolean theValue);
+ CORBA::Boolean GetPreCADRemoveTinyUVEdges();
+
+ void SetPreCADRemoveDuplicateCADFaces(CORBA::Boolean theValue);
+ CORBA::Boolean GetPreCADRemoveDuplicateCADFaces();
+
void SetPreCADProcess3DTopology(CORBA::Boolean theValue);
CORBA::Boolean GetPreCADProcess3DTopology();
BLSURFPlugin::string_array* GetOptionValues();
BLSURFPlugin::string_array* GetPreCADOptionValues();
+ BLSURFPlugin::string_array* GetAdvancedOptionValues();
void SetOptionValues(const BLSURFPlugin::string_array& options) throw (SALOME::SALOME_Exception);
void SetPreCADOptionValues(const BLSURFPlugin::string_array& options) throw (SALOME::SALOME_Exception);
+ void SetAdvancedOptionValues(const BLSURFPlugin::string_array& options);
+ void SetAdvancedOption(const char* optionsAndValues) throw (SALOME::SALOME_Exception);
+
+ void AddOption(const char* optionName, const char* optionValue);
+ void AddPreCADOption(const char* optionName, const char* optionValue);
+ char* GetOption(const char* optionName);
+ char* GetPreCADOption(const char* optionName);
void SetSizeMapEntry(const char* entry, const char* sizeMap) throw (SALOME::SALOME_Exception);
void SetSizeMapEntries(const BLSURFPlugin::string_array& sizeMaps) throw (SALOME::SALOME_Exception);
- void SetSizeMap(GEOM::GEOM_Object_ptr GeomObj, const char* sizeMap);
+ void SetSizeMap(GEOM::GEOM_Object_ptr GeomObj, const char* sizeMap) throw (SALOME::SALOME_Exception);
void SetConstantSizeMap(GEOM::GEOM_Object_ptr GeomObj, CORBA::Double sizeMap);
void SetAttractorGeom(GEOM::GEOM_Object_ptr GeomObj, GEOM::GEOM_Object_ptr Attractor, CORBA::Double StartSize, CORBA::Double EndSize, CORBA::Double ActionRadius, CORBA::Double ConstantRadius );
- void UnsetAttractorGeom(GEOM::GEOM_Object_ptr GeomObj);
+ void UnsetAttractorGeom(GEOM::GEOM_Object_ptr GeomObj,
+ GEOM::GEOM_Object_ptr theAttractor);
+ void UnsetAttractorEntry(const char* entry, const char* attractor);
void SetClassAttractorEntry(const char* entry, const char* att_entry, CORBA::Double StartSize, CORBA::Double EndSize, CORBA::Double ActionRadius, CORBA::Double ConstantRadius) throw (SALOME::SALOME_Exception);
BLSURFPlugin::TAttParamsMap* GetAttractorParams();
// CORBA::Boolean GetInternalEnforcedVertex(GEOM::GEOM_Object_ptr theFace) throw (SALOME::SALOME_Exception);
// CORBA::Boolean GetInternalEnforcedVertexEntry(const char* theFaceEntry) throw (SALOME::SALOME_Exception);
+ ///////////////////////
+ // PERIODICITY //
+ ///////////////////////
+
+ void ClearPreCadPeriodicityVectors();
+
+ BLSURFPlugin::TPeriodicityList* GetPreCadFacesPeriodicityVector();
+ BLSURFPlugin::TPeriodicityList* GetPreCadEdgesPeriodicityVector();
+
+ BLSURFPlugin::TPeriodicityList* PreCadVectorToSequence(const ::BLSURFPlugin_Hypothesis::TPreCadPeriodicityVector& preCadPeriodicityVector);
+
+ void AddPreCadFacesPeriodicity(GEOM::GEOM_Object_ptr theFace1, GEOM::GEOM_Object_ptr theFace2)
+ throw (SALOME::SALOME_Exception);
+
+ void AddPreCadFacesPeriodicityWithVertices(GEOM::GEOM_Object_ptr theFace1, GEOM::GEOM_Object_ptr theFace2,
+ const GEOM::ListOfGO& theSourceVertices, const GEOM::ListOfGO& theTargetVertices)
+ throw (SALOME::SALOME_Exception);
+
+ void AddPreCadFacesPeriodicityEntry(const char* theFace1Entry, const char* theFace2Entry,
+ const BLSURFPlugin::TEntryList& theSourceVerticesEntries, const BLSURFPlugin::TEntryList& theTargetVerticesEntries)
+ throw (SALOME::SALOME_Exception);
+
+ void AddPreCadEdgesPeriodicity(GEOM::GEOM_Object_ptr theEdge1, GEOM::GEOM_Object_ptr theEdge2)
+ throw (SALOME::SALOME_Exception);
+
+ void AddPreCadEdgesPeriodicityWithVertices(GEOM::GEOM_Object_ptr theEdge1, GEOM::GEOM_Object_ptr theEdge2,
+ const GEOM::ListOfGO& theSourceVertices, const GEOM::ListOfGO& theTargetVertices)
+ throw (SALOME::SALOME_Exception);
+
+ void AddPreCadEdgesPeriodicityEntry(const char* theEdge1Entry, const char* theEdge2Entry,
+ const BLSURFPlugin::TEntryList& theSourceVerticesEntries, const BLSURFPlugin::TEntryList& theTargetVerticesEntries)
+ throw (SALOME::SALOME_Exception);
+
///////////////////////
/*!
CORBA::Boolean GetPreCADRemoveNanoEdges();
void SetPreCADEpsNano(CORBA::Double epsNano);
CORBA::Double GetPreCADEpsNano();
+
+private:
+ ///////////////////////
+ // PERIODICITY //
+ ///////////////////////
+ std::string ShapeTypeToString(GEOM::shape_type theShapeType);
+ void CheckShapeType(GEOM::GEOM_Object_ptr shape, GEOM::shape_type theShapeType);
+ void CheckShapeTypes(GEOM::GEOM_Object_ptr shape, std::vector<GEOM::shape_type> theShapeTypes);
+ std::string PublishIfNeeded(GEOM::GEOM_Object_ptr shape, GEOM::shape_type theShapeType, std::string prefix);
+ std::string FormatVerticesEntries(std::vector<std::string> &theSourceVerticesEntries, std::vector<std::string> &theTargetVerticesEntries);
+
};
#endif