1 // Copyright (c) 1995-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #include <StdFail_UndefinedDerivative.hxx>
16 #include <TColgp_HSequenceOfXY.hxx>
18 inline void IntSurf_PathPoint::AddUV(const Standard_Real U,
19 const Standard_Real V) {
20 sequv->Append(gp_XY(U,V));
23 inline void IntSurf_PathPoint::SetDirections (const gp_Vec& V,
26 istgt = Standard_False;
31 inline void IntSurf_PathPoint::SetTangency (const Standard_Boolean Tang) {
36 inline void IntSurf_PathPoint::SetPassing (const Standard_Boolean Pass) {
41 inline const gp_Pnt& IntSurf_PathPoint::Value () const
46 inline void IntSurf_PathPoint::Value2d (Standard_Real& U,
47 Standard_Real& V) const
49 gp_XY uv(sequv->Sequence().First());
54 inline Standard_Boolean IntSurf_PathPoint::IsPassingPnt () const {
59 inline Standard_Boolean IntSurf_PathPoint::IsTangent () const {
64 inline const gp_Vec& IntSurf_PathPoint::Direction3d () const {
66 if (istgt) {throw StdFail_UndefinedDerivative();}
70 inline const gp_Dir2d& IntSurf_PathPoint::Direction2d () const {
72 if (istgt) {throw StdFail_UndefinedDerivative();}
76 inline Standard_Integer IntSurf_PathPoint::Multiplicity () const {
78 return (sequv->Length()-1);
81 inline void IntSurf_PathPoint::Parameters (const Standard_Integer Index,
83 Standard_Real& V) const
85 gp_XY uv(sequv->Value(Index+1));