Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:27

0001 // Created on: 1997-11-28
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1997-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 _TopOpeBRepTool_PROJECT_HeaderFile
0018 #define _TopOpeBRepTool_PROJECT_HeaderFile
0019 
0020 #include <TopOpeBRepTool_define.hxx>
0021 
0022 #include <Geom_Surface.hxx>
0023 #include <BRepAdaptor_Curve.hxx>
0024 #include <BRepAdaptor_Curve2d.hxx>
0025 #include <Extrema_ExtPC.hxx>
0026 #include <Extrema_ExtPC2d.hxx>
0027 #include <Extrema_ExtFlag.hxx>
0028 #include <Extrema_ExtAlgo.hxx>
0029 
0030 // ----------------------------------------------------------------------
0031 //  project point <P> on geometries (curve <C>,surface <S>)
0032 // ----------------------------------------------------------------------
0033 Standard_EXPORT void FUN_tool_bounds(const TopoDS_Edge& E,Standard_Real& f,Standard_Real& l);
0034 Standard_EXPORT Standard_Integer FUN_tool_getindex(const Extrema_ExtPC& ponc);
0035 Standard_EXPORT Standard_Integer FUN_tool_getindex(const Extrema_ExtPC2d& ponc);
0036 Standard_EXPORT Standard_Boolean FUN_tool_projPonC(const gp_Pnt& P,const Standard_Real tole,const BRepAdaptor_Curve& BAC,const Standard_Real pmin,const Standard_Real pmax,Standard_Real& param,Standard_Real& dist);
0037 Standard_EXPORT Standard_Boolean FUN_tool_projPonC(const gp_Pnt& P,const BRepAdaptor_Curve& BAC,const Standard_Real pmin,const Standard_Real pmax,Standard_Real& param,Standard_Real& dist);
0038 Standard_EXPORT Standard_Boolean FUN_tool_projPonC(const gp_Pnt& P,const BRepAdaptor_Curve& BAC,Standard_Real& param,Standard_Real& dist);
0039 Standard_EXPORT Standard_Boolean FUN_tool_projPonC2D(const gp_Pnt& P,const Standard_Real tole,const BRepAdaptor_Curve2d& BAC2D,const Standard_Real pmin,const Standard_Real pmax,Standard_Real& param,Standard_Real& dist);
0040 Standard_EXPORT Standard_Boolean FUN_tool_projPonC2D(const gp_Pnt& P,const BRepAdaptor_Curve2d& BAC2D,const Standard_Real pmin,const Standard_Real pmax,Standard_Real& param,Standard_Real& dist);
0041 Standard_EXPORT Standard_Boolean FUN_tool_projPonC2D(const gp_Pnt& P,const BRepAdaptor_Curve2d& BAC2D,Standard_Real& param,Standard_Real& dist);
0042 Standard_EXPORT Standard_Boolean FUN_tool_projPonS(const gp_Pnt& P,const Handle(Geom_Surface)& S,gp_Pnt2d& UV,Standard_Real& dist,
0043                                                    const Extrema_ExtFlag anExtFlag=Extrema_ExtFlag_MINMAX,
0044                                                    const Extrema_ExtAlgo anExtAlgo=Extrema_ExtAlgo_Grad);
0045 
0046 // ----------------------------------------------------------------------
0047 //  project point <P> on topologies (edge <E>,face <F>)
0048 // ----------------------------------------------------------------------
0049 Standard_EXPORT Standard_Boolean FUN_tool_projPonE(const gp_Pnt& P,const Standard_Real tole,const TopoDS_Edge& E,Standard_Real& param,Standard_Real& dist);
0050 Standard_EXPORT Standard_Boolean FUN_tool_projPonE(const gp_Pnt& P,const TopoDS_Edge& E,Standard_Real& param,Standard_Real& dist);
0051 Standard_EXPORT Standard_Boolean FUN_tool_projPonboundedF(const gp_Pnt& P,const TopoDS_Face& F,gp_Pnt2d& UV,Standard_Real& dist);
0052 Standard_EXPORT Standard_Boolean FUN_tool_projPonF(const gp_Pnt& P,const TopoDS_Face& F,gp_Pnt2d& UV,Standard_Real& dist,
0053                                                    const Extrema_ExtFlag anExtFlag=Extrema_ExtFlag_MINMAX,
0054                                                    const Extrema_ExtAlgo anExtAlgo=Extrema_ExtAlgo_Grad);
0055 
0056 #endif