_maxSize = hyp->GetMaxSize();
_secondOrder = hyp->GetSecondOrder();
_useIncomplElem = hyp->GetUseIncomplElem();
+ _verbLvl = hyp->GetVerbosityLevel();
_compounds = hyp->GetCompoundOnEntries();
+ // 6 in the enum corresponds to 99 in gmsh
+ if(_verbLvl == 6)
+ _verbLvl = 99;
}
else
{
for (auto const& ls : listElements)
{
// Add nodes of triangles and triangles them-selves to netgen mesh
- // add three nodes of
+ // add three nodes of
bool hasDegen = false;
for (int iN = 0; iN < 3; ++iN)
{
if (hasDegen && (aTrinagle[0] == aTrinagle[1] ||
aTrinagle[0] == aTrinagle[2] ||
aTrinagle[2] == aTrinagle[1]))
- continue;
+ continue;
std::vector<int> LinesID(3, 0);
ASSERT(ok);
}
+ ok = GmshSetOption("General", "Verbosity" , (double) _verbLvl ) ; // Verbosity level
+ ASSERT(ok);
+
#if GMSH_MAJOR_VERSION >=4 && GMSH_MINOR_VERSION >=8
/*ok = GmshSetOption("Mesh", "MaxNumThreads1D" , 0. ) ; // Coarse-grain algo threads
ASSERT(ok);
Standard_Real p1 = 1.0;
TopLoc_Location loc;
Handle(Geom_Curve) curve = BRep_Tool::Curve(topoEdge, loc, p0, p1);
-
+
if ( !curve.IsNull() )
{
- if ( !loc.IsIdentity() )
+ if ( !loc.IsIdentity() )
point3D.Transform( loc.Transformation().Inverted() );
GeomAPI_ProjectPointOnCurve proj(point3D, curve, p0, p1);
if ( proj.NbPoints() > 0 )
pa = (double)proj.LowerDistanceParameter();
- meshDS->SetNodeOnEdge( node, topoEdge, pa );
+ meshDS->SetNodeOnEdge( node, topoEdge, pa );
}
else
- {
+ {
meshDS->SetNodeOnEdge( node, topoEdge );
- }
+ }
//END on BLSURFPlugin_BLSURF
if ( verts[j]->onWhat()->getVisibility() == 0 )
{
SMDS_MeshNode *node = meshDS->AddNode(verts[j]->x(),verts[j]->y(),verts[j]->z() );
-
+
gp_Pnt point3D( verts[j]->x(),verts[j]->y(),verts[j]->z() );
Standard_Real p0 = 0.0;
Standard_Real p1 = 1.0;
TopLoc_Location loc;
Handle(Geom_Curve) curve = BRep_Tool::Curve(topoEdge, loc, p0, p1);
-
+
if ( !curve.IsNull() )
{
- if ( !loc.IsIdentity() )
+ if ( !loc.IsIdentity() )
point3D.Transform( loc.Transformation().Inverted() );
GeomAPI_ProjectPointOnCurve proj(point3D, curve, p0, p1);
if ( proj.NbPoints() > 0 )
pa = (double)proj.LowerDistanceParameter();
- meshDS->SetNodeOnEdge( node, topoEdge, pa );
+ meshDS->SetNodeOnEdge( node, topoEdge, pa );
}
else
- {
+ {
meshDS->SetNodeOnEdge( node, topoEdge );
- }
-
+ }
+
verts[j]->setEntity(gEdge);
_nodeMap.insert({ verts[j], node });
}
}
else
{
- //Msg::SetVerbosity(100);
//CTX::instance()->mesh.maxNumThreads1D=1;
_gModel->mesh( /*dim=*/ 1);
if ( gEdge->geomType() == GEntity::CompoundCurve )
#endif
continue;
-
+
TopoDS_Edge topoEdge = *((TopoDS_Edge*)gEdge->getNativePtr());
if ( !HasSubMesh( topoEdge ))
continue; // empty sub-mesh