0024069: Confusion in the name of variables
[occt.git] / src / TopOpeBRepTool / TopOpeBRepTool_PROJECT.hxx
CommitLineData
b311480e 1// Created on: 1997-11-28
2// Created by: Jean Yves LEBEY
3// Copyright (c) 1997-1999 Matra Datavision
4// Copyright (c) 1999-2012 OPEN CASCADE SAS
5//
6// The content of this file is subject to the Open CASCADE Technology Public
7// License Version 6.5 (the "License"). You may not use the content of this file
8// except in compliance with the License. Please obtain a copy of the License
9// at http://www.opencascade.org and read it completely before using this file.
10//
11// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13//
14// The Original Code and all software distributed under the License is
15// distributed on an "AS IS" basis, without warranty of any kind, and the
16// Initial Developer hereby disclaims all such warranties, including without
17// limitation, any warranties of merchantability, fitness for a particular
18// purpose or non-infringement. Please see the License for the specific terms
19// and conditions governing the rights and limitations under the License.
20
7fd59977 21
22#ifndef _TopOpeBRepTool_PROJECT_HeaderFile
23#define _TopOpeBRepTool_PROJECT_HeaderFile
24
25#include <TopOpeBRepTool_define.hxx>
26
27#include <Geom_Surface.hxx>
28#include <gp_Pnt2d.hxx>
29#include <gp_Pnt.hxx>
30#include <BRepAdaptor_Curve.hxx>
31#include <BRepAdaptor_Curve2d.hxx>
32#include <Extrema_ExtPC.hxx>
33#include <Extrema_ExtPC2d.hxx>
d633fd70 34#include <Extrema_ExtFlag.hxx>
35#include <Extrema_ExtAlgo.hxx>
7fd59977 36
37// ----------------------------------------------------------------------
38// project point <P> on geometries (curve <C>,surface <S>)
39// ----------------------------------------------------------------------
40Standard_EXPORT void FUN_tool_bounds(const TopoDS_Edge& E,Standard_Real& f,Standard_Real& l);
41Standard_EXPORT Standard_Integer FUN_tool_getindex(const Extrema_ExtPC& ponc);
42Standard_EXPORT Standard_Integer FUN_tool_getindex(const Extrema_ExtPC2d& ponc);
43Standard_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);
44Standard_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);
45Standard_EXPORT Standard_Boolean FUN_tool_projPonC(const gp_Pnt& P,const BRepAdaptor_Curve& BAC,Standard_Real& param,Standard_Real& dist);
46Standard_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);
47Standard_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);
48Standard_EXPORT Standard_Boolean FUN_tool_projPonC2D(const gp_Pnt& P,const BRepAdaptor_Curve2d& BAC2D,Standard_Real& param,Standard_Real& dist);
d633fd70 49Standard_EXPORT Standard_Boolean FUN_tool_projPonS(const gp_Pnt& P,const Handle(Geom_Surface)& S,gp_Pnt2d& UV,Standard_Real& dist,
95978b28 50 const Extrema_ExtFlag anExtFlag=Extrema_ExtFlag_MINMAX,
51 const Extrema_ExtAlgo anExtAlgo=Extrema_ExtAlgo_Grad);
7fd59977 52
53// ----------------------------------------------------------------------
54// project point <P> on topologies (edge <E>,face <F>)
55// ----------------------------------------------------------------------
56Standard_EXPORT Standard_Boolean FUN_tool_projPonE(const gp_Pnt& P,const Standard_Real tole,const TopoDS_Edge& E,Standard_Real& param,Standard_Real& dist);
57Standard_EXPORT Standard_Boolean FUN_tool_projPonE(const gp_Pnt& P,const TopoDS_Edge& E,Standard_Real& param,Standard_Real& dist);
58Standard_EXPORT Standard_Boolean FUN_tool_projPonboundedF(const gp_Pnt& P,const TopoDS_Face& F,gp_Pnt2d& UV,Standard_Real& dist);
d633fd70 59Standard_EXPORT Standard_Boolean FUN_tool_projPonF(const gp_Pnt& P,const TopoDS_Face& F,gp_Pnt2d& UV,Standard_Real& dist,
95978b28 60 const Extrema_ExtFlag anExtFlag=Extrema_ExtFlag_MINMAX,
61 const Extrema_ExtAlgo anExtAlgo=Extrema_ExtAlgo_Grad);
7fd59977 62
63#endif