1 // Created on: 1993-07-12
2 // Created by: Martine LANGLOIS
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.
18 #include <GeomToStep_MakeCartesianPoint.hxx>
19 #include <GeomToStep_MakePolyline.hxx>
21 #include <gp_Pnt2d.hxx>
22 #include <StdFail_NotDone.hxx>
23 #include <StepGeom_HArray1OfCartesianPoint.hxx>
24 #include <StepGeom_Polyline.hxx>
25 #include <TColgp_Array1OfPnt.hxx>
26 #include <TColgp_Array1OfPnt2d.hxx>
27 #include <TCollection_HAsciiString.hxx>
29 //=============================================================================
30 // Creation d' une polyline Step a partir d' une Array1OfPnt
31 //=============================================================================
32 GeomToStep_MakePolyline::GeomToStep_MakePolyline( const TColgp_Array1OfPnt& P)
35 #include "GeomToStep_MakePolyline_gen.pxx"
38 //=============================================================================
39 // Creation d' une polyline Step a partir d' une Array1OfPnt2d
40 //=============================================================================
42 GeomToStep_MakePolyline::GeomToStep_MakePolyline( const TColgp_Array1OfPnt2d& P)
45 #include "GeomToStep_MakePolyline_gen.pxx"
47 //=============================================================================
49 //=============================================================================
51 const Handle(StepGeom_Polyline) &
52 GeomToStep_MakePolyline::Value() const
54 StdFail_NotDone_Raise_if(!done, "");