1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 // modif du 14/09/95 mjm
15 // prise en compte de l'unite choisi par l'utilisateur
16 // pour l'ecriture du fichier IGES.
18 #include <GeomToIGES_GeomPoint.ixx>
23 #include <Geom_Point.hxx>
25 #include <IGESGeom_Point.hxx>
27 #include <Interface_Macros.hxx>
30 //=============================================================================
31 // GeomToIGES_GeomPoint
32 //=============================================================================
34 GeomToIGES_GeomPoint::GeomToIGES_GeomPoint
35 (const GeomToIGES_GeomEntity& GE)
36 :GeomToIGES_GeomEntity(GE)
41 //=============================================================================
42 // GeomToIGES_GeomPoint
43 //=============================================================================
45 GeomToIGES_GeomPoint::GeomToIGES_GeomPoint()
47 :GeomToIGES_GeomEntity()
52 //=============================================================================
53 // Transfer de Point de Geom vers IGES
55 //=============================================================================
57 Handle(IGESGeom_Point) GeomToIGES_GeomPoint::TransferPoint
58 ( const Handle(Geom_Point)& P)
60 Handle(IGESGeom_Point) Piges = new IGESGeom_Point;
67 Handle(IGESBasic_SubfigureDef) voidsubdef;
68 Piges-> Init(gp_XYZ(X/GetUnit(),Y/GetUnit(),Z/GetUnit()), voidsubdef);
72 //=============================================================================
73 // Transfer de Point de Geom vers IGES
75 //=============================================================================
77 Handle(IGESGeom_Point) GeomToIGES_GeomPoint::TransferPoint
78 ( const Handle(Geom_CartesianPoint)& P)
81 Handle(IGESGeom_Point) Piges = new IGESGeom_Point;
88 Handle(IGESBasic_SubfigureDef) voidsubdef;
89 Piges-> Init(gp_XYZ(X/GetUnit(),Y/GetUnit(),Z/GetUnit()), voidsubdef);