0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / BRepFill / BRepFill_TrimSurfaceTool.hxx
CommitLineData
42cf5bc1 1// Created on: 1994-10-21
2// Created by: Bruno DUMORTIER
3// Copyright (c) 1994-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
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.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _BRepFill_TrimSurfaceTool_HeaderFile
18#define _BRepFill_TrimSurfaceTool_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <TopoDS_Face.hxx>
25#include <TopoDS_Edge.hxx>
42cf5bc1 26#include <TColgp_SequenceOfPnt.hxx>
42cf5bc1 27#include <GeomAbs_Shape.hxx>
28class Geom2d_Curve;
42cf5bc1 29class gp_Pnt2d;
30class Geom_Curve;
31
32
33//! Compute the Pcurves and the 3d curves resulting
34//! of the trimming of a face by an extruded surface.
35class BRepFill_TrimSurfaceTool
36{
37public:
38
39 DEFINE_STANDARD_ALLOC
40
41
42 Standard_EXPORT BRepFill_TrimSurfaceTool(const Handle(Geom2d_Curve)& Bis, const TopoDS_Face& Face1, const TopoDS_Face& Face2, const TopoDS_Edge& Edge1, const TopoDS_Edge& Edge2, const Standard_Boolean Inv1, const Standard_Boolean Inv2);
43
44 //! Intersect <Bis> with the projection of the edges
45 //! <EdgeOnFi> and returns the intersecting parameters
46 //! on Bis and on the edges
47 //! P.X() : Parameter on Bis
48 //! P.Y() : Parameter on EdgeOnF1
49 //! P.Z() : Parameter on EdgeOnF2
50 //! raises if <Edge> is not a edge of Face1 or Face2.
51 Standard_EXPORT void IntersectWith (const TopoDS_Edge& EdgeOnF1, const TopoDS_Edge& EdgeOnF2, TColgp_SequenceOfPnt& Points) const;
52
53 //! returns True if the Line (P, DZ) intersect the Faces
54 Standard_EXPORT Standard_Boolean IsOnFace (const gp_Pnt2d& Point) const;
55
56 //! returns the parameter of the point <Point> on the
57 //! Edge <Edge>, assuming that the point is on the edge.
58 Standard_EXPORT Standard_Real ProjOn (const gp_Pnt2d& Point, const TopoDS_Edge& Edge) const;
59
60 Standard_EXPORT void Project (const Standard_Real U1, const Standard_Real U2, Handle(Geom_Curve)& Curve, Handle(Geom2d_Curve)& PCurve1, Handle(Geom2d_Curve)& PCurve2, GeomAbs_Shape& myCont) const;
61
62
63
64
65protected:
66
67
68
69
70
71private:
72
73
74
75 TopoDS_Face myFace1;
76 TopoDS_Face myFace2;
77 TopoDS_Edge myEdge1;
78 TopoDS_Edge myEdge2;
79 Standard_Boolean myInv1;
80 Standard_Boolean myInv2;
81 Handle(Geom2d_Curve) myBis;
82
83
84};
85
86
87
88
89
90
91
92#endif // _BRepFill_TrimSurfaceTool_HeaderFile