Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/BRepFill_TrimSurfaceTool.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-10-21
0002 // Created by: Bruno DUMORTIER
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_TrimSurfaceTool_HeaderFile
0018 #define _BRepFill_TrimSurfaceTool_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <TopoDS_Face.hxx>
0025 #include <TopoDS_Edge.hxx>
0026 #include <gp_Pnt.hxx>
0027 #include <NCollection_Sequence.hxx>
0028 #include <GeomAbs_Shape.hxx>
0029 class Geom2d_Curve;
0030 class gp_Pnt2d;
0031 class Geom_Curve;
0032 
0033 //! Compute the Pcurves and the 3d curves resulting
0034 //! of the trimming of a face by an extruded surface.
0035 class BRepFill_TrimSurfaceTool
0036 {
0037 public:
0038   DEFINE_STANDARD_ALLOC
0039 
0040   Standard_EXPORT BRepFill_TrimSurfaceTool(const occ::handle<Geom2d_Curve>& Bis,
0041                                            const TopoDS_Face&               Face1,
0042                                            const TopoDS_Face&               Face2,
0043                                            const TopoDS_Edge&               Edge1,
0044                                            const TopoDS_Edge&               Edge2,
0045                                            const bool                       Inv1,
0046                                            const bool                       Inv2);
0047 
0048   //! Intersect <Bis> with the projection of the edges
0049   //! <EdgeOnFi> and returns the intersecting parameters
0050   //! on Bis and on the edges
0051   //! P.X() : Parameter on Bis
0052   //! P.Y() : Parameter on EdgeOnF1
0053   //! P.Z() : Parameter on EdgeOnF2
0054   //! raises if <Edge> is not a edge of Face1 or Face2.
0055   Standard_EXPORT void IntersectWith(const TopoDS_Edge&            EdgeOnF1,
0056                                      const TopoDS_Edge&            EdgeOnF2,
0057                                      NCollection_Sequence<gp_Pnt>& Points) const;
0058 
0059   //! returns True if the Line (P, DZ) intersect the Faces
0060   Standard_EXPORT bool IsOnFace(const gp_Pnt2d& Point) const;
0061 
0062   //! returns the parameter of the point <Point> on the
0063   //! Edge <Edge>, assuming that the point is on the edge.
0064   Standard_EXPORT double ProjOn(const gp_Pnt2d& Point, const TopoDS_Edge& Edge) const;
0065 
0066   Standard_EXPORT void Project(const double               U1,
0067                                const double               U2,
0068                                occ::handle<Geom_Curve>&   Curve,
0069                                occ::handle<Geom2d_Curve>& PCurve1,
0070                                occ::handle<Geom2d_Curve>& PCurve2,
0071                                GeomAbs_Shape&             myCont) const;
0072 
0073 private:
0074   TopoDS_Face               myFace1;
0075   TopoDS_Face               myFace2;
0076   TopoDS_Edge               myEdge1;
0077   TopoDS_Edge               myEdge2;
0078   bool                      myInv1;
0079   bool                      myInv2;
0080   occ::handle<Geom2d_Curve> myBis;
0081 };
0082 
0083 #endif // _BRepFill_TrimSurfaceTool_HeaderFile