// Created on: 1997-05-13
// Created by: Stagiaire Francois DUMONT
// Copyright (c) 1997-1999 Matra Datavision
-// Copyright (c) 1999-2012 OPEN CASCADE SAS
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
-// The content of this file is subject to the Open CASCADE Technology Public
-// License Version 6.5 (the "License"). You may not use the content of this file
-// except in compliance with the License. Please obtain a copy of the License
-// at http://www.opencascade.org and read it completely before using this file.
+// This file is part of Open CASCADE Technology software library.
//
-// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
//
-// The Original Code and all software distributed under the License is
-// distributed on an "AS IS" basis, without warranty of any kind, and the
-// Initial Developer hereby disclaims all such warranties, including without
-// limitation, any warranties of merchantability, fitness for a particular
-// purpose or non-infringement. Please see the License for the specific terms
-// and conditions governing the rights and limitations under the License.
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
-
-#include <GeomLib_DenominatorMultiplier.ixx>
+#include <BSplSLib.hxx>
+#include <Geom_BSplineSurface.hxx>
+#include <GeomLib_DenominatorMultiplier.hxx>
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
+#include <math_Matrix.hxx>
+#include <Standard_ConstructionError.hxx>
+#include <Standard_OutOfRange.hxx>
#include <TColgp_Array2OfPnt.hxx>
-#include <TColStd_Array2OfReal.hxx>
-#include <TColStd_Array1OfReal.hxx>
#include <TColStd_Array1OfInteger.hxx>
-#include <BSplSLib.hxx>
-#include <math_Matrix.hxx>
+#include <TColStd_Array1OfReal.hxx>
+#include <TColStd_Array2OfReal.hxx>
//=======================================================================
//function :GeomLib_DenominatorMultiplier
//purpose :
//=======================================================================
-
GeomLib_DenominatorMultiplier::GeomLib_DenominatorMultiplier
(const Handle(Geom_BSplineSurface) & Surface,
const TColStd_Array1OfReal & KnotVector):mySurface(Surface),
BSplSLib::HomogeneousD1(mySurface->UKnot(mySurface->LastUKnotIndex()),VParameter,
0,0,
surface_poles,
- surface_weights,
+ &surface_weights,
surface_u_knots,surface_v_knots,
- surface_u_mults,surface_v_mults,
+ &surface_u_mults,&surface_v_mults,
udegree,vdegree,
mySurface->IsURational(),mySurface->IsVRational(),
mySurface->IsUPeriodic(),mySurface->IsVPeriodic(),
BSplSLib::HomogeneousD1(mySurface->UKnot(1),VParameter,
0,0,
surface_poles,
- surface_weights,
+ &surface_weights,
surface_u_knots,surface_v_knots,
- surface_u_mults,surface_v_mults,
+ &surface_u_mults,&surface_v_mults,
udegree,vdegree,
mySurface->IsURational(),mySurface->IsVRational(),
mySurface->IsUPeriodic(),mySurface->IsVPeriodic(),
Standard_Integer index,i;
BSplCLib::EvalBsplineBasis(1,
- 1,
4,
myKnotFlatVector,
0.0,
B1prim0=BSplineBasisDeriv(2,2);
BSplCLib::EvalBsplineBasis(1,
- 1,
4,
myKnotFlatVector,
1.0,
Bprelastprim1=BSplineBasisDeriv(2,3);
math_Matrix BSplineBasisValue(1,1,1,4,0.0);
- BSplCLib::EvalBsplineBasis(1,
- 0,
+ BSplCLib::EvalBsplineBasis(0,
4,
myKnotFlatVector,
UParameter,