1 // Created on: 1992-05-27
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1992-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 #ifndef _BRep_TVertex_HeaderFile
18 #define _BRep_TVertex_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
24 #include <Standard_Real.hxx>
25 #include <BRep_ListOfPointRepresentation.hxx>
26 #include <TopoDS_TVertex.hxx>
32 DEFINE_STANDARD_HANDLE(BRep_TVertex, TopoDS_TVertex)
34 //! The TVertex from BRep inherits from the TVertex
35 //! from TopoDS. It contains the geometric data.
37 //! The TVertex contains a 3d point, location and a tolerance.
38 class BRep_TVertex : public TopoDS_TVertex
44 Standard_EXPORT BRep_TVertex();
46 Standard_Real Tolerance() const;
48 void Tolerance (const Standard_Real T);
50 //! Sets the tolerance to the max of <T> and the
51 //! current tolerance.
52 void UpdateTolerance (const Standard_Real T);
54 const gp_Pnt& Pnt() const;
56 void Pnt (const gp_Pnt& P);
58 const BRep_ListOfPointRepresentation& Points() const;
60 BRep_ListOfPointRepresentation& ChangePoints();
62 //! Returns a copy of the TShape with no sub-shapes.
63 Standard_EXPORT Handle(TopoDS_TShape) EmptyCopy() const Standard_OVERRIDE;
68 DEFINE_STANDARD_RTTI(BRep_TVertex,TopoDS_TVertex)
79 Standard_Real myTolerance;
80 BRep_ListOfPointRepresentation myPoints;
86 #include <BRep_TVertex.lxx>
92 #endif // _BRep_TVertex_HeaderFile