mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
Adaptor2d_Curve2d, Adaptor3d_Curve and Adaptor3d_Surface now inherit Standard_Transient. Interfaces Adaptor2d_HCurve2d, Adaptor3d_HCurve, Adaptor3d_HSurface and their subclasses are now aliases to Adaptor2d_Curve2d, Adaptor3d_Curve and Adaptor3d_Surface. Removed numerous unsafe reinterpret casts. Generic classes Adaptor3d_GenHCurve, Adaptor3d_GenHSurface, Adaptor2d_GenHCurve2d have been removed. Several redundant .lxx files have been merged into .hxx. Removed obsolete adaptor classes with H suffix.
213 lines
4.4 KiB
Plaintext
213 lines
4.4 KiB
Plaintext
// Created on: 1992-05-06
|
|
// Created by: Jacques GOUSSARD
|
|
// 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.
|
|
|
|
inline IntPatch_Point::IntPatch_Point ()
|
|
: para(0.0), tol(0.0), tgt(Standard_False), mult(Standard_False),
|
|
onS1(Standard_False), vtxonS1(Standard_False), prm1(0.0),
|
|
onS2(Standard_False), vtxonS2(Standard_False), prm2(0.0)
|
|
{
|
|
}
|
|
|
|
|
|
inline void IntPatch_Point::SetValue (const gp_Pnt& Pt)
|
|
{
|
|
pt.SetValue(Pt);
|
|
}
|
|
|
|
//=======================================================================
|
|
////function : SetValue
|
|
//purpose :
|
|
//=======================================================================
|
|
inline void IntPatch_Point::SetValue(const IntSurf_PntOn2S& thePOn2S)
|
|
{
|
|
pt = thePOn2S;
|
|
}
|
|
|
|
inline void IntPatch_Point::SetTolerance (const Standard_Real Tol)
|
|
{
|
|
tol = Tol;
|
|
}
|
|
|
|
|
|
inline void IntPatch_Point::SetParameters (const Standard_Real U1,
|
|
const Standard_Real V1,
|
|
const Standard_Real U2,
|
|
const Standard_Real V2)
|
|
{
|
|
pt.SetValue(U1,V1,U2,V2);
|
|
}
|
|
|
|
|
|
inline void IntPatch_Point::SetParameter (const Standard_Real Para)
|
|
{
|
|
para = Para;
|
|
}
|
|
|
|
|
|
inline void IntPatch_Point::SetMultiple (const Standard_Boolean IsMult)
|
|
{
|
|
mult = IsMult;
|
|
}
|
|
|
|
|
|
inline const gp_Pnt& IntPatch_Point::Value () const
|
|
{
|
|
return pt.Value();
|
|
}
|
|
|
|
|
|
inline Standard_Real IntPatch_Point::Tolerance () const
|
|
{
|
|
return tol;
|
|
}
|
|
|
|
|
|
inline Standard_Real IntPatch_Point::ParameterOnLine () const
|
|
{
|
|
return para;
|
|
}
|
|
|
|
|
|
inline Standard_Boolean IntPatch_Point::IsTangencyPoint () const
|
|
{
|
|
return tgt;
|
|
}
|
|
|
|
|
|
inline void IntPatch_Point::ParametersOnS1 (Standard_Real& U1, Standard_Real& V1) const
|
|
{
|
|
pt.ParametersOnS1(U1,V1);
|
|
}
|
|
|
|
|
|
inline void IntPatch_Point::ParametersOnS2 (Standard_Real& U2, Standard_Real& V2) const
|
|
{
|
|
pt.ParametersOnS2(U2,V2);
|
|
}
|
|
|
|
|
|
inline Standard_Boolean IntPatch_Point::IsMultiple () const
|
|
{
|
|
return mult;
|
|
}
|
|
|
|
|
|
inline Standard_Boolean IntPatch_Point::IsOnDomS1 () const
|
|
{
|
|
return onS1;
|
|
}
|
|
|
|
|
|
inline Standard_Boolean IntPatch_Point::IsVertexOnS1 () const
|
|
{
|
|
return vtxonS1;
|
|
}
|
|
|
|
|
|
inline const Handle(Adaptor3d_HVertex)& IntPatch_Point::VertexOnS1 () const
|
|
{
|
|
if (!vtxonS1) {throw Standard_DomainError();}
|
|
return vS1;
|
|
}
|
|
|
|
|
|
inline const Handle(Adaptor2d_Curve2d)& IntPatch_Point::ArcOnS1 () const
|
|
{
|
|
if (!onS1) {throw Standard_DomainError();}
|
|
return arcS1;
|
|
}
|
|
|
|
|
|
inline const IntSurf_Transition& IntPatch_Point::TransitionLineArc1 () const
|
|
{
|
|
if (!onS1) {throw Standard_DomainError();}
|
|
return traline1;
|
|
}
|
|
|
|
|
|
inline const IntSurf_Transition& IntPatch_Point::TransitionOnS1 () const
|
|
{
|
|
if (!onS1) {throw Standard_DomainError();}
|
|
return tra1;
|
|
}
|
|
|
|
|
|
inline Standard_Real IntPatch_Point::ParameterOnArc1 () const
|
|
{
|
|
if (!onS1) {throw Standard_DomainError();}
|
|
return prm1;
|
|
}
|
|
|
|
|
|
inline Standard_Boolean IntPatch_Point::IsOnDomS2 () const
|
|
{
|
|
return onS2;
|
|
}
|
|
|
|
|
|
inline Standard_Boolean IntPatch_Point::IsVertexOnS2 () const
|
|
{
|
|
return vtxonS2;
|
|
}
|
|
|
|
|
|
inline const Handle(Adaptor3d_HVertex)& IntPatch_Point::VertexOnS2 () const
|
|
{
|
|
if (!vtxonS2) {throw Standard_DomainError();}
|
|
return vS2;
|
|
}
|
|
|
|
|
|
inline const Handle(Adaptor2d_Curve2d)& IntPatch_Point::ArcOnS2 () const
|
|
{
|
|
if (!onS2) {throw Standard_DomainError();}
|
|
return arcS2;
|
|
}
|
|
|
|
|
|
inline const IntSurf_Transition& IntPatch_Point::TransitionLineArc2 () const
|
|
{
|
|
if (!onS2) {throw Standard_DomainError();}
|
|
return traline2;
|
|
}
|
|
|
|
|
|
inline const IntSurf_Transition& IntPatch_Point::TransitionOnS2 () const
|
|
{
|
|
if (!onS2) {throw Standard_DomainError();}
|
|
return tra2;
|
|
}
|
|
|
|
|
|
inline Standard_Real IntPatch_Point::ParameterOnArc2 () const
|
|
{
|
|
if (!onS2) {throw Standard_DomainError();}
|
|
return prm2;
|
|
}
|
|
|
|
|
|
inline const IntSurf_PntOn2S& IntPatch_Point::PntOn2S() const
|
|
{
|
|
return pt;
|
|
}
|
|
|
|
|
|
inline void IntPatch_Point::Parameters(Standard_Real& U1, Standard_Real& V1,
|
|
Standard_Real& U2, Standard_Real& V2) const
|
|
{
|
|
pt.Parameters(U1,V1,U2,V2);
|
|
}
|