1 // Created on: 1993-03-04
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #include <Standard_DomainError.hxx>
19 inline void Contap_Point::SetValue (const gp_Pnt& Pt,
20 const Standard_Real U,
21 const Standard_Real V)
26 onarc = Standard_False;
27 isvtx = Standard_False;
28 ismult= Standard_False;
29 myInternal = Standard_False;
32 inline void Contap_Point::SetParameter (const Standard_Real Para) {
37 inline void Contap_Point::SetVertex(const Handle(Adaptor3d_HVertex)& V) {
39 isvtx = Standard_True;
43 inline void Contap_Point::SetArc (const Handle(Adaptor2d_HCurve2d)& A,
44 const Standard_Real Param,
45 const IntSurf_Transition& TLine,
46 const IntSurf_Transition& TArc) {
48 onarc = Standard_True;
55 inline void Contap_Point::SetMultiple ()
57 ismult = Standard_True;
60 inline void Contap_Point::SetInternal ()
62 myInternal = Standard_True;
66 inline Standard_Boolean Contap_Point::IsMultiple () const
71 inline Standard_Boolean Contap_Point::IsInternal () const
76 inline const gp_Pnt& Contap_Point::Value () const {
81 inline Standard_Real Contap_Point::ParameterOnLine () const {
86 inline void Contap_Point::Parameters (Standard_Real& U1,
87 Standard_Real& V1) const {
93 inline Standard_Boolean Contap_Point::IsOnArc () const{
97 inline const Handle(Adaptor2d_HCurve2d)& Contap_Point::Arc () const {
99 if (!onarc) {throw Standard_DomainError();}
103 inline const IntSurf_Transition& Contap_Point::TransitionOnLine () const {
105 if (!onarc) {throw Standard_DomainError();}
109 inline const IntSurf_Transition& Contap_Point::TransitionOnArc () const {
111 if (!onarc) {throw Standard_DomainError();}
115 inline Standard_Real Contap_Point::ParameterOnArc () const {
117 if (!onarc) {throw Standard_DomainError();}
121 inline Standard_Boolean Contap_Point::IsVertex () const {
125 inline const Handle(Adaptor3d_HVertex)& Contap_Point::Vertex () const {
127 if (!isvtx) {throw Standard_DomainError();}