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.
17 #include <GeomToStep_MakeVector.ixx>
18 #include <StdFail_NotDone.hxx>
20 #include <gp_Dir2d.hxx>
22 #include <Geom_Vector.hxx>
23 #include <StepGeom_Vector.hxx>
24 #include <GeomToStep_MakeDirection.hxx>
25 #include <TCollection_HAsciiString.hxx>
26 #include <UnitsMethods.hxx>
28 //=============================================================================
29 // Creation d' un vector de prostep a partir d' un Vec de gp
30 //=============================================================================
32 GeomToStep_MakeVector::GeomToStep_MakeVector( const gp_Vec& V)
35 Standard_Real lFactor = UnitsMethods::LengthFactor();
36 #include <GeomToStep_MakeVector_gen.pxx>
38 //=============================================================================
39 // Creation d' un vector de prostep a partir d' un Vec2d de gp
40 //=============================================================================
42 GeomToStep_MakeVector::GeomToStep_MakeVector( const gp_Vec2d& V)
44 gp_Dir2d D = gp_Dir2d(V);
45 Standard_Real lFactor = 1.;
46 #include <GeomToStep_MakeVector_gen.pxx>
49 //=============================================================================
50 // Creation d' un vector de prostep a partir d' un Vector de Geom
51 //=============================================================================
53 GeomToStep_MakeVector::GeomToStep_MakeVector ( const Handle(Geom_Vector)&
59 Standard_Real lFactor = UnitsMethods::LengthFactor();
60 #include <GeomToStep_MakeVector_gen.pxx>
63 //=============================================================================
64 // Creation d' un vector de prostep a partir d' un Vector de Geom2d
65 //=============================================================================
67 GeomToStep_MakeVector::GeomToStep_MakeVector ( const Handle(Geom2d_Vector)&
72 gp_Dir2d D = gp_Dir2d(V);
73 Standard_Real lFactor = 1.;
74 #include <GeomToStep_MakeVector_gen.pxx>
77 //=============================================================================
79 //=============================================================================
81 const Handle(StepGeom_Vector) &
82 GeomToStep_MakeVector::Value() const
84 StdFail_NotDone_Raise_if(!done, "");