mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024737: Coding - remove <br> tag from header files
Eliminate #ifdefs around #includes, some unnecessary includes and macros
This commit is contained in:
@@ -14,52 +14,17 @@
|
||||
#ifndef _BRepExtrema_DistShapeShape_HeaderFile
|
||||
#define _BRepExtrema_DistShapeShape_HeaderFile
|
||||
|
||||
#ifndef _Standard_HeaderFile
|
||||
#include <Standard.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_DefineAlloc_HeaderFile
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Macro_HeaderFile
|
||||
#include <Standard_Macro.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _Standard_Integer_HeaderFile
|
||||
#include <Standard_Integer.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Real_HeaderFile
|
||||
#include <Standard_Real.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Boolean_HeaderFile
|
||||
#include <Standard_Boolean.hxx>
|
||||
#endif
|
||||
#ifndef _BRepExtrema_SeqOfSolution_HeaderFile
|
||||
#include <BRepExtrema_SeqOfSolution.hxx>
|
||||
#endif
|
||||
#ifndef _BRepExtrema_SolutionElem_HeaderFile
|
||||
#include <BRepExtrema_SolutionElem.hxx>
|
||||
#endif
|
||||
#ifndef _TopoDS_Shape_HeaderFile
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#endif
|
||||
#ifndef _TopTools_IndexedMapOfShape_HeaderFile
|
||||
#include <TopTools_IndexedMapOfShape.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_ExtFlag_HeaderFile
|
||||
#include <Extrema_ExtFlag.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_ExtAlgo_HeaderFile
|
||||
#include <Extrema_ExtAlgo.hxx>
|
||||
#endif
|
||||
#ifndef _BRepExtrema_SupportType_HeaderFile
|
||||
#include <BRepExtrema_SupportType.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_OStream_HeaderFile
|
||||
#include <Standard_OStream.hxx>
|
||||
#endif
|
||||
#ifndef _gp_Pnt_HeaderFile
|
||||
#include <gp_Pnt.hxx>
|
||||
#endif
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
|
||||
class TopoDS_Shape;
|
||||
class TopTools_IndexedMapOfShape;
|
||||
class Bnd_SeqOfBox;
|
||||
|
@@ -14,34 +14,12 @@
|
||||
#ifndef _BRepExtrema_DistanceSS_HeaderFile
|
||||
#define _BRepExtrema_DistanceSS_HeaderFile
|
||||
|
||||
#ifndef _Standard_HeaderFile
|
||||
#include <Standard.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_DefineAlloc_HeaderFile
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Macro_HeaderFile
|
||||
#include <Standard_Macro.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _BRepExtrema_SeqOfSolution_HeaderFile
|
||||
#include <BRepExtrema_SeqOfSolution.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Real_HeaderFile
|
||||
#include <Standard_Real.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Boolean_HeaderFile
|
||||
#include <Standard_Boolean.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_ExtFlag_HeaderFile
|
||||
#include <Extrema_ExtFlag.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_ExtAlgo_HeaderFile
|
||||
#include <Extrema_ExtAlgo.hxx>
|
||||
#endif
|
||||
#ifndef _Precision_HeaderFile
|
||||
#include <Precision.hxx>
|
||||
#endif
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
|
||||
class TopoDS_Shape;
|
||||
class Bnd_Box;
|
||||
class TopoDS_Vertex;
|
||||
|
@@ -14,31 +14,10 @@
|
||||
#ifndef _BRepExtrema_ExtCC_HeaderFile
|
||||
#define _BRepExtrema_ExtCC_HeaderFile
|
||||
|
||||
#ifndef _Standard_HeaderFile
|
||||
#include <Standard.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_DefineAlloc_HeaderFile
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Macro_HeaderFile
|
||||
#include <Standard_Macro.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _Extrema_ExtCC_HeaderFile
|
||||
#include <Extrema_ExtCC.hxx>
|
||||
#endif
|
||||
#ifndef _Handle_BRepAdaptor_HCurve_HeaderFile
|
||||
#include <BRepAdaptor_HCurve.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Boolean_HeaderFile
|
||||
#include <Standard_Boolean.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Integer_HeaderFile
|
||||
#include <Standard_Integer.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Real_HeaderFile
|
||||
#include <Standard_Real.hxx>
|
||||
#endif
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
|
||||
class BRepAdaptor_HCurve;
|
||||
class TopoDS_Edge;
|
||||
class gp_Pnt;
|
||||
|
@@ -14,46 +14,15 @@
|
||||
#ifndef _BRepExtrema_ExtCF_HeaderFile
|
||||
#define _BRepExtrema_ExtCF_HeaderFile
|
||||
|
||||
#ifndef _Standard_HeaderFile
|
||||
#include <Standard.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_DefineAlloc_HeaderFile
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Macro_HeaderFile
|
||||
#include <Standard_Macro.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _Extrema_ExtCS_HeaderFile
|
||||
#include <Extrema_ExtCS.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Integer_HeaderFile
|
||||
#include <Standard_Integer.hxx>
|
||||
#endif
|
||||
#ifndef _TColStd_SequenceOfReal_HeaderFile
|
||||
#include <TColStd_SequenceOfReal.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_SequenceOfPOnSurf_HeaderFile
|
||||
#include <Extrema_SequenceOfPOnSurf.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_SequenceOfPOnCurv_HeaderFile
|
||||
#include <Extrema_SequenceOfPOnCurv.hxx>
|
||||
#endif
|
||||
#ifndef _Handle_BRepAdaptor_HSurface_HeaderFile
|
||||
#include <BRepAdaptor_HSurface.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Boolean_HeaderFile
|
||||
#include <Standard_Boolean.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Real_HeaderFile
|
||||
#include <Standard_Real.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_POnCurv_HeaderFile
|
||||
#include <Extrema_POnCurv.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_POnSurf_HeaderFile
|
||||
#include <Extrema_POnSurf.hxx>
|
||||
#endif
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
|
||||
class BRepAdaptor_HSurface;
|
||||
class TopoDS_Edge;
|
||||
class TopoDS_Face;
|
||||
|
@@ -14,40 +14,13 @@
|
||||
#ifndef _BRepExtrema_ExtFF_HeaderFile
|
||||
#define _BRepExtrema_ExtFF_HeaderFile
|
||||
|
||||
#ifndef _Standard_HeaderFile
|
||||
#include <Standard.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_DefineAlloc_HeaderFile
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Macro_HeaderFile
|
||||
#include <Standard_Macro.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _Extrema_ExtSS_HeaderFile
|
||||
#include <Extrema_ExtSS.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Integer_HeaderFile
|
||||
#include <Standard_Integer.hxx>
|
||||
#endif
|
||||
#ifndef _TColStd_SequenceOfReal_HeaderFile
|
||||
#include <TColStd_SequenceOfReal.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_SequenceOfPOnSurf_HeaderFile
|
||||
#include <Extrema_SequenceOfPOnSurf.hxx>
|
||||
#endif
|
||||
#ifndef _Handle_BRepAdaptor_HSurface_HeaderFile
|
||||
#include <BRepAdaptor_HSurface.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Boolean_HeaderFile
|
||||
#include <Standard_Boolean.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Real_HeaderFile
|
||||
#include <Standard_Real.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_POnSurf_HeaderFile
|
||||
#include <Extrema_POnSurf.hxx>
|
||||
#endif
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
|
||||
class BRepAdaptor_HSurface;
|
||||
class TopoDS_Face;
|
||||
class gp_Pnt;
|
||||
|
@@ -14,31 +14,10 @@
|
||||
#ifndef _BRepExtrema_ExtPC_HeaderFile
|
||||
#define _BRepExtrema_ExtPC_HeaderFile
|
||||
|
||||
#ifndef _Standard_HeaderFile
|
||||
#include <Standard.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_DefineAlloc_HeaderFile
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Macro_HeaderFile
|
||||
#include <Standard_Macro.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _Extrema_ExtPC_HeaderFile
|
||||
#include <Extrema_ExtPC.hxx>
|
||||
#endif
|
||||
#ifndef _Handle_BRepAdaptor_HCurve_HeaderFile
|
||||
#include <BRepAdaptor_HCurve.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Boolean_HeaderFile
|
||||
#include <Standard_Boolean.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Integer_HeaderFile
|
||||
#include <Standard_Integer.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Real_HeaderFile
|
||||
#include <Standard_Real.hxx>
|
||||
#endif
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
|
||||
class BRepAdaptor_HCurve;
|
||||
class TopoDS_Vertex;
|
||||
class TopoDS_Edge;
|
||||
|
@@ -14,43 +14,15 @@
|
||||
#ifndef _BRepExtrema_ExtPF_HeaderFile
|
||||
#define _BRepExtrema_ExtPF_HeaderFile
|
||||
|
||||
#ifndef _Standard_HeaderFile
|
||||
#include <Standard.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_DefineAlloc_HeaderFile
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Macro_HeaderFile
|
||||
#include <Standard_Macro.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _Extrema_ExtPS_HeaderFile
|
||||
#include <Extrema_ExtPS.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Integer_HeaderFile
|
||||
#include <Standard_Integer.hxx>
|
||||
#endif
|
||||
#ifndef _TColStd_SequenceOfReal_HeaderFile
|
||||
#include <TColStd_SequenceOfReal.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_SequenceOfPOnSurf_HeaderFile
|
||||
#include <Extrema_SequenceOfPOnSurf.hxx>
|
||||
#endif
|
||||
#ifndef _BRepAdaptor_Surface_HeaderFile
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_ExtFlag_HeaderFile
|
||||
#include <Extrema_ExtFlag.hxx>
|
||||
#endif
|
||||
#ifndef _Extrema_ExtAlgo_HeaderFile
|
||||
#include <Extrema_ExtAlgo.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Boolean_HeaderFile
|
||||
#include <Standard_Boolean.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Real_HeaderFile
|
||||
#include <Standard_Real.hxx>
|
||||
#endif
|
||||
|
||||
class TopoDS_Vertex;
|
||||
class TopoDS_Face;
|
||||
class gp_Pnt;
|
||||
|
@@ -14,28 +14,16 @@
|
||||
#ifndef _BRepExtrema_Poly_HeaderFile
|
||||
#define _BRepExtrema_Poly_HeaderFile
|
||||
|
||||
#ifndef _Standard_HeaderFile
|
||||
#include <Standard.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Macro_HeaderFile
|
||||
#include <Standard_Macro.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _Standard_Boolean_HeaderFile
|
||||
#include <Standard_Boolean.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Real_HeaderFile
|
||||
#include <Standard_Real.hxx>
|
||||
#endif
|
||||
class TopoDS_Shape;
|
||||
class gp_Pnt;
|
||||
|
||||
|
||||
class BRepExtrema_Poly
|
||||
{
|
||||
public:
|
||||
|
||||
//! returns Standard_True if OK. <br>
|
||||
//! returns Standard_True if OK.
|
||||
Standard_EXPORT static Standard_Boolean Distance(const TopoDS_Shape& S1,const TopoDS_Shape& S2,gp_Pnt& P1,gp_Pnt& P2,Standard_Real& dist);
|
||||
};
|
||||
|
||||
|
@@ -19,12 +19,8 @@
|
||||
#ifndef _BRepExtrema_SeqOfSolution_HeaderFile
|
||||
#define _BRepExtrema_SeqOfSolution_HeaderFile
|
||||
|
||||
#ifndef _NCollection_Sequence_HeaderFile
|
||||
#include <NCollection_Sequence.hxx>
|
||||
#endif
|
||||
#ifndef _BRepExtrema_SolutionElem_HeaderFile
|
||||
#include <BRepExtrema_SolutionElem.hxx>
|
||||
#endif
|
||||
|
||||
typedef NCollection_Sequence<BRepExtrema_SolutionElem> BRepExtrema_SeqOfSolution;
|
||||
|
||||
|
@@ -19,130 +19,137 @@
|
||||
#ifndef _BRepExtrema_SolutionElem_HeaderFile
|
||||
#define _BRepExtrema_SolutionElem_HeaderFile
|
||||
|
||||
#ifndef _Standard_HeaderFile
|
||||
#include <Standard.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_DefineAlloc_HeaderFile
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#endif
|
||||
#ifndef _Standard_Macro_HeaderFile
|
||||
#include <Standard_Macro.hxx>
|
||||
#endif
|
||||
|
||||
#ifndef _Standard_Real_HeaderFile
|
||||
#include <Standard_Real.hxx>
|
||||
#endif
|
||||
#ifndef _gp_Pnt_HeaderFile
|
||||
#include <gp_Pnt.hxx>
|
||||
#endif
|
||||
#ifndef _BRepExtrema_SupportType_HeaderFile
|
||||
#include <BRepExtrema_SupportType.hxx>
|
||||
#endif
|
||||
#ifndef _TopoDS_Vertex_HeaderFile
|
||||
#include <TopoDS_Vertex.hxx>
|
||||
#endif
|
||||
#ifndef _TopoDS_Edge_HeaderFile
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#endif
|
||||
#ifndef _TopoDS_Face_HeaderFile
|
||||
#include <TopoDS_Face.hxx>
|
||||
#endif
|
||||
class gp_Pnt;
|
||||
class TopoDS_Vertex;
|
||||
class TopoDS_Edge;
|
||||
class TopoDS_Face;
|
||||
|
||||
|
||||
//! This class is used to store information relative to the <br>
|
||||
//! minimum distance between two shapes. <br>
|
||||
//! This class is used to store information relative to the minimum distance between two shapes.
|
||||
class BRepExtrema_SolutionElem
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
Standard_EXPORT BRepExtrema_SolutionElem()
|
||||
: myDist(0.), myPoint(0.,0.,0.), mySupType(BRepExtrema_IsVertex), myPar1(0.), myPar2(0.)
|
||||
//! Empty constructor
|
||||
BRepExtrema_SolutionElem()
|
||||
: myDist (0.0),
|
||||
myPoint (0.0, 0.0, 0.0),
|
||||
mySupType (BRepExtrema_IsVertex),
|
||||
myPar1 (0.0),
|
||||
myPar2 (0.0)
|
||||
{
|
||||
}
|
||||
//! initialisation of the fields <br>
|
||||
//! This constructor is used when the solution of a distance is a Vertex. <br>
|
||||
//! The different initialized fields are: <br>
|
||||
//! _ the distance d <br>
|
||||
//! _ the solution point <br>
|
||||
//! _ the type of solution <br>
|
||||
//! _ and the Vertex. <br>
|
||||
Standard_EXPORT BRepExtrema_SolutionElem(const Standard_Real d,const gp_Pnt& Pt,const BRepExtrema_SupportType SolType,const TopoDS_Vertex& vertex)
|
||||
: myDist(d), myPoint(Pt), mySupType(SolType), myVertex(vertex), myPar1(0.), myPar2(0.)
|
||||
{
|
||||
}
|
||||
//! initialisation of the fiels. <br>
|
||||
//! This constructor is used when the solution of distance is on an Edge. <br>
|
||||
//! The different initialized fields are: <br>
|
||||
//! _ the distance d, <br>
|
||||
//! _ the solution point, <br>
|
||||
//! _ the type of solution, <br>
|
||||
//! _ the Edge, <br>
|
||||
//! _ and the parameter t to locate the solution. <br>
|
||||
Standard_EXPORT BRepExtrema_SolutionElem(const Standard_Real d,const gp_Pnt& Pt,const BRepExtrema_SupportType SolType,const TopoDS_Edge& edge,const Standard_Real t)
|
||||
: myDist(d), myPoint(Pt), mySupType(SolType), myEdge(edge), myPar1(t), myPar2(0.)
|
||||
{
|
||||
}
|
||||
//! initialisation of the fields <br>
|
||||
//! This constructor is used when the solution of distance is in <br>
|
||||
//! a Face. The different initialized fields are: <br>
|
||||
//! _ the distance d, <br>
|
||||
//! _ the solution point, <br>
|
||||
//! _ the type of solution, <br>
|
||||
//! _ the Face, <br>
|
||||
//! _ and the parameter u et v to locate the solution. <br>
|
||||
Standard_EXPORT BRepExtrema_SolutionElem(const Standard_Real d,const gp_Pnt& Pt,const BRepExtrema_SupportType SolType,const TopoDS_Face& face,const Standard_Real u,const Standard_Real v)
|
||||
: myDist(d), myPoint(Pt), mySupType(SolType), myFace(face), myPar1(u), myPar2(v)
|
||||
{
|
||||
}
|
||||
//! returns the value of the minimum distance. <br>
|
||||
Standard_EXPORT Standard_Real Dist() const
|
||||
|
||||
//! This constructor is used when the solution of a distance is a Vertex.
|
||||
//! The different initialized fields are:
|
||||
//! @param theDist the distance
|
||||
//! @param thePoint the solution point
|
||||
//! @param theSolType the type of solution
|
||||
//! @param theVertex and the Vertex
|
||||
BRepExtrema_SolutionElem (const Standard_Real theDist,
|
||||
const gp_Pnt& thePoint,
|
||||
const BRepExtrema_SupportType theSolType,
|
||||
const TopoDS_Vertex& theVertex)
|
||||
: myDist (theDist),
|
||||
myPoint (thePoint),
|
||||
mySupType (theSolType),
|
||||
myVertex (theVertex),
|
||||
myPar1 (0.0),
|
||||
myPar2 (0.0) {}
|
||||
|
||||
//! This constructor is used when the solution of distance is on an Edge.
|
||||
//! The different initialized fields are:
|
||||
//! @param theDist the distance
|
||||
//! @param thePoint the solution point
|
||||
//! @param theSolType the type of solution
|
||||
//! @param theEdge the Edge
|
||||
//! @param theParam the parameter to locate the solution
|
||||
BRepExtrema_SolutionElem (const Standard_Real theDist,
|
||||
const gp_Pnt& thePoint,
|
||||
const BRepExtrema_SupportType theSolType,
|
||||
const TopoDS_Edge& theEdge,
|
||||
const Standard_Real theParam)
|
||||
: myDist (theDist),
|
||||
myPoint (thePoint),
|
||||
mySupType (theSolType),
|
||||
myEdge (theEdge),
|
||||
myPar1 (theParam),
|
||||
myPar2 (0.0) {}
|
||||
|
||||
//! This constructor is used when the solution of distance is in a Face.
|
||||
//! The different initialized fields are:
|
||||
//! @param theDist the distance
|
||||
//! @param thePoint the solution point
|
||||
//! @param theSolType the type of solution
|
||||
//! @param theFace the Face
|
||||
//! @param theU U parameter to locate the solution
|
||||
//! @param theV V parameter to locate the solution
|
||||
BRepExtrema_SolutionElem (const Standard_Real theDist,
|
||||
const gp_Pnt& thePoint,
|
||||
const BRepExtrema_SupportType theSolType,
|
||||
const TopoDS_Face& theFace,
|
||||
const Standard_Real theU,
|
||||
const Standard_Real theV)
|
||||
: myDist (theDist),
|
||||
myPoint (thePoint),
|
||||
mySupType (theSolType),
|
||||
myFace (theFace),
|
||||
myPar1 (theU),
|
||||
myPar2 (theV) {}
|
||||
|
||||
//! Returns the value of the minimum distance.
|
||||
Standard_Real Dist() const
|
||||
{
|
||||
return myDist;
|
||||
}
|
||||
//! returns the solution point. <br>
|
||||
Standard_EXPORT const gp_Pnt & Point() const
|
||||
|
||||
//! Returns the solution point.
|
||||
const gp_Pnt& Point() const
|
||||
{
|
||||
return myPoint;
|
||||
}
|
||||
//! returns the Support type : <br>
|
||||
//! IsVertex => The solution is a vertex. <br>
|
||||
//! IsOnEdge => The solution belongs to an Edge. <br>
|
||||
//! IsInFace => The solution is inside a Face. <br>
|
||||
Standard_EXPORT BRepExtrema_SupportType SupportKind() const
|
||||
|
||||
//! Returns the Support type:
|
||||
//! IsVertex => The solution is a vertex.
|
||||
//! IsOnEdge => The solution belongs to an Edge.
|
||||
//! IsInFace => The solution is inside a Face.
|
||||
BRepExtrema_SupportType SupportKind() const
|
||||
{
|
||||
return mySupType;
|
||||
}
|
||||
//! returns the vertex if the solution is a Vertex. <br>
|
||||
Standard_EXPORT const TopoDS_Vertex & Vertex() const
|
||||
|
||||
//! Returns the vertex if the solution is a Vertex.
|
||||
const TopoDS_Vertex& Vertex() const
|
||||
{
|
||||
return myVertex;
|
||||
}
|
||||
//! returns the vertex if the solution is an Edge. <br>
|
||||
Standard_EXPORT const TopoDS_Edge & Edge() const
|
||||
|
||||
//! Returns the vertex if the solution is an Edge.
|
||||
const TopoDS_Edge& Edge() const
|
||||
{
|
||||
return myEdge;
|
||||
}
|
||||
//! returns the vertex if the solution is an Face. <br>
|
||||
Standard_EXPORT const TopoDS_Face & Face() const
|
||||
|
||||
//! Returns the vertex if the solution is an Face.
|
||||
const TopoDS_Face& Face() const
|
||||
{
|
||||
return myFace;
|
||||
}
|
||||
//! returns the parameter t if the solution is on Edge. <br>
|
||||
Standard_EXPORT void EdgeParameter(Standard_Real& par1) const
|
||||
|
||||
//! Returns the parameter value if the solution is on Edge.
|
||||
void EdgeParameter (Standard_Real& theParam) const
|
||||
{
|
||||
par1 = myPar1;
|
||||
theParam = myPar1;
|
||||
}
|
||||
//! returns the parameters u et v if the solution is in a Face. <br>
|
||||
Standard_EXPORT void FaceParameter(Standard_Real& par1,Standard_Real& par2) const
|
||||
|
||||
//! Returns the parameters U and V if the solution is in a Face.
|
||||
void FaceParameter (Standard_Real& theU,
|
||||
Standard_Real& theV) const
|
||||
{
|
||||
par1 = myPar1;
|
||||
par2 = myPar2;
|
||||
theU = myPar1;
|
||||
theV = myPar2;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -155,6 +162,7 @@ class BRepExtrema_SolutionElem
|
||||
TopoDS_Face myFace;
|
||||
Standard_Real myPar1;
|
||||
Standard_Real myPar2;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -26,8 +26,4 @@ enum BRepExtrema_SupportType
|
||||
BRepExtrema_IsInFace
|
||||
};
|
||||
|
||||
#ifndef _Standard_PrimitiveTypes_HeaderFile
|
||||
#include <Standard_PrimitiveTypes.hxx>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user