Back to home page

EIC code displayed by LXR

 
 

    


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

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 <TColStd_Array1OfReal.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 
0036 
0037 class BRepFill 
0038 {
0039 public:
0040 
0041   DEFINE_STANDARD_ALLOC
0042 
0043   
0044   //! Computes a ruled surface between two edges.
0045   Standard_EXPORT static TopoDS_Face Face (const TopoDS_Edge& Edge1, const TopoDS_Edge& Edge2);
0046   
0047   //! Computes a ruled surface between two wires.
0048   //! The wires must have the same number of edges.
0049   Standard_EXPORT static TopoDS_Shell Shell (const TopoDS_Wire& Wire1, const TopoDS_Wire& Wire2);
0050   
0051   //! Computes  <AxeProf>  as Follow. <Location> is
0052   //! the Position of the nearest vertex V  of <Profile>
0053   //! to <Spine>.<XDirection> is confused with the tangent
0054   //! to <Spine> at the projected point of V on the Spine.
0055   //! <Direction> is normal to <Spine>.
0056   //! <Spine> is a plane wire or a plane face.
0057   Standard_EXPORT static void Axe (const TopoDS_Shape& Spine, const TopoDS_Wire& Profile, gp_Ax3& AxeProf, Standard_Boolean& ProfOnSpine, const Standard_Real Tol);
0058   
0059   //! Compute ACR on a  wire
0060   Standard_EXPORT static void ComputeACR (const TopoDS_Wire& wire, TColStd_Array1OfReal& ACR);
0061   
0062   //! Insert ACR on a  wire
0063   Standard_EXPORT static TopoDS_Wire InsertACR (const TopoDS_Wire& wire, const TColStd_Array1OfReal& ACRcuts, const Standard_Real prec);
0064 
0065 private:
0066   
0067   //! Computes origins and orientation on a closed wire
0068   Standard_EXPORT static void SearchOrigin (TopoDS_Wire& W, const gp_Pnt& P, const gp_Vec& V, const Standard_Real Tol);
0069 
0070 private:
0071 
0072   friend class BRepFill_PipeShell;
0073 
0074 };
0075 
0076 #endif // _BRepFill_HeaderFile