1 // Created on: 1993-06-17
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 <Geom2d_Vector.hxx>
19 #include <Geom_Vector.hxx>
20 #include <GeomToStep_MakeDirection.hxx>
21 #include <GeomToStep_MakeVector.hxx>
23 #include <gp_Dir2d.hxx>
25 #include <gp_Vec2d.hxx>
26 #include <StdFail_NotDone.hxx>
27 #include <StepGeom_Vector.hxx>
28 #include <TCollection_HAsciiString.hxx>
29 #include <UnitsMethods.hxx>
31 //=============================================================================
32 // Creation d' un vector de prostep a partir d' un Vec de gp
33 //=============================================================================
34 GeomToStep_MakeVector::GeomToStep_MakeVector( const gp_Vec& V)
37 Standard_Real lFactor = UnitsMethods::LengthFactor();
38 #include "GeomToStep_MakeVector_gen.pxx"
40 //=============================================================================
41 // Creation d' un vector de prostep a partir d' un Vec2d de gp
42 //=============================================================================
44 GeomToStep_MakeVector::GeomToStep_MakeVector( const gp_Vec2d& V)
46 gp_Dir2d D = gp_Dir2d(V);
47 Standard_Real lFactor = 1.;
48 #include "GeomToStep_MakeVector_gen.pxx"
51 //=============================================================================
52 // Creation d' un vector de prostep a partir d' un Vector de Geom
53 //=============================================================================
55 GeomToStep_MakeVector::GeomToStep_MakeVector ( const Handle(Geom_Vector)&
61 Standard_Real lFactor = UnitsMethods::LengthFactor();
62 #include "GeomToStep_MakeVector_gen.pxx"
65 //=============================================================================
66 // Creation d' un vector de prostep a partir d' un Vector de Geom2d
67 //=============================================================================
69 GeomToStep_MakeVector::GeomToStep_MakeVector ( const Handle(Geom2d_Vector)&
74 gp_Dir2d D = gp_Dir2d(V);
75 Standard_Real lFactor = 1.;
76 #include "GeomToStep_MakeVector_gen.pxx"
79 //=============================================================================
81 //=============================================================================
83 const Handle(StepGeom_Vector) &
84 GeomToStep_MakeVector::Value() const
86 StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeVector::Value() - no result");