mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Generic classes from "BRepApprox" package: "BRepApprox_ApproxLineGen" and "BRepApprox_SurfaceToolGen" converted to the non-generic classes "BRepApprox_ApproxLine" and "BRepApprox_SurfaceTool". Generic classes from "BRepBlend" package: "BRepBlend_HCurve3dToolGen" and "BRepBlend_HCurve2dToolGen" converted to the non-generic classes "BRepBlend_HCurve3dTool" and "BRepBlend_HCurve2dTool". Generic classes from "Blend" package: "Blend_Extremity", "Blend_Line" and "Blend_PointOnRst" moved to the corresponding non-generic classes "BRepBlend_Extremity", "BRepBlend_Line" and "BRepBlend_PointOnRst" to "BRepBlend" package. And some other minor changes were done. Field "myPntOn2S" was deleted from "BRepApprox_ApproxLine" class. Therefore BRepApprox_ApproxLine::Point(...) method was a little changed.
163 lines
5.6 KiB
Plaintext
163 lines
5.6 KiB
Plaintext
// Created on: 1992-10-22
|
|
// Created by: Laurent BUCHARD
|
|
// 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 <GeomAbs_CurveType.hxx>
|
|
#include <GeomAbs_Shape.hxx>
|
|
|
|
#include <gp_Vec.hxx>
|
|
#include <gp_Lin.hxx>
|
|
#include <gp_Circ.hxx>
|
|
#include <gp_Elips.hxx>
|
|
#include <gp_Parab.hxx>
|
|
#include <gp_Hypr.hxx>
|
|
|
|
|
|
#include <Geom_BezierCurve.hxx>
|
|
#include <Geom_BSplineCurve.hxx>
|
|
|
|
#include <TColStd_Array1OfReal.hxx>
|
|
|
|
//============================================================
|
|
inline Standard_Real BRepBlend_HCurveTool::FirstParameter (const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->FirstParameter());
|
|
}
|
|
//============================================================
|
|
inline Standard_Real BRepBlend_HCurveTool::LastParameter (const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->LastParameter());
|
|
}
|
|
//============================================================
|
|
inline GeomAbs_Shape BRepBlend_HCurveTool::Continuity (const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->Continuity());
|
|
}
|
|
//============================================================
|
|
inline Standard_Integer BRepBlend_HCurveTool::NbIntervals(const Handle(Adaptor3d_HCurve)& C,const GeomAbs_Shape Sh) {
|
|
return(C->NbIntervals(Sh));
|
|
}
|
|
//============================================================
|
|
inline void BRepBlend_HCurveTool::Intervals(const Handle(Adaptor3d_HCurve)& C,
|
|
TColStd_Array1OfReal& Tab,
|
|
const GeomAbs_Shape Sh) {
|
|
C->Intervals(Tab,Sh);
|
|
}
|
|
//============================================================
|
|
inline Standard_Boolean BRepBlend_HCurveTool::IsClosed(const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->IsClosed());
|
|
}
|
|
//============================================================
|
|
inline Standard_Boolean BRepBlend_HCurveTool::IsPeriodic(const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->IsPeriodic());
|
|
}
|
|
//============================================================
|
|
inline Standard_Real BRepBlend_HCurveTool::Period(const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->Period());
|
|
}
|
|
//============================================================
|
|
inline gp_Pnt BRepBlend_HCurveTool::Value (const Handle(Adaptor3d_HCurve)& C,
|
|
const Standard_Real U) {
|
|
return(C->Value(U));
|
|
}
|
|
//============================================================
|
|
inline void BRepBlend_HCurveTool::D0(const Handle(Adaptor3d_HCurve)& C,
|
|
const Standard_Real U,
|
|
gp_Pnt& P) {
|
|
C->D0(U,P);
|
|
}
|
|
//============================================================
|
|
inline void BRepBlend_HCurveTool::D1 (const Handle(Adaptor3d_HCurve)& C,
|
|
const Standard_Real U,
|
|
gp_Pnt& P,
|
|
gp_Vec& T) {
|
|
C->D1(U,P,T);
|
|
}
|
|
//============================================================
|
|
inline void BRepBlend_HCurveTool::D2 (const Handle(Adaptor3d_HCurve)& C,
|
|
const Standard_Real U,
|
|
gp_Pnt& P,
|
|
gp_Vec& T,
|
|
gp_Vec& N) {
|
|
|
|
C->D2(U,P,T,N);
|
|
}
|
|
//============================================================
|
|
inline void BRepBlend_HCurveTool::D3 (const Handle(Adaptor3d_HCurve)& C,
|
|
const Standard_Real U,
|
|
gp_Pnt& P,
|
|
gp_Vec& V1,
|
|
gp_Vec& V2,
|
|
gp_Vec& V3) {
|
|
|
|
C->D3(U,P,V1,V2,V3);
|
|
}
|
|
//============================================================
|
|
inline gp_Vec BRepBlend_HCurveTool::DN (const Handle(Adaptor3d_HCurve)& C,
|
|
const Standard_Real U,
|
|
const Standard_Integer N) {
|
|
|
|
return(C->DN(U,N));
|
|
}
|
|
//============================================================
|
|
inline Standard_Real BRepBlend_HCurveTool::Resolution(const Handle(Adaptor3d_HCurve)& C,
|
|
const Standard_Real R3d) {
|
|
return(C->Resolution(R3d));
|
|
}
|
|
//============================================================
|
|
inline GeomAbs_CurveType BRepBlend_HCurveTool::GetType(const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->GetType());
|
|
}
|
|
//============================================================
|
|
inline gp_Lin BRepBlend_HCurveTool::Line (const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->Line());
|
|
}
|
|
//============================================================
|
|
inline gp_Circ BRepBlend_HCurveTool::Circle (const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->Circle());
|
|
}
|
|
//============================================================
|
|
inline gp_Elips BRepBlend_HCurveTool::Ellipse (const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->Ellipse());
|
|
}
|
|
//============================================================
|
|
inline gp_Parab BRepBlend_HCurveTool::Parabola (const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->Parabola());
|
|
}
|
|
//============================================================
|
|
inline gp_Hypr BRepBlend_HCurveTool::Hyperbola (const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->Hyperbola());
|
|
}
|
|
//============================================================
|
|
inline Handle(Geom_BezierCurve) BRepBlend_HCurveTool::Bezier (const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->Bezier());
|
|
}
|
|
//============================================================
|
|
inline Handle(Geom_BSplineCurve) BRepBlend_HCurveTool::BSpline (const Handle(Adaptor3d_HCurve)& C) {
|
|
return(C->BSpline());
|
|
}
|
|
//============================================================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|