@@ -2576,17 +2576,17 @@ Mgx3D::Internal::M3DCommandResult* TopoManager::splitFacesWithOgrid(std::vector<
25762576 return cmdResult;
25772577}
25782578/* ----------------------------------------------------------------------------*/
2579- Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces (std::vector<std::string> &cofaces_names, std::string narete, const double & ratio_dec, const double & ratio_ogrid, bool project_on_meshing_edges )
2579+ Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces (std::vector<std::string> &cofaces_names, std::string narete, const double & ratio_dec, const double & ratio_ogrid)
25802580{
25812581 std::vector<Topo::CoFace* > cofaces;
25822582 for (std::vector<std::string>::iterator iter = cofaces_names.begin ();
25832583 iter != cofaces_names.end (); ++iter){
25842584 cofaces.push_back (getCoFace (*iter));
25852585 }
2586- return splitFaces (cofaces, getCoEdge (narete), ratio_dec, ratio_ogrid, project_on_meshing_edges );
2586+ return splitFaces (cofaces, getCoEdge (narete), ratio_dec, ratio_ogrid);
25872587}
25882588/* ----------------------------------------------------------------------------*/
2589- Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces (std::vector<Topo::CoFace* > &cofaces, CoEdge* arete, const double & ratio_dec, const double & ratio_ogrid, bool project_on_meshing_edges )
2589+ Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces (std::vector<Topo::CoFace* > &cofaces, CoEdge* arete, const double & ratio_dec, const double & ratio_ogrid)
25902590{
25912591 CHECK_ENTITIES_LIST (cofaces)
25922592 TkUtil::UTF8String message (TkUtil::Charset::UTF_8);
@@ -2599,16 +2599,12 @@ Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces(std::vector<Topo::CoF
25992599 message <<" ]," <<arete->getName ()<<" ," <<Utils::Math::MgxNumeric::userRepresentation (ratio_dec)<<" ," <<Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid)<<" )" ;
26002600 log (TkUtil::TraceLog (message, TkUtil::Log::TRACE_4));
26012601
2602- Topo::CommandSplitFaces* command = new Topo::CommandSplitFaces (getContext (), cofaces, arete, ratio_dec, ratio_ogrid, project_on_meshing_edges );
2602+ Topo::CommandSplitFaces* command = new Topo::CommandSplitFaces (getContext (), cofaces, arete, ratio_dec, ratio_ogrid);
26032603
26042604 // trace dans le script
26052605 TkUtil::UTF8String cmd (TkUtil::Charset::UTF_8);
26062606 cmd << getContextAlias ( ) << " .getTopoManager().splitFaces (" << Internal::entitiesToPythonList<CoFace> (cofaces) << " , \" " ;
2607- cmd << arete->getName () <<" \" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_dec)<<" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid);
2608- if (project_on_meshing_edges)
2609- cmd << " , True)" ;
2610- else
2611- cmd << " , False)" ;
2607+ cmd << arete->getName () <<" \" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_dec)<<" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid)<<" )" ;
26122608 command->setScriptCommand (cmd);
26132609
26142610 getCommandManager ().addCommand (command, Utils::Command::DO);
@@ -2618,17 +2614,17 @@ Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces(std::vector<Topo::CoF
26182614 return cmdResult;
26192615}
26202616/* ----------------------------------------------------------------------------*/
2621- Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces (std::vector<std::string> &cofaces_names, std::string narete, const Point& pt, const double & ratio_ogrid, bool project_on_meshing_edges )
2617+ Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces (std::vector<std::string> &cofaces_names, std::string narete, const Point& pt, const double & ratio_ogrid)
26222618{
26232619 std::vector<Topo::CoFace* > cofaces;
26242620 for (std::vector<std::string>::iterator iter = cofaces_names.begin ();
26252621 iter != cofaces_names.end (); ++iter){
26262622 cofaces.push_back (getCoFace (*iter));
26272623 }
2628- return splitFaces (cofaces, getCoEdge (narete), pt, ratio_ogrid, project_on_meshing_edges );
2624+ return splitFaces (cofaces, getCoEdge (narete), pt, ratio_ogrid);
26292625}
26302626/* ----------------------------------------------------------------------------*/
2631- Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces (std::vector<Topo::CoFace* > &cofaces, CoEdge* arete, const Point& pt, const double & ratio_ogrid, bool project_on_meshing_edges )
2627+ Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces (std::vector<Topo::CoFace* > &cofaces, CoEdge* arete, const Point& pt, const double & ratio_ogrid)
26322628{
26332629 CHECK_ENTITIES_LIST (cofaces)
26342630 TkUtil::UTF8String message (TkUtil::Charset::UTF_8);
@@ -2641,16 +2637,12 @@ Mgx3D::Internal::M3DCommandResult* TopoManager::splitFaces(std::vector<Topo::CoF
26412637 message <<" ]," <<arete->getName ()<<" ," <<pt<<" ," <<Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid)<<" )" ;
26422638 log (TkUtil::TraceLog (message, TkUtil::Log::TRACE_4));
26432639
2644- Topo::CommandSplitFaces* command = new Topo::CommandSplitFaces (getContext (), cofaces, arete, pt, ratio_ogrid, project_on_meshing_edges );
2640+ Topo::CommandSplitFaces* command = new Topo::CommandSplitFaces (getContext (), cofaces, arete, pt, ratio_ogrid);
26452641
26462642 // trace dans le script
26472643 TkUtil::UTF8String cmd (TkUtil::Charset::UTF_8);
26482644 cmd << getContextAlias ( ) << " .getTopoManager().splitFaces (" << Internal::entitiesToPythonList<CoFace> (cofaces) << " , \" " ;
2649- cmd << arete->getName () <<" \" , " <<pt.getScriptCommand ()<<" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid);
2650- if (project_on_meshing_edges)
2651- cmd << " , True)" ;
2652- else
2653- cmd << " , False)" ;
2645+ cmd << arete->getName () <<" \" , " <<pt.getScriptCommand ()<<" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid)<<" )" ;
26542646 command->setScriptCommand (cmd);
26552647
26562648 getCommandManager ().addCommand (command, Utils::Command::DO);
@@ -2672,8 +2664,7 @@ Mgx3D::Internal::M3DCommandResult* TopoManager::splitFace(Topo::CoFace* coface,
26722664 message <<" TopoManager::splitFace(" <<coface->getName ()<<" , " << coedge->getName () <<" , " << ratio_dec<<" )" ;
26732665 log (TkUtil::TraceLog (message, TkUtil::Log::TRACE_4));
26742666
2675- std::vector<Topo::CoFace* > cofaces = {coface};
2676- Topo::CommandSplitFaces* command = new Topo::CommandSplitFaces (getContext (), cofaces, coedge, ratio_dec, 0 , project_on_meshing_edges);
2667+ Topo::CommandSplitFaces* command = new Topo::CommandSplitFaces (getContext (), coface, coedge, ratio_dec, project_on_meshing_edges);
26772668
26782669 // trace dans le script
26792670 TkUtil::UTF8String cmd (TkUtil::Charset::UTF_8);
@@ -2704,8 +2695,7 @@ Mgx3D::Internal::M3DCommandResult* TopoManager::splitFace(Topo::CoFace* coface,
27042695 message <<" TopoManager::splitFace(" <<coface->getName ()<<" , " << coedge->getName () <<" , " << pt<<" )" ;
27052696 log (TkUtil::TraceLog (message, TkUtil::Log::TRACE_4));
27062697
2707- std::vector<Topo::CoFace* > cofaces = {coface};
2708- Topo::CommandSplitFaces* command = new Topo::CommandSplitFaces (getContext (), cofaces, coedge, pt, 0 , project_on_meshing_edges);
2698+ Topo::CommandSplitFaces* command = new Topo::CommandSplitFaces (getContext (), coface, coedge, pt, project_on_meshing_edges);
27092699
27102700 // trace dans le script
27112701 TkUtil::UTF8String cmd (TkUtil::Charset::UTF_8);
@@ -2754,29 +2744,24 @@ TopoManager::extendSplitFace(Topo::CoFace* coface, Vertex* vertex)
27542744 return cmdResult;
27552745}
27562746/* ----------------------------------------------------------------------------*/
2757- Mgx3D::Internal::M3DCommandResult* TopoManager::splitAllFaces (std::string narete, const double & ratio_dec, const double & ratio_ogrid, bool project_on_meshing_edges )
2747+ Mgx3D::Internal::M3DCommandResult* TopoManager::splitAllFaces (std::string narete, const double & ratio_dec, const double & ratio_ogrid)
27582748{
2759- return splitAllFaces (getCoEdge (narete), ratio_dec, ratio_ogrid, project_on_meshing_edges );
2749+ return splitAllFaces (getCoEdge (narete), ratio_dec, ratio_ogrid);
27602750}
27612751/* ----------------------------------------------------------------------------*/
2762- Mgx3D::Internal::M3DCommandResult* TopoManager::splitAllFaces (CoEdge* coedge, const double & ratio_dec, const double & ratio_ogrid, bool project_on_meshing_edges )
2752+ Mgx3D::Internal::M3DCommandResult* TopoManager::splitAllFaces (CoEdge* coedge, const double & ratio_dec, const double & ratio_ogrid)
27632753{
27642754 TkUtil::UTF8String message (TkUtil::Charset::UTF_8);
27652755 message <<" TopoManager::splitAllFaces(" ;
27662756 message <<coedge->getName ()<<" ," <<Utils::Math::MgxNumeric::userRepresentation (ratio_dec)<<" ," <<Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid)<<" )" ;
27672757 log (TkUtil::TraceLog (message, TkUtil::Log::TRACE_4));
27682758
2769- Topo::CommandSplitFaces* command = new Topo::CommandSplitFaces (getContext (), coedge, ratio_dec, ratio_ogrid, project_on_meshing_edges );
2759+ Topo::CommandSplitFaces* command = new Topo::CommandSplitFaces (getContext (), coedge, ratio_dec, ratio_ogrid);
27702760
27712761 // trace dans le script
27722762 TkUtil::UTF8String cmd (TkUtil::Charset::UTF_8);
27732763 cmd << getContextAlias () << " ." << " getTopoManager().splitAllFaces (\" " ;
2774- cmd << coedge->getName () <<" \" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_dec)<<" , " ;
2775- cmd << Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid);
2776- if (project_on_meshing_edges)
2777- cmd << " , True)" ;
2778- else
2779- cmd << " , False)" ;
2764+ cmd << coedge->getName () <<" \" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_dec)<<" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid)<<" )" ;
27802765 command->setScriptCommand (cmd);
27812766
27822767 getCommandManager ().addCommand (command, Utils::Command::DO);
@@ -2786,12 +2771,12 @@ Mgx3D::Internal::M3DCommandResult* TopoManager::splitAllFaces(CoEdge* coedge, co
27862771 return cmdResult;
27872772}
27882773/* ----------------------------------------------------------------------------*/
2789- Mgx3D::Internal::M3DCommandResult* TopoManager::splitAllFaces (std::string narete, const Point& pt, const double & ratio_ogrid, bool project_on_meshing_edges )
2774+ Mgx3D::Internal::M3DCommandResult* TopoManager::splitAllFaces (std::string narete, const Point& pt, const double & ratio_ogrid)
27902775{
2791- return splitAllFaces (getCoEdge (narete), pt, ratio_ogrid, project_on_meshing_edges );
2776+ return splitAllFaces (getCoEdge (narete), pt, ratio_ogrid);
27922777}
27932778/* ----------------------------------------------------------------------------*/
2794- Mgx3D::Internal::M3DCommandResult* TopoManager::splitAllFaces (CoEdge* coedge, const Point& pt, const double & ratio_ogrid, bool project_on_meshing_edges )
2779+ Mgx3D::Internal::M3DCommandResult* TopoManager::splitAllFaces (CoEdge* coedge, const Point& pt, const double & ratio_ogrid)
27952780{
27962781 TkUtil::UTF8String message (TkUtil::Charset::UTF_8);
27972782 message <<" TopoManager::splitAllFaces(" ;
@@ -2803,11 +2788,7 @@ Mgx3D::Internal::M3DCommandResult* TopoManager::splitAllFaces(CoEdge* coedge, co
28032788 // trace dans le script
28042789 TkUtil::UTF8String cmd (TkUtil::Charset::UTF_8);
28052790 cmd << getContextAlias () << " ." << " getTopoManager().splitAllFaces (\" " ;
2806- cmd << coedge->getName () <<" \" , " <<pt.getScriptCommand ()<<" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid);
2807- if (project_on_meshing_edges)
2808- cmd << " , True)" ;
2809- else
2810- cmd << " , False)" ;
2791+ cmd << coedge->getName () <<" \" , " <<pt.getScriptCommand ()<<" , " <<Utils::Math::MgxNumeric::userRepresentation (ratio_ogrid)<<" )" ;
28112792 command->setScriptCommand (cmd);
28122793
28132794 getCommandManager ().addCommand (command, Utils::Command::DO);
0 commit comments