0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / IntCurveSurface / IntCurveSurface_IntersectionSegment.cxx
CommitLineData
b311480e 1// Created on: 1993-04-07
2// Created by: Laurent BUCHARD
3// Copyright (c) 1993-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
d5f74e42 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
973c2be1 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.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
7fd59977 17
42cf5bc1 18#include <IntCurveSurface_IntersectionSegment.hxx>
7fd59977 19
20IntCurveSurface_IntersectionSegment::IntCurveSurface_IntersectionSegment()
21{ }
22//================================================================================
23IntCurveSurface_IntersectionSegment::IntCurveSurface_IntersectionSegment(const IntCurveSurface_IntersectionPoint& P1,
24 const IntCurveSurface_IntersectionPoint& P2):
25 myP1(P1),myP2(P2)
26{
27}
28//================================================================================
29void IntCurveSurface_IntersectionSegment::SetValues(const IntCurveSurface_IntersectionPoint& P1,
30 const IntCurveSurface_IntersectionPoint& P2) {
31 myP1 = P1;
32 myP2 = P2;
33}
34//================================================================================
35void IntCurveSurface_IntersectionSegment::Values(IntCurveSurface_IntersectionPoint& P1,
36 IntCurveSurface_IntersectionPoint& P2) const
37{
38 P1 = myP1;
39 P2 = myP2;
40}
41//================================================================================
42void IntCurveSurface_IntersectionSegment::FirstPoint(IntCurveSurface_IntersectionPoint& P1) const {
43 P1 = myP1;
44}
45//================================================================================
46void IntCurveSurface_IntersectionSegment::SecondPoint(IntCurveSurface_IntersectionPoint& P2) const {
47 P2 = myP2;
48}
49//================================================================================
50const IntCurveSurface_IntersectionPoint &
51 IntCurveSurface_IntersectionSegment::FirstPoint() const {
52 return(myP1);
53}
54//================================================================================
55const IntCurveSurface_IntersectionPoint &
56 IntCurveSurface_IntersectionSegment::SecondPoint() const {
57 return(myP2);
58}
59//================================================================================
60void IntCurveSurface_IntersectionSegment::Dump() const {
04232180 61 std::cout<<"\nIntersectionSegment : "<<std::endl;
7fd59977 62 myP1.Dump();
63 myP2.Dump();
04232180 64 std::cout<<std::endl;
7fd59977 65}
66