---Level: Public
+
+-- ============================================
+-- Methods to set parameters for approximation
+-- ============================================
+ SetMaxDegree(me : mutable;
+ NewMaxDegree : Integer from Standard);
+ ---Purpose: Define the maximum V degree of resulting surface
+
+ SetMaxSegments(me : mutable;
+ NewMaxSegments : Integer from Standard);
+ ---Purpose: Define the maximum number of spans in V-direction
+ -- on resulting surface
+
SetForceApproxC1(me : mutable;
ForceApproxC1 : Boolean from Standard);
---Purpose: Set the flag that indicates attempt to approximate
myBoundTol : Real;
myTolAngular : Real;
angmin, angmax : Real;
+ myMaxDegree : Integer;
+ myMaxSegments : Integer;
myForceApproxC1 : Boolean;
myLaw : Function from Law;
myLaw.Nullify();
SetTolerance();
+ myMaxDegree = 11;
+ myMaxSegments = 30;
+
// Attention to closed non-declared wire !
if (!mySpine.Closed()) {
TopoDS_Vertex Vf, Vl;
mySection.Nullify(); //It is required to relocalize the sections.
}
+
+//=======================================================================
+//function : SetMaxDegree
+//purpose :
+//=======================================================================
+void BRepFill_PipeShell::SetMaxDegree(const Standard_Integer NewMaxDegree)
+{
+ myMaxDegree = NewMaxDegree;
+}
+
+//=======================================================================
+//function : SetMaxSegments
+//purpose :
+//=======================================================================
+void BRepFill_PipeShell::SetMaxSegments(const Standard_Integer NewMaxSegments)
+{
+ myMaxSegments = NewMaxSegments;
+}
+
//=======================================================================
//function : SetForceApproxC1
//purpose : Set the flag that indicates attempt to approximate
theContinuity = GeomAbs_C0;
TopTools_MapOfShape Dummy;
BRepFill_DataMapOfShapeHArray2OfShape Dummy2;
- MkSw.Build(Dummy, Dummy2, myTransition, theContinuity);
+ MkSw.Build(Dummy, Dummy2, myTransition, theContinuity,
+ GeomFill_Location, myMaxDegree, myMaxSegments);
myStatus = myLocation->GetStatus();
Ok = (MkSw.IsDone() && (myStatus == GeomFill_PipeOk));
-- - boundary tolerance BoundTol
-- - angular tolerance TolAngular.
+
+
+-- ============================================
+-- Methods to set parameters for approximation
+-- ============================================
+ SetMaxDegree(me : in out;
+ NewMaxDegree : Integer from Standard);
+ ---Purpose: Define the maximum V degree of resulting surface
+
+ SetMaxSegments(me : in out;
+ NewMaxSegments : Integer from Standard);
+ ---Purpose: Define the maximum number of spans in V-direction
+ -- on resulting surface
+
SetForceApproxC1(me : in out;
ForceApproxC1 : Boolean from Standard);
---Purpose: Set the flag that indicates attempt to approximate
myPipe->SetTolerance(Tol3d, BoundTol, TolAngular);
}
+//=======================================================================
+//function : SetMaxDegree
+//purpose :
+//=======================================================================
+void BRepOffsetAPI_MakePipeShell::SetMaxDegree(const Standard_Integer NewMaxDegree)
+{
+ myPipe->SetMaxDegree(NewMaxDegree);
+}
+
+//=======================================================================
+//function : SetMaxSegments
+//purpose :
+//=======================================================================
+void BRepOffsetAPI_MakePipeShell::SetMaxSegments(const Standard_Integer NewMaxSegments)
+{
+ myPipe->SetMaxSegments(NewMaxSegments);
+}
+
//=======================================================================
//function : SetForceApproxC1
//purpose : Set the flag that indicates attempt to approximate