0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / GeomToStep / GeomToStep_MakeAxis1Placement.cxx
1 // Created on: 1993-06-15
2 // Created by: Martine LANGLOIS
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <Geom2d_AxisPlacement.hxx>
19 #include <Geom_Axis1Placement.hxx>
20 #include <GeomToStep_MakeAxis1Placement.hxx>
21 #include <GeomToStep_MakeCartesianPoint.hxx>
22 #include <GeomToStep_MakeDirection.hxx>
23 #include <gp_Ax1.hxx>
24 #include <gp_Ax2d.hxx>
25 #include <StdFail_NotDone.hxx>
26 #include <StepData_Factors.hxx>
27 #include <StepGeom_Axis1Placement.hxx>
28 #include <StepGeom_CartesianPoint.hxx>
29 #include <StepGeom_Direction.hxx>
30 #include <TCollection_HAsciiString.hxx>
31
32 //=============================================================================
33 // Creation d' un axis1_placement de prostep a partir d' un Ax1 de gp
34 //=============================================================================
35 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
36 ( const gp_Ax1& A,
37   const StepData_Factors& theLocalFactors)
38 {
39 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
40 }
41 //=============================================================================
42 // Creation d' un axis1_placement de prostep a partir d' un Ax2d de gp
43 //=============================================================================
44
45 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
46 ( const gp_Ax2d& A,
47   const StepData_Factors& theLocalFactors)
48 {
49 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
50 }
51
52 //=============================================================================
53 // Creation d' un axis1_placement de prostep a partir d' un Ax1Placement de
54 // Geom
55 //=============================================================================
56
57 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
58 ( const Handle(Geom_Axis1Placement)& Axis1,
59   const StepData_Factors& theLocalFactors)
60 {
61   gp_Ax1 A;
62   A = Axis1->Ax1();
63 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
64 }
65
66 //=============================================================================
67 // Creation d' un axis1_placement de prostep a partir d' un AxPlacement de
68 // Geom2d
69 //=============================================================================
70
71 GeomToStep_MakeAxis1Placement::GeomToStep_MakeAxis1Placement
72 ( const Handle(Geom2d_AxisPlacement)& Axis1,
73   const StepData_Factors& theLocalFactors)
74 {
75   gp_Ax2d A;
76   A = Axis1->Ax2d();
77 #include "GeomToStep_MakeAxis1Placement_gen.pxx"
78 }
79
80 //=============================================================================
81 // renvoi des valeurs
82 //=============================================================================
83
84 const Handle(StepGeom_Axis1Placement) &
85       GeomToStep_MakeAxis1Placement::Value() const
86 {
87   StdFail_NotDone_Raise_if (!done, "GeomToStep_MakeAxis1Placement::Value() - no result");
88   return theAxis1Placement;
89 }