Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/BRepFill.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 1994-03-03
0002 // Created by: Joelle CHAUVET
0003 // Copyright (c) 1994-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 _BRepFill_HeaderFile
0018 #define _BRepFill_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Boolean.hxx>
0025 #include <NCollection_Array1.hxx>
0026 class TopoDS_Face;
0027 class TopoDS_Edge;
0028 class TopoDS_Shell;
0029 class TopoDS_Wire;
0030 class TopoDS_Shape;
0031 class gp_Ax3;
0032 class gp_Pnt;
0033 class gp_Vec;
0034 
0035 class BRepFill
0036 {
0037 public:
0038   DEFINE_STANDARD_ALLOC
0039 
0040   //! Computes a ruled surface between two edges.
0041   Standard_EXPORT static TopoDS_Face Face(const TopoDS_Edge& Edge1, const TopoDS_Edge& Edge2);
0042 
0043   //! Computes a ruled surface between two wires.
0044   //! The wires must have the same number of edges.
0045   Standard_EXPORT static TopoDS_Shell Shell(const TopoDS_Wire& Wire1, const TopoDS_Wire& Wire2);
0046 
0047   //! Computes <AxeProf> as Follow. <Location> is
0048   //! the Position of the nearest vertex V of <Profile>
0049   //! to <Spine>.<XDirection> is confused with the tangent
0050   //! to <Spine> at the projected point of V on the Spine.
0051   //! <Direction> is normal to <Spine>.
0052   //! <Spine> is a plane wire or a plane face.
0053   Standard_EXPORT static void Axe(const TopoDS_Shape& Spine,
0054                                   const TopoDS_Wire&  Profile,
0055                                   gp_Ax3&             AxeProf,
0056                                   bool&               ProfOnSpine,
0057                                   const double        Tol);
0058 
0059   //! Compute ACR on a wire
0060   Standard_EXPORT static void ComputeACR(const TopoDS_Wire& wire, NCollection_Array1<double>& ACR);
0061 
0062   //! Insert ACR on a wire
0063   Standard_EXPORT static TopoDS_Wire InsertACR(const TopoDS_Wire&                wire,
0064                                                const NCollection_Array1<double>& ACRcuts,
0065                                                const double                      prec);
0066 
0067 private:
0068   //! Computes origins and orientation on a closed wire
0069   Standard_EXPORT static void SearchOrigin(TopoDS_Wire&  W,
0070                                            const gp_Pnt& P,
0071                                            const gp_Vec& V,
0072                                            const double  Tol);
0073 
0074 private:
0075   friend class BRepFill_PipeShell;
0076 };
0077 
0078 #endif // _BRepFill_HeaderFile