Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:09

0001 // Created on: 1993-07-06
0002 // Created by: Remi LEQUETTE
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _BRepBuilderAPI_HeaderFile
0018 #define _BRepBuilderAPI_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Real.hxx>
0025 class Geom_Plane;
0026 
0027 
0028 //! The  BRepBuilderAPI  package   provides  an   Application
0029 //! Programming Interface  for the BRep  topology data
0030 //! structure.
0031 //!
0032 //! The API is a set of classes aiming to provide :
0033 //!
0034 //! * High level and simple calls  for the most common
0035 //! operations.
0036 //!
0037 //! *    Keeping   an   access  on    the    low-level
0038 //! implementation of high-level calls.
0039 //!
0040 //! * Examples  of programming of high-level operations
0041 //! from low-level operations.
0042 //!
0043 //! * A complete coverage of modelling :
0044 //!
0045 //! - Creating vertices ,edges, faces, solids.
0046 //!
0047 //! - Sweeping operations.
0048 //!
0049 //! - Boolean operations.
0050 //!
0051 //! - Global properties computation.
0052 //!
0053 //! The API provides  classes to  build  objects:
0054 //!
0055 //! * The  constructors  of the classes  provides  the
0056 //! different constructions methods.
0057 //!
0058 //! * The  class keeps as fields the   different tools
0059 //! used to build the object.
0060 //!
0061 //! *   The class  provides  a  casting  method to get
0062 //! automatically the  result  with  a   function-like
0063 //! call.
0064 //!
0065 //! For example to make a  vertex <V> from a point <P>
0066 //! one can writes :
0067 //!
0068 //! V = BRepBuilderAPI_MakeVertex(P);
0069 //!
0070 //! or
0071 //!
0072 //! BRepBuilderAPI_MakeVertex MV(P);
0073 //! V = MV.Vertex();
0074 //!
0075 //! For tolerances  a default precision is  used which
0076 //! can    be   changed    by    the   packahe  method
0077 //! BRepBuilderAPI::Precision.
0078 //!
0079 //! For error handling the BRepBuilderAPI commands raise only
0080 //! the NotDone error. When Done is false on a command
0081 //! the error description can be asked to the command.
0082 //!
0083 //! In  theory  the  comands can be    called with any
0084 //! arguments, argument  checking  is performed by the
0085 //! command.
0086 class BRepBuilderAPI 
0087 {
0088 public:
0089 
0090   DEFINE_STANDARD_ALLOC
0091 
0092   
0093   //! Sets    the current plane.
0094   Standard_EXPORT static void Plane (const Handle(Geom_Plane)& P);
0095   
0096   //! Returns the current plane.
0097   Standard_EXPORT static const Handle(Geom_Plane)& Plane();
0098   
0099   //! Sets the default precision.  The current Precision
0100   //! is returned.
0101   Standard_EXPORT static void Precision (const Standard_Real P);
0102   
0103   //! Returns the default precision.
0104   Standard_EXPORT static Standard_Real Precision();
0105 
0106 };
0107 
0108 #endif // _BRepBuilderAPI_HeaderFile