const BLSURFPlugin_Hypothesis* hyp,
cadsurf_session_t * css,
precad_session_t * pcs,
- SMESH_Mesh& mesh,
+ const TopoDS_Shape& GeomShape,
bool * use_precad
)
{
// Clear map so that it is not stored in the algorithm with old enforced vertices in it
EnfVertexCoords2EnfVertexList.clear();
- double diagonal = mesh.GetShapeDiagonalSize();
+ double diagonal = SMESH_Mesh::GetShapeDiagonalSize( GeomShape );
double bbSegmentation = _gen->GetBoundaryBoxSegmentation();
int _physicalMesh = BLSURFPlugin_Hypothesis::GetDefaultPhysicalMesh();
int _geometricMesh = BLSURFPlugin_Hypothesis::GetDefaultGeometricMesh();
if (useInternalVertexAllFaces) {
std::string grpName = BLSURFPlugin_Hypothesis::GetInternalEnforcedVertexAllFacesGroup(hyp);
MESSAGE("Setting Internal Enforced Vertices");
- GeomShape = mesh.GetShapeToMesh();
gp_Pnt aPnt;
TopExp_Explorer exp (GeomShape, TopAbs_FACE);
for (; exp.More(); exp.Next()){
// #if BLSURF_VERSION_LONG >= "3.1.1"
// c,
// #endif
- _hypothesis, css, pcs, aMesh, &use_precad);
+ _hypothesis, css, pcs, aShape, &use_precad);
MESSAGE("END SetParameters");
haveQuadraticSubMesh = haveQuadraticSubMesh || (_hypothesis != NULL && _hypothesis->GetQuadraticMesh());
const TopoDS_Shape& aShape,
SMESH_Hypothesis::Hypothesis_Status& aStatus);
- void SetParameters(const BLSURFPlugin_Hypothesis* hyp, blsurf_session_t *bls, precad_session_t *pcs, SMESH_Mesh& aMesh, bool *use_precad);
+ void SetParameters(const BLSURFPlugin_Hypothesis* hyp, blsurf_session_t *bls, precad_session_t *pcs, const TopoDS_Shape& shape, bool *use_precad);
virtual bool Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape);