mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-26 11:05:31 +03:00
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
99 lines
2.9 KiB
C++
99 lines
2.9 KiB
C++
// Created on: 1997-10-07
|
|
// Created by: Laurent BUCHARD
|
|
// Copyright (c) 1997-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 <BRepTopAdaptor_Tool.ixx>
|
|
|
|
#include <BRepTopAdaptor_TopolTool.hxx>
|
|
#include <BRepAdaptor_HSurface.hxx>
|
|
#include <Adaptor3d_HSurface.hxx>
|
|
|
|
|
|
BRepTopAdaptor_Tool::BRepTopAdaptor_Tool() {
|
|
myTopolTool = new BRepTopAdaptor_TopolTool();
|
|
|
|
myloaded=Standard_False;
|
|
}
|
|
|
|
BRepTopAdaptor_Tool::BRepTopAdaptor_Tool(const TopoDS_Face& F,
|
|
const Standard_Real /*Tol2d*/) {
|
|
myTopolTool = new BRepTopAdaptor_TopolTool();
|
|
|
|
Handle(BRepAdaptor_HSurface) surface = new BRepAdaptor_HSurface();
|
|
surface->ChangeSurface().Initialize(F,Standard_True);
|
|
myTopolTool->Initialize(surface);
|
|
myHSurface = surface;
|
|
myloaded=Standard_True;
|
|
}
|
|
|
|
BRepTopAdaptor_Tool::BRepTopAdaptor_Tool(const Handle(Adaptor3d_HSurface)& surface,
|
|
const Standard_Real /*Tol2d*/)
|
|
{
|
|
myTopolTool = new BRepTopAdaptor_TopolTool();
|
|
myTopolTool->Initialize(surface);
|
|
myHSurface = surface;
|
|
myloaded=Standard_True;
|
|
}
|
|
|
|
void BRepTopAdaptor_Tool::Init(const TopoDS_Face& F,
|
|
const Standard_Real /*Tol2d*/)
|
|
{
|
|
Handle(BRepAdaptor_HSurface) surface = new BRepAdaptor_HSurface();
|
|
surface->ChangeSurface().Initialize(F);
|
|
myTopolTool->Initialize(surface);
|
|
myHSurface = surface;
|
|
myloaded=Standard_True;
|
|
}
|
|
|
|
void BRepTopAdaptor_Tool::Init(const Handle(Adaptor3d_HSurface)& surface,
|
|
const Standard_Real /*Tol2d*/)
|
|
{
|
|
myTopolTool->Initialize(surface);
|
|
myHSurface = surface;
|
|
myloaded=Standard_True;
|
|
}
|
|
|
|
Handle_BRepTopAdaptor_TopolTool BRepTopAdaptor_Tool::GetTopolTool() {
|
|
if(myloaded) {
|
|
return(myTopolTool);
|
|
}
|
|
else {
|
|
cout<<"\n*** Error ds Handle_BRepTopAdaptor_TopolTool BRepTopAdaptor_Tool::GetTopolTool()\n"<<endl;
|
|
return(myTopolTool);
|
|
}
|
|
}
|
|
|
|
Handle_Adaptor3d_HSurface BRepTopAdaptor_Tool::GetSurface() {
|
|
if(myloaded) {
|
|
return(myHSurface);
|
|
}
|
|
else {
|
|
cout<<"\n*** Error ds Handle_BRepTopAdaptor_TopolTool BRepTopAdaptor_Tool::GetSurface()\n"<<endl;
|
|
return(myHSurface);
|
|
}
|
|
}
|
|
|
|
void BRepTopAdaptor_Tool::SetTopolTool(const Handle(BRepTopAdaptor_TopolTool)& TT) {
|
|
myTopolTool=TT;
|
|
}
|
|
|
|
void BRepTopAdaptor_Tool::Destroy() {
|
|
int i;
|
|
i=0;
|
|
i++;
|
|
|
|
}
|
|
|