1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/src/HLRBRep/HLRBRep_Surface.lxx
abk 681f3919f0 0027870: Modeling - refactoring of HLR algorithms
Toolkit 'TKHLR' was fully refactored for 'Standard_Address' and macros except about half of package 'HLRBREP' there 'Standard_Address' is used through the 'generic' mechanism.
2016-11-03 14:16:56 +03:00

307 lines
11 KiB
Plaintext

// Created on: 1992-03-13
// Created by: Christophe MARION
// Copyright (c) 1992-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <BRepAdaptor_Surface.hxx>
#include <HLRBRep_BSurfaceTool.hxx>
//=======================================================================
//function : Surface
//purpose :
//=======================================================================
inline BRepAdaptor_Surface & HLRBRep_Surface::Surface()
{ return mySurf; }
//=======================================================================
//function : FirstUParameter
//purpose :
//=======================================================================
inline Standard_Real HLRBRep_Surface::FirstUParameter()const
{ return HLRBRep_BSurfaceTool::FirstUParameter(mySurf); }
//=======================================================================
//function : LastUParameter
//purpose :
//=======================================================================
inline Standard_Real HLRBRep_Surface::LastUParameter()const
{ return HLRBRep_BSurfaceTool::LastUParameter(mySurf); }
//=======================================================================
//function : FirstVParameter
//purpose :
//=======================================================================
inline Standard_Real HLRBRep_Surface::FirstVParameter()const
{ return HLRBRep_BSurfaceTool::FirstVParameter(mySurf); }
//=======================================================================
//function : LastVParameter
//purpose :
//=======================================================================
inline Standard_Real HLRBRep_Surface::LastVParameter()const
{ return HLRBRep_BSurfaceTool::LastVParameter(mySurf); }
//=======================================================================
//function : UContinuity
//purpose :
//=======================================================================
inline GeomAbs_Shape HLRBRep_Surface::UContinuity()const
{ return HLRBRep_BSurfaceTool::UContinuity(mySurf); }
//=======================================================================
//function : VContinuity
//purpose :
//=======================================================================
inline GeomAbs_Shape HLRBRep_Surface::VContinuity()const
{ return HLRBRep_BSurfaceTool::VContinuity(mySurf); }
//=======================================================================
//function : NbUIntervals
//purpose :
//=======================================================================
inline Standard_Integer
HLRBRep_Surface::NbUIntervals(const GeomAbs_Shape S)
{ return HLRBRep_BSurfaceTool::NbUIntervals(mySurf,S); }
//=======================================================================
//function : NbVIntervals
//purpose :
//=======================================================================
inline Standard_Integer
HLRBRep_Surface::NbVIntervals(const GeomAbs_Shape S)
{ return HLRBRep_BSurfaceTool::NbVIntervals(mySurf,S); }
//=======================================================================
//function : IsUClosed
//purpose :
//=======================================================================
inline Standard_Boolean HLRBRep_Surface::IsUClosed()const
{ return HLRBRep_BSurfaceTool::IsUClosed(mySurf); }
//=======================================================================
//function : IsVClosed
//purpose :
//=======================================================================
inline Standard_Boolean HLRBRep_Surface::IsVClosed()const
{ return HLRBRep_BSurfaceTool::IsVClosed(mySurf); }
//=======================================================================
//function : IsUPeriodic
//purpose :
//=======================================================================
inline Standard_Boolean HLRBRep_Surface::IsUPeriodic()const
{ return HLRBRep_BSurfaceTool::IsUPeriodic(mySurf); }
//=======================================================================
//function : UPeriod
//purpose :
//=======================================================================
inline Standard_Real HLRBRep_Surface::UPeriod()const
{ return HLRBRep_BSurfaceTool::UPeriod(mySurf); }
//=======================================================================
//function : IsVPeriodic
//purpose :
//=======================================================================
inline Standard_Boolean HLRBRep_Surface::IsVPeriodic()const
{ return HLRBRep_BSurfaceTool::IsVPeriodic(mySurf); }
//=======================================================================
//function : VPeriod
//purpose :
//=======================================================================
inline Standard_Real HLRBRep_Surface::VPeriod()const
{ return HLRBRep_BSurfaceTool::VPeriod(mySurf); }
//=======================================================================
//function : D0
//purpose :
//=======================================================================
inline void HLRBRep_Surface::D0(const Standard_Real U,
const Standard_Real V,
gp_Pnt& P) const
{ HLRBRep_BSurfaceTool::D0(mySurf,U,V,P); }
//=======================================================================
//function : D1
//purpose :
//=======================================================================
inline void HLRBRep_Surface::D1(const Standard_Real U,
const Standard_Real V,
gp_Pnt& P,
gp_Vec& D1U,
gp_Vec& D1V) const
{ HLRBRep_BSurfaceTool::D1(mySurf,U,V,P,D1U,D1V); }
//=======================================================================
//function : D2
//purpose :
//=======================================================================
inline void HLRBRep_Surface::D2(const Standard_Real U,
const Standard_Real V,
gp_Pnt& P,
gp_Vec& D1U,
gp_Vec& D1V,
gp_Vec& D2U,
gp_Vec& D2V,
gp_Vec& D2UV) const
{ HLRBRep_BSurfaceTool::D2(mySurf,U,V,P,D1U,D1V,D2U,D2V,D2UV); }
//=======================================================================
//function : D3
//purpose :
//=======================================================================
inline void HLRBRep_Surface::D3(const Standard_Real U,
const Standard_Real V,
gp_Pnt& P,
gp_Vec& D1U,
gp_Vec& D1V,
gp_Vec& D2U,
gp_Vec& D2V,
gp_Vec& D2UV,
gp_Vec& D3U,
gp_Vec& D3V,
gp_Vec& D3UUV,
gp_Vec& D3UVV) const
{ HLRBRep_BSurfaceTool::D3
(mySurf,U,V,P,D1U,D1V,D2U,D2V,D2UV,D3U,D3V,D3UUV,D3UVV); }
//=======================================================================
//function : DN
//purpose :
//=======================================================================
inline gp_Vec HLRBRep_Surface::DN(const Standard_Real U,
const Standard_Real V,
const Standard_Integer Nu,
const Standard_Integer Nv) const
{ return HLRBRep_BSurfaceTool::DN(mySurf,U,V,Nu,Nv); }
//=======================================================================
//function : GetType
//purpose :
//=======================================================================
inline GeomAbs_SurfaceType HLRBRep_Surface::GetType()const
{ return myType; }
//=======================================================================
//function : Cylinder
//purpose :
//=======================================================================
inline gp_Cylinder HLRBRep_Surface::Cylinder()const
{ return HLRBRep_BSurfaceTool::Cylinder(mySurf); }
//=======================================================================
//function : Cone
//purpose :
//=======================================================================
inline gp_Cone HLRBRep_Surface::Cone()const
{ return HLRBRep_BSurfaceTool::Cone(mySurf); }
//=======================================================================
//function : Sphere
//purpose :
//=======================================================================
inline gp_Sphere HLRBRep_Surface::Sphere()const
{ return HLRBRep_BSurfaceTool::Sphere(mySurf); }
//=======================================================================
//function : Torus
//purpose :
//=======================================================================
inline gp_Torus HLRBRep_Surface::Torus()const
{ return HLRBRep_BSurfaceTool::Torus(mySurf); }
//=======================================================================
//function : UDegree
//purpose :
//=======================================================================
inline Standard_Integer HLRBRep_Surface::UDegree()const
{ return HLRBRep_BSurfaceTool::UDegree(mySurf); }
//=======================================================================
//function : NbUPoles
//purpose :
//=======================================================================
inline Standard_Integer HLRBRep_Surface::NbUPoles()const
{ return HLRBRep_BSurfaceTool::NbUPoles(mySurf); }
//=======================================================================
//function : VDegree
//purpose :
//=======================================================================
inline Standard_Integer HLRBRep_Surface::VDegree()const
{ return HLRBRep_BSurfaceTool::VDegree(mySurf); }
//=======================================================================
//function : NbVPoles
//purpose :
//=======================================================================
inline Standard_Integer HLRBRep_Surface::NbVPoles()const
{ return HLRBRep_BSurfaceTool::NbVPoles(mySurf); }
//=======================================================================
//function : NbUKnots
//purpose :
//=======================================================================
inline Standard_Integer HLRBRep_Surface::NbUKnots()const
{ return HLRBRep_BSurfaceTool::NbUKnots(mySurf); }
//=======================================================================
//function : NbVKnots
//purpose :
//=======================================================================
inline Standard_Integer HLRBRep_Surface::NbVKnots()const
{ return HLRBRep_BSurfaceTool::NbVKnots(mySurf); }
//=======================================================================
//function : Axis
//purpose :
//=======================================================================
inline gp_Ax1 HLRBRep_Surface::Axis()const
{ return HLRBRep_BSurfaceTool::AxeOfRevolution(mySurf); }