mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-16 04:11:26 +05:00
initialize _nbSegments
This commit is contained in:
parent
2a48859bbc
commit
9f57d8b5e9
@ -44,7 +44,7 @@ using namespace std;
|
|||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
* default constructor:
|
* Constructor
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
@ -53,12 +53,12 @@ SMESH_Gen::SMESH_Gen()
|
|||||||
MESSAGE("SMESH_Gen::SMESH_Gen");
|
MESSAGE("SMESH_Gen::SMESH_Gen");
|
||||||
_localId = 0;
|
_localId = 0;
|
||||||
_hypId = 0;
|
_hypId = 0;
|
||||||
_segmentation = 10;
|
_segmentation = _nbSegments = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
*
|
* Destructor
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
@ -69,36 +69,8 @@ SMESH_Gen::~SMESH_Gen()
|
|||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
*
|
* Creates a mesh in a study.
|
||||||
*/
|
* if (theIsEmbeddedMode) { mesh modification commands are not logged }
|
||||||
//=============================================================================
|
|
||||||
|
|
||||||
/*SMESH_Hypothesis *SMESH_Gen::CreateHypothesis(const char *anHyp, int studyId)
|
|
||||||
throw(SALOME_Exception)
|
|
||||||
{
|
|
||||||
|
|
||||||
MESSAGE("CreateHypothesis("<<anHyp<<","<<studyId<<")");
|
|
||||||
// Get studyContext, create it if it does'nt exist, with a SMESHDS_Document
|
|
||||||
|
|
||||||
StudyContextStruct *myStudyContext = GetStudyContext(studyId);
|
|
||||||
|
|
||||||
// create a new hypothesis object, store its ref. in studyContext
|
|
||||||
|
|
||||||
SMESH_Hypothesis *myHypothesis = _hypothesisFactory.Create(anHyp, studyId);
|
|
||||||
int hypId = myHypothesis->GetID();
|
|
||||||
myStudyContext->mapHypothesis[hypId] = myHypothesis;
|
|
||||||
SCRUTE(studyId);
|
|
||||||
SCRUTE(hypId);
|
|
||||||
|
|
||||||
// store hypothesis in SMESHDS document
|
|
||||||
|
|
||||||
myStudyContext->myDocument->AddHypothesis(myHypothesis);
|
|
||||||
return myHypothesis;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
@ -786,7 +758,7 @@ bool SMESH_Gen::IsGlobalHypothesis(const SMESH_Hypothesis* theHyp, SMESH_Mesh& a
|
|||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
*
|
* Finds algo to mesh a shape. Optionally returns a shape the found algo is bound to
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
@ -794,7 +766,6 @@ SMESH_Algo *SMESH_Gen::GetAlgo(SMESH_Mesh & aMesh,
|
|||||||
const TopoDS_Shape & aShape,
|
const TopoDS_Shape & aShape,
|
||||||
TopoDS_Shape* assignedTo)
|
TopoDS_Shape* assignedTo)
|
||||||
{
|
{
|
||||||
|
|
||||||
SMESH_HypoFilter filter( SMESH_HypoFilter::IsAlgo() );
|
SMESH_HypoFilter filter( SMESH_HypoFilter::IsAlgo() );
|
||||||
filter.And( filter.IsApplicableTo( aShape ));
|
filter.And( filter.IsApplicableTo( aShape ));
|
||||||
|
|
||||||
@ -803,7 +774,7 @@ SMESH_Algo *SMESH_Gen::GetAlgo(SMESH_Mesh & aMesh,
|
|||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
*
|
* Returns StudyContextStruct for a study
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
@ -817,45 +788,14 @@ StudyContextStruct *SMESH_Gen::GetStudyContext(int studyId)
|
|||||||
_mapStudyContext[studyId]->myDocument = new SMESHDS_Document(studyId);
|
_mapStudyContext[studyId]->myDocument = new SMESHDS_Document(studyId);
|
||||||
}
|
}
|
||||||
StudyContextStruct *myStudyContext = _mapStudyContext[studyId];
|
StudyContextStruct *myStudyContext = _mapStudyContext[studyId];
|
||||||
// ASSERT(_mapStudyContext.find(studyId) != _mapStudyContext.end());
|
|
||||||
return myStudyContext;
|
return myStudyContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
// //=============================================================================
|
//================================================================================
|
||||||
// /*!
|
|
||||||
// *
|
|
||||||
// */
|
|
||||||
// //=============================================================================
|
|
||||||
|
|
||||||
// void SMESH_Gen::Save(int studyId, const char *aUrlOfFile)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
|
|
||||||
// //=============================================================================
|
|
||||||
// /*!
|
|
||||||
// *
|
|
||||||
// */
|
|
||||||
// //=============================================================================
|
|
||||||
|
|
||||||
// void SMESH_Gen::Load(int studyId, const char *aUrlOfFile)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
|
|
||||||
// //=============================================================================
|
|
||||||
// /*!
|
|
||||||
// *
|
|
||||||
// */
|
|
||||||
// //=============================================================================
|
|
||||||
|
|
||||||
// void SMESH_Gen::Close(int studyId)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
|
|
||||||
//=============================================================================
|
|
||||||
/*!
|
/*!
|
||||||
*
|
* \brief Return shape dimension by TopAbs_ShapeEnum
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//================================================================================
|
||||||
|
|
||||||
int SMESH_Gen::GetShapeDim(const TopAbs_ShapeEnum & aShapeType)
|
int SMESH_Gen::GetShapeDim(const TopAbs_ShapeEnum & aShapeType)
|
||||||
{
|
{
|
||||||
@ -877,12 +817,11 @@ int SMESH_Gen::GetShapeDim(const TopAbs_ShapeEnum & aShapeType)
|
|||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
*
|
* Genarate a new id unique withing this Gen
|
||||||
*/
|
*/
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
int SMESH_Gen::GetANewId()
|
int SMESH_Gen::GetANewId()
|
||||||
{
|
{
|
||||||
//MESSAGE("SMESH_Gen::GetANewId");
|
|
||||||
return _hypId++;
|
return _hypId++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user