Loading files
3d097a032This file is pinned to the selected release. Download the original to open it in your design tool.
// Created on: 1993-11-10
// Created by: Jean Yves LEBEY
// Copyright (c) 1993-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 <gp_Pnt2d.hxx>
#include <IntSurf_PntOn2S.hxx>
#include <TopOpeBRep_WPointInter.hxx>
//=================================================================================================
TopOpeBRep_WPointInter::TopOpeBRep_WPointInter() = default;
//=================================================================================================
void TopOpeBRep_WPointInter::Set(const IntSurf_PntOn2S& P)
{
myPP2S = (IntSurf_PntOn2S*)&P;
}
//=================================================================================================
void TopOpeBRep_WPointInter::ParametersOnS1(double& U1, double& V1) const
{
myPP2S->ParametersOnS1(U1, V1);
}
//=================================================================================================
void TopOpeBRep_WPointInter::ParametersOnS2(double& U2, double& V2) const
{
myPP2S->ParametersOnS2(U2, V2);
}
//=================================================================================================
void TopOpeBRep_WPointInter::Parameters(double& U1, double& V1, double& U2, double& V2) const
{
myPP2S->Parameters(U1, V1, U2, V2);
}
//=================================================================================================
gp_Pnt2d TopOpeBRep_WPointInter::ValueOnS1() const
{
double u, v;
myPP2S->ParametersOnS1(u, v);
return gp_Pnt2d(u, v);
}
//=================================================================================================
gp_Pnt2d TopOpeBRep_WPointInter::ValueOnS2() const
{
double u, v;
myPP2S->ParametersOnS2(u, v);
return gp_Pnt2d(u, v);
}
//=================================================================================================
const gp_Pnt& TopOpeBRep_WPointInter::Value() const
{
return myPP2S->Value();
}
IntSurf_PntOn2S* TopOpeBRep_WPointInter::PPntOn2SDummy() const
{
return myPP2S;
}