mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0022769: Optimization of sewing algorithm
This commit is contained in:
parent
d4cc0c5eb5
commit
041bfce9c0
@ -1625,9 +1625,15 @@ void BRepLib::EncodeRegularity(const TopoDS_Shape& S,
|
|||||||
}
|
}
|
||||||
if(found){
|
if(found){
|
||||||
if(BRep_Tool::Continuity(E,F1,F2)<=GeomAbs_C0){
|
if(BRep_Tool::Continuity(E,F1,F2)<=GeomAbs_C0){
|
||||||
if(tgtfaces(E, F1, F2, TolAng, couture)){
|
|
||||||
B.Continuity(E,F1,F2,GeomAbs_G1);
|
try {
|
||||||
}
|
if(tgtfaces(E, F1, F2, TolAng, couture)){
|
||||||
|
B.Continuity(E,F1,F2,GeomAbs_G1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Standard_Failure)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1645,9 +1651,14 @@ void BRepLib::EncodeRegularity(TopoDS_Edge& E,
|
|||||||
{
|
{
|
||||||
BRep_Builder B;
|
BRep_Builder B;
|
||||||
if(BRep_Tool::Continuity(E,F1,F2)<=GeomAbs_C0){
|
if(BRep_Tool::Continuity(E,F1,F2)<=GeomAbs_C0){
|
||||||
if( tgtfaces(E, F1, F2, TolAng, F1.IsEqual(F2))) {
|
try {
|
||||||
B.Continuity(E,F1,F2,GeomAbs_G1);
|
if( tgtfaces(E, F1, F2, TolAng, F1.IsEqual(F2))) {
|
||||||
}
|
B.Continuity(E,F1,F2,GeomAbs_G1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Standard_Failure)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -973,13 +973,21 @@ void ChFi3d_Builder::PerformOneCorner(const Standard_Integer Index,
|
|||||||
Geom2dAdaptor_Curve anOtherPCurve;
|
Geom2dAdaptor_Curve anOtherPCurve;
|
||||||
if (IShape == aData->IndexOfS1())
|
if (IShape == aData->IndexOfS1())
|
||||||
{
|
{
|
||||||
anOtherPCurve.Load (aData->InterferenceOnS1().PCurveOnFace(),
|
const Handle(Geom2d_Curve)& aPCurve = aData->InterferenceOnS1().PCurveOnFace();
|
||||||
|
if(aPCurve.IsNull())
|
||||||
|
continue;
|
||||||
|
|
||||||
|
anOtherPCurve.Load (aPCurve,
|
||||||
aData->InterferenceOnS1().FirstParameter(),
|
aData->InterferenceOnS1().FirstParameter(),
|
||||||
aData->InterferenceOnS1().LastParameter());
|
aData->InterferenceOnS1().LastParameter());
|
||||||
}
|
}
|
||||||
else if (IShape == aData->IndexOfS2())
|
else if (IShape == aData->IndexOfS2())
|
||||||
{
|
{
|
||||||
anOtherPCurve.Load (aData->InterferenceOnS2().PCurveOnFace(),
|
const Handle(Geom2d_Curve)& aPCurve = aData->InterferenceOnS2().PCurveOnFace();
|
||||||
|
if(aPCurve.IsNull())
|
||||||
|
continue;
|
||||||
|
|
||||||
|
anOtherPCurve.Load (aPCurve,
|
||||||
aData->InterferenceOnS2().FirstParameter(),
|
aData->InterferenceOnS2().FirstParameter(),
|
||||||
aData->InterferenceOnS2().LastParameter());
|
aData->InterferenceOnS2().LastParameter());
|
||||||
}
|
}
|
||||||
|
@ -45,10 +45,12 @@ is
|
|||||||
---Purpose: ConstructionError is raised if Ufirst>Ulast
|
---Purpose: ConstructionError is raised if Ufirst>Ulast
|
||||||
|
|
||||||
Load(me : in out; C : Curve from Geom2d);
|
Load(me : in out; C : Curve from Geom2d);
|
||||||
|
---C++: inline
|
||||||
|
|
||||||
Load(me : in out; C : Curve from Geom2d; UFirst,ULast : Real)
|
Load(me : in out; C : Curve from Geom2d; UFirst,ULast : Real)
|
||||||
raises
|
raises
|
||||||
ConstructionError from Standard;
|
ConstructionError from Standard;
|
||||||
|
---C++: inline
|
||||||
---Purpose: ConstructionError is raised if Ufirst>Ulast
|
---Purpose: ConstructionError is raised if Ufirst>Ulast
|
||||||
|
|
||||||
Curve(me) returns Curve from Geom2d
|
Curve(me) returns Curve from Geom2d
|
||||||
@ -228,6 +230,9 @@ is
|
|||||||
|
|
||||||
LocalContinuity(me; U1, U2 : Real) returns Shape from GeomAbs
|
LocalContinuity(me; U1, U2 : Real) returns Shape from GeomAbs
|
||||||
is static private;
|
is static private;
|
||||||
|
|
||||||
|
load(me : in out; C : Curve from Geom2d; UFirst,ULast : Real)
|
||||||
|
is private;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
#include <Standard_OutOfRange.hxx>
|
#include <Standard_OutOfRange.hxx>
|
||||||
#include <Standard_NoSuchObject.hxx>
|
#include <Standard_NoSuchObject.hxx>
|
||||||
|
#include <Standard_NullObject.hxx>
|
||||||
#include <Standard_NotImplemented.hxx>
|
#include <Standard_NotImplemented.hxx>
|
||||||
|
|
||||||
#define myBspl (*((Handle(Geom2d_BSplineCurve)*)&myCurve))
|
#define myBspl (*((Handle(Geom2d_BSplineCurve)*)&myCurve))
|
||||||
@ -109,6 +110,9 @@ GeomAbs_Shape Geom2dAdaptor_Curve::LocalContinuity(const Standard_Real U1,
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
Geom2dAdaptor_Curve::Geom2dAdaptor_Curve()
|
Geom2dAdaptor_Curve::Geom2dAdaptor_Curve()
|
||||||
|
: myTypeCurve(GeomAbs_OtherCurve),
|
||||||
|
myFirst(0.),
|
||||||
|
myLast(0.)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,8 +121,9 @@ Geom2dAdaptor_Curve::Geom2dAdaptor_Curve()
|
|||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
Geom2dAdaptor_Curve::Geom2dAdaptor_Curve(const Handle(Geom2d_Curve)& C) {
|
Geom2dAdaptor_Curve::Geom2dAdaptor_Curve(const Handle(Geom2d_Curve)& C)
|
||||||
Load(C,C->FirstParameter(),C->LastParameter());
|
{
|
||||||
|
Load(C);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
@ -128,29 +133,21 @@ Geom2dAdaptor_Curve::Geom2dAdaptor_Curve(const Handle(Geom2d_Curve)& C) {
|
|||||||
|
|
||||||
Geom2dAdaptor_Curve::Geom2dAdaptor_Curve(const Handle(Geom2d_Curve)& C,
|
Geom2dAdaptor_Curve::Geom2dAdaptor_Curve(const Handle(Geom2d_Curve)& C,
|
||||||
const Standard_Real UFirst,
|
const Standard_Real UFirst,
|
||||||
const Standard_Real ULast) {
|
const Standard_Real ULast)
|
||||||
if ( UFirst > ULast) Standard_ConstructionError::Raise();
|
{
|
||||||
Load(C,UFirst,ULast);
|
Load(C,UFirst,ULast);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
|
||||||
//function : Load
|
|
||||||
//purpose :
|
|
||||||
//=======================================================================
|
|
||||||
|
|
||||||
void Geom2dAdaptor_Curve::Load(const Handle(Geom2d_Curve)& C) {
|
|
||||||
Load(C,C->FirstParameter(),C->LastParameter());
|
|
||||||
}
|
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : Load
|
//function : Load
|
||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
void Geom2dAdaptor_Curve::Load(const Handle(Geom2d_Curve)& C,
|
void Geom2dAdaptor_Curve::load(const Handle(Geom2d_Curve)& C,
|
||||||
const Standard_Real UFirst,
|
const Standard_Real UFirst,
|
||||||
const Standard_Real ULast) {
|
const Standard_Real ULast)
|
||||||
if ( UFirst > ULast) Standard_ConstructionError::Raise();
|
{
|
||||||
myFirst = UFirst;
|
myFirst = UFirst;
|
||||||
myLast = ULast;
|
myLast = ULast;
|
||||||
|
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
#include <gp_Pnt2d.hxx>
|
#include <gp_Pnt2d.hxx>
|
||||||
#include <Geom2d_Curve.hxx>
|
#include <Geom2d_Curve.hxx>
|
||||||
|
#include <Standard_NoSuchObject.hxx>
|
||||||
|
#include <Standard_NullObject.hxx>
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : FirstParameter
|
//function : FirstParameter
|
||||||
@ -47,3 +49,30 @@ inline GeomAbs_CurveType Geom2dAdaptor_Curve::GetType() const
|
|||||||
return myTypeCurve;
|
return myTypeCurve;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : Load
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
inline void Geom2dAdaptor_Curve::Load(const Handle(Geom2d_Curve)& C)
|
||||||
|
{
|
||||||
|
if ( C.IsNull()) Standard_NullObject::Raise();
|
||||||
|
|
||||||
|
load(C,C->FirstParameter(),C->LastParameter());
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : Load
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
inline void Geom2dAdaptor_Curve::Load(const Handle(Geom2d_Curve)& C,
|
||||||
|
const Standard_Real UFirst,
|
||||||
|
const Standard_Real ULast)
|
||||||
|
{
|
||||||
|
if ( C.IsNull()) Standard_NullObject::Raise();
|
||||||
|
|
||||||
|
if ( UFirst > ULast) Standard_ConstructionError::Raise();
|
||||||
|
|
||||||
|
load(C,UFirst,ULast);
|
||||||
|
}
|
@ -52,6 +52,7 @@ is
|
|||||||
Load(me : in out; C : Curve from Geom; UFirst,ULast : Real)
|
Load(me : in out; C : Curve from Geom; UFirst,ULast : Real)
|
||||||
raises
|
raises
|
||||||
ConstructionError from Standard;
|
ConstructionError from Standard;
|
||||||
|
---C++: inline
|
||||||
---Purpose: ConstructionError is raised if Ufirst>Ulast
|
---Purpose: ConstructionError is raised if Ufirst>Ulast
|
||||||
|
|
||||||
Curve(me) returns Curve from Geom
|
Curve(me) returns Curve from Geom
|
||||||
@ -263,6 +264,9 @@ is
|
|||||||
|
|
||||||
LocalContinuity(me; U1, U2 : Real) returns Shape from GeomAbs
|
LocalContinuity(me; U1, U2 : Real) returns Shape from GeomAbs
|
||||||
is static private;
|
is static private;
|
||||||
|
|
||||||
|
load(me : in out; C : Curve from Geom; UFirst,ULast : Real)
|
||||||
|
is private;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
#include <Standard_OutOfRange.hxx>
|
#include <Standard_OutOfRange.hxx>
|
||||||
#include <Standard_NoSuchObject.hxx>
|
#include <Standard_NoSuchObject.hxx>
|
||||||
|
#include <Standard_NullObject.hxx>
|
||||||
#include <Standard_NotImplemented.hxx>
|
#include <Standard_NotImplemented.hxx>
|
||||||
#include <Geom_OffsetCurve.hxx>
|
#include <Geom_OffsetCurve.hxx>
|
||||||
|
|
||||||
@ -109,11 +110,10 @@ GeomAbs_Shape GeomAdaptor_Curve::LocalContinuity(const Standard_Real U1,
|
|||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
void GeomAdaptor_Curve::Load(const Handle(Geom_Curve)& C,
|
void GeomAdaptor_Curve::load(const Handle(Geom_Curve)& C,
|
||||||
const Standard_Real UFirst,
|
const Standard_Real UFirst,
|
||||||
const Standard_Real ULast)
|
const Standard_Real ULast)
|
||||||
{
|
{
|
||||||
if ( UFirst > ULast) Standard_ConstructionError::Raise();
|
|
||||||
myFirst = UFirst;
|
myFirst = UFirst;
|
||||||
myLast = ULast;
|
myLast = ULast;
|
||||||
|
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
|
|
||||||
#include <gp_Pnt.hxx>
|
#include <gp_Pnt.hxx>
|
||||||
#include <Geom_Curve.hxx>
|
#include <Geom_Curve.hxx>
|
||||||
|
#include <Standard_NullObject.hxx>
|
||||||
|
#include <Standard_ConstructionError.hxx>
|
||||||
|
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : GeomAdaptor_Curve
|
//function : GeomAdaptor_Curve
|
||||||
@ -12,6 +15,9 @@
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
inline GeomAdaptor_Curve::GeomAdaptor_Curve()
|
inline GeomAdaptor_Curve::GeomAdaptor_Curve()
|
||||||
|
: myTypeCurve(GeomAbs_OtherCurve),
|
||||||
|
myFirst(0.),
|
||||||
|
myLast(0.)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,7 +28,7 @@ inline GeomAdaptor_Curve::GeomAdaptor_Curve()
|
|||||||
|
|
||||||
inline GeomAdaptor_Curve::GeomAdaptor_Curve(const Handle(Geom_Curve)& C)
|
inline GeomAdaptor_Curve::GeomAdaptor_Curve(const Handle(Geom_Curve)& C)
|
||||||
{
|
{
|
||||||
Load(C,C->FirstParameter(),C->LastParameter());
|
Load(C);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
@ -34,7 +40,6 @@ inline GeomAdaptor_Curve::GeomAdaptor_Curve(const Handle(Geom_Curve)& C,
|
|||||||
const Standard_Real UFirst,
|
const Standard_Real UFirst,
|
||||||
const Standard_Real ULast)
|
const Standard_Real ULast)
|
||||||
{
|
{
|
||||||
if (UFirst > ULast) Standard_ConstructionError::Raise();
|
|
||||||
Load(C,UFirst,ULast);
|
Load(C,UFirst,ULast);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,9 +50,28 @@ inline GeomAdaptor_Curve::GeomAdaptor_Curve(const Handle(Geom_Curve)& C,
|
|||||||
|
|
||||||
inline void GeomAdaptor_Curve::Load(const Handle(Geom_Curve)& C)
|
inline void GeomAdaptor_Curve::Load(const Handle(Geom_Curve)& C)
|
||||||
{
|
{
|
||||||
Load(C,C->FirstParameter(),C->LastParameter());
|
if ( C.IsNull()) Standard_NullObject::Raise();
|
||||||
|
|
||||||
|
load(C,C->FirstParameter(),C->LastParameter());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : Load
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
inline void GeomAdaptor_Curve::Load(const Handle(Geom_Curve)& C,
|
||||||
|
const Standard_Real UFirst,
|
||||||
|
const Standard_Real ULast)
|
||||||
|
{
|
||||||
|
if ( C.IsNull()) Standard_NullObject::Raise();
|
||||||
|
|
||||||
|
if ( UFirst > ULast) Standard_ConstructionError::Raise();
|
||||||
|
|
||||||
|
load(C,UFirst,ULast);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : FirstParameter
|
//function : FirstParameter
|
||||||
//purpose :
|
//purpose :
|
||||||
|
@ -59,7 +59,8 @@ is
|
|||||||
TolU : Real = 0.0;
|
TolU : Real = 0.0;
|
||||||
TolV : Real = 0.0)
|
TolV : Real = 0.0)
|
||||||
raises ConstructionError from Standard;
|
raises ConstructionError from Standard;
|
||||||
---Purpose: ConstructionError is raised if UFirst>ULast or VFirst>VLast
|
---C++: inline
|
||||||
|
---Purpose: ConstructionError is raised if UFirst>ULast or VFirst>VLast
|
||||||
|
|
||||||
Surface(me) returns Surface from Geom
|
Surface(me) returns Surface from Geom
|
||||||
---C++: return const&
|
---C++: return const&
|
||||||
@ -358,17 +359,22 @@ is
|
|||||||
is redefined static;
|
is redefined static;
|
||||||
|
|
||||||
|
|
||||||
Span (me;Side :Integer; Ideb,Ifin:Integer;
|
Span (me;Side :Integer; Ideb,Ifin:Integer;
|
||||||
OutIdeb,OutIfin:out Integer;
|
OutIdeb,OutIfin:out Integer;
|
||||||
NbKnots : Integer )
|
NbKnots : Integer )
|
||||||
is private;
|
is private;
|
||||||
|
|
||||||
IfUVBound (me;U,V :Real;Ideb,Ifin,IVdeb,IVfin :out Integer;
|
IfUVBound (me;U,V :Real;Ideb,Ifin,IVdeb,IVfin :out Integer;
|
||||||
USide,VSide: Integer)
|
USide,VSide: Integer)
|
||||||
returns Boolean from Standard
|
returns Boolean from Standard
|
||||||
is private;
|
is private;
|
||||||
|
|
||||||
|
load (me : in out; S : Surface from Geom;
|
||||||
|
UFirst,ULast,VFirst,VLast : Real;
|
||||||
|
TolU : Real = 0.0;
|
||||||
|
TolV : Real = 0.0)
|
||||||
|
is private;
|
||||||
|
|
||||||
fields
|
fields
|
||||||
|
|
||||||
mySurface : Surface from Geom;
|
mySurface : Surface from Geom;
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
#include <BSplCLib.hxx>
|
#include <BSplCLib.hxx>
|
||||||
#include <Precision.hxx>
|
#include <Precision.hxx>
|
||||||
#include <Standard_NoSuchObject.hxx>
|
#include <Standard_NoSuchObject.hxx>
|
||||||
|
#include <Standard_NullObject.hxx>
|
||||||
|
|
||||||
#define myBspl (*((Handle(Geom_BSplineSurface)*)&mySurface))
|
#define myBspl (*((Handle(Geom_BSplineSurface)*)&mySurface))
|
||||||
#define myExtSurf (*((Handle(Geom_SurfaceOfLinearExtrusion)*)&mySurface))
|
#define myExtSurf (*((Handle(Geom_SurfaceOfLinearExtrusion)*)&mySurface))
|
||||||
@ -97,7 +98,7 @@ GeomAbs_Shape LocalContinuity(Standard_Integer Degree,
|
|||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
void GeomAdaptor_Surface::Load(const Handle(Geom_Surface)& S,
|
void GeomAdaptor_Surface::load(const Handle(Geom_Surface)& S,
|
||||||
const Standard_Real UFirst,
|
const Standard_Real UFirst,
|
||||||
const Standard_Real ULast,
|
const Standard_Real ULast,
|
||||||
const Standard_Real VFirst,
|
const Standard_Real VFirst,
|
||||||
@ -105,9 +106,6 @@ void GeomAdaptor_Surface::Load(const Handle(Geom_Surface)& S,
|
|||||||
const Standard_Real TolU,
|
const Standard_Real TolU,
|
||||||
const Standard_Real TolV)
|
const Standard_Real TolV)
|
||||||
{
|
{
|
||||||
if(UFirst>ULast || VFirst>VLast)
|
|
||||||
Standard_ConstructionError::Raise("GeomAdaptor_Surface::Load");
|
|
||||||
|
|
||||||
myTolU = TolU;
|
myTolU = TolU;
|
||||||
myTolV = TolV;
|
myTolV = TolV;
|
||||||
myUFirst = UFirst;
|
myUFirst = UFirst;
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
// Copyright: OPEN CASCADE 1993
|
// Copyright: OPEN CASCADE 1993
|
||||||
|
|
||||||
#include <Geom_Surface.hxx>
|
#include <Geom_Surface.hxx>
|
||||||
|
#include <Standard_NullObject.hxx>
|
||||||
|
#include <Standard_ConstructionError.hxx>
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : GeomAdaptor_Surface
|
//function : GeomAdaptor_Surface
|
||||||
@ -11,8 +13,15 @@
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
inline GeomAdaptor_Surface::GeomAdaptor_Surface()
|
inline GeomAdaptor_Surface::GeomAdaptor_Surface()
|
||||||
: myTolU(0.), myTolV(0.)
|
: mySurfaceType(GeomAbs_OtherSurface),
|
||||||
{}
|
myUFirst(0.),
|
||||||
|
myULast(0.),
|
||||||
|
myVFirst(0.),
|
||||||
|
myVLast (0.),
|
||||||
|
myTolU(0.),
|
||||||
|
myTolV(0.)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : GeomAdaptor_Surface
|
//function : GeomAdaptor_Surface
|
||||||
@ -48,11 +57,35 @@ inline GeomAdaptor_Surface::GeomAdaptor_Surface(const Handle(Geom_Surface)& S,
|
|||||||
|
|
||||||
inline void GeomAdaptor_Surface::Load(const Handle(Geom_Surface)& S)
|
inline void GeomAdaptor_Surface::Load(const Handle(Geom_Surface)& S)
|
||||||
{
|
{
|
||||||
|
if ( S.IsNull()) Standard_NullObject::Raise("GeomAdaptor_Surface::Load");
|
||||||
|
|
||||||
Standard_Real U1,U2,V1,V2;
|
Standard_Real U1,U2,V1,V2;
|
||||||
S->Bounds(U1,U2,V1,V2);
|
S->Bounds(U1,U2,V1,V2);
|
||||||
Load(S,U1,U2,V1,V2);
|
load(S,U1,U2,V1,V2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
//function : Load
|
||||||
|
//purpose :
|
||||||
|
//=======================================================================
|
||||||
|
|
||||||
|
inline void GeomAdaptor_Surface::Load(const Handle(Geom_Surface)& S,
|
||||||
|
const Standard_Real UFirst,
|
||||||
|
const Standard_Real ULast,
|
||||||
|
const Standard_Real VFirst,
|
||||||
|
const Standard_Real VLast,
|
||||||
|
const Standard_Real TolU,
|
||||||
|
const Standard_Real TolV)
|
||||||
|
{
|
||||||
|
if ( S.IsNull()) Standard_NullObject::Raise("GeomAdaptor_Surface::Load");
|
||||||
|
|
||||||
|
if(UFirst>ULast || VFirst>VLast)
|
||||||
|
Standard_ConstructionError::Raise("GeomAdaptor_Surface::Load");
|
||||||
|
|
||||||
|
load(S,UFirst,ULast,VFirst,VLast,TolU,TolV);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : Surface
|
//function : Surface
|
||||||
//purpose :
|
//purpose :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user