Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/HLRBRep_Intersector.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: 1992-08-26
0002 // Created by: Christophe MARION
0003 // Copyright (c) 1992-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 _HLRBRep_Intersector_HeaderFile
0018 #define _HLRBRep_Intersector_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <HLRBRep_CInter.hxx>
0025 #include <HLRBRep_InterCSurf.hxx>
0026 class gp_Lin;
0027 class IntCurveSurface_IntersectionPoint;
0028 class IntRes2d_IntersectionSegment;
0029 class IntCurveSurface_IntersectionSegment;
0030 
0031 //! The Intersector  computes 2D  intersections of the projections of 3D curves.
0032 //! It can also computes the intersection of a 3D line and a surface.
0033 class HLRBRep_Intersector 
0034 {
0035 public:
0036 
0037   DEFINE_STANDARD_ALLOC
0038 
0039   Standard_EXPORT HLRBRep_Intersector();
0040   
0041   //! Performs the auto intersection of an edge.
0042   //! The edge domain is cut at start with da1*(b-a) and at end with db1*(b-a).
0043   Standard_EXPORT void Perform (const Standard_Address A1, const Standard_Real da1, const Standard_Real db1);
0044   
0045   //! Performs the intersection between the two edges.
0046   //! The edges domains are cut at start with da*(b-a) and at end with db*(b-a).
0047   Standard_EXPORT void Perform (const Standard_Integer nA, const Standard_Address A1, const Standard_Real da1, const Standard_Real db1, const Standard_Integer nB, const Standard_Address A2, const Standard_Real da2, const Standard_Real db2, const Standard_Boolean NoBound);
0048   
0049   //! Create a single IntersectionPoint (U on A1) (V on A2)
0050   //! The point is middle on both curves.
0051   Standard_EXPORT void SimulateOnePoint (const Standard_Address A1, const Standard_Real U, const Standard_Address A2, const Standard_Real V);
0052   
0053   Standard_EXPORT void Load (Standard_Address& A);
0054   
0055   Standard_EXPORT void Perform (const gp_Lin& L, const Standard_Real P);
0056   
0057   Standard_EXPORT Standard_Boolean IsDone() const;
0058   
0059   Standard_EXPORT Standard_Integer NbPoints() const;
0060   
0061   Standard_EXPORT const IntRes2d_IntersectionPoint& Point (const Standard_Integer N) const;
0062   
0063   Standard_EXPORT const IntCurveSurface_IntersectionPoint& CSPoint (const Standard_Integer N) const;
0064   
0065   Standard_EXPORT Standard_Integer NbSegments() const;
0066   
0067   Standard_EXPORT const IntRes2d_IntersectionSegment& Segment (const Standard_Integer N) const;
0068   
0069   Standard_EXPORT const IntCurveSurface_IntersectionSegment& CSSegment (const Standard_Integer N) const;
0070   
0071   Standard_EXPORT void Destroy();
0072 ~HLRBRep_Intersector()
0073 {
0074   Destroy();
0075 }
0076 
0077 private:
0078 
0079   IntRes2d_IntersectionPoint mySinglePoint;
0080   Standard_Integer myTypePerform;
0081   HLRBRep_CInter myIntersector;
0082   HLRBRep_InterCSurf myCSIntersector;
0083   Standard_Address mySurface;
0084   HLRBRep_ThePolyhedronOfInterCSurf* myPolyhedron;
0085 
0086 };
0087 
0088 #endif // _HLRBRep_Intersector_HeaderFile