File indexing completed on 2025-01-18 10:03:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _HLRBRep_ThePolyhedronOfInterCSurf_HeaderFile
0018 #define _HLRBRep_ThePolyhedronOfInterCSurf_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Integer.hxx>
0025 #include <Bnd_Box.hxx>
0026 #include <Bnd_HArray1OfBox.hxx>
0027 #include <TColStd_Array1OfReal.hxx>
0028 class Standard_OutOfRange;
0029 class HLRBRep_SurfaceTool;
0030 class gp_Pnt;
0031 class Bnd_Box;
0032 class gp_XYZ;
0033
0034 class HLRBRep_ThePolyhedronOfInterCSurf
0035 {
0036 public:
0037
0038 DEFINE_STANDARD_ALLOC
0039
0040 Standard_EXPORT HLRBRep_ThePolyhedronOfInterCSurf(const Standard_Address& Surface, const Standard_Integer nbdU, const Standard_Integer nbdV, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2);
0041
0042 Standard_EXPORT HLRBRep_ThePolyhedronOfInterCSurf(const Standard_Address& Surface, const TColStd_Array1OfReal& Upars, const TColStd_Array1OfReal& Vpars);
0043
0044 Standard_EXPORT void Destroy();
0045 ~HLRBRep_ThePolyhedronOfInterCSurf()
0046 {
0047 Destroy();
0048 }
0049
0050 Standard_EXPORT void DeflectionOverEstimation (const Standard_Real flec);
0051
0052 Standard_EXPORT Standard_Real DeflectionOnTriangle (const Standard_Address& Surface, const Standard_Integer Index) const;
0053
0054 Standard_EXPORT void UMinSingularity (const Standard_Boolean Sing);
0055
0056 Standard_EXPORT void UMaxSingularity (const Standard_Boolean Sing);
0057
0058 Standard_EXPORT void VMinSingularity (const Standard_Boolean Sing);
0059
0060 Standard_EXPORT void VMaxSingularity (const Standard_Boolean Sing);
0061
0062
0063 Standard_EXPORT void Size (Standard_Integer& nbdu, Standard_Integer& nbdv) const;
0064
0065
0066 Standard_EXPORT Standard_Integer NbTriangles() const;
0067
0068
0069
0070 Standard_EXPORT void Triangle (const Standard_Integer Index, Standard_Integer& P1, Standard_Integer& P2, Standard_Integer& P3) const;
0071
0072
0073
0074
0075
0076
0077
0078 Standard_EXPORT Standard_Integer TriConnex (const Standard_Integer Triang, const Standard_Integer Pivot, const Standard_Integer Pedge, Standard_Integer& TriCon, Standard_Integer& OtherP) const;
0079
0080
0081
0082 Standard_EXPORT Standard_Integer NbPoints() const;
0083
0084
0085
0086 Standard_EXPORT void Point (const gp_Pnt& thePnt, const Standard_Integer lig, const Standard_Integer col, const Standard_Real U, const Standard_Real V);
0087
0088
0089 Standard_EXPORT const gp_Pnt& Point (const Standard_Integer Index, Standard_Real& U, Standard_Real& V) const;
0090
0091
0092 Standard_EXPORT const gp_Pnt& Point (const Standard_Integer Index) const;
0093
0094
0095 Standard_EXPORT void Point (const Standard_Integer Index, gp_Pnt& P) const;
0096
0097
0098 Standard_EXPORT const Bnd_Box& Bounding() const;
0099
0100
0101
0102 Standard_EXPORT void FillBounding();
0103
0104
0105
0106 Standard_EXPORT const Handle(Bnd_HArray1OfBox)& ComponentsBounding() const;
0107
0108 Standard_EXPORT Standard_Real DeflectionOverEstimation() const;
0109
0110 Standard_EXPORT Standard_Boolean HasUMinSingularity() const;
0111
0112 Standard_EXPORT Standard_Boolean HasUMaxSingularity() const;
0113
0114 Standard_EXPORT Standard_Boolean HasVMinSingularity() const;
0115
0116 Standard_EXPORT Standard_Boolean HasVMaxSingularity() const;
0117
0118
0119 Standard_EXPORT void PlaneEquation (const Standard_Integer Triang, gp_XYZ& NormalVector, Standard_Real& PolarDistance) const;
0120
0121
0122 Standard_EXPORT Standard_Boolean Contain (const Standard_Integer Triang, const gp_Pnt& ThePnt) const;
0123
0124 Standard_EXPORT void Parameters (const Standard_Integer Index, Standard_Real& U, Standard_Real& V) const;
0125
0126
0127
0128
0129
0130 Standard_EXPORT Standard_Boolean IsOnBound (const Standard_Integer Index1, const Standard_Integer Index2) const;
0131
0132
0133 Standard_Real GetBorderDeflection() const;
0134
0135 Standard_EXPORT void Dump() const;
0136
0137 protected:
0138
0139
0140 Standard_EXPORT void Init (const Standard_Address& Surface, const Standard_Real U1, const Standard_Real V1, const Standard_Real U2, const Standard_Real V2);
0141
0142 Standard_EXPORT void Init (const Standard_Address& Surface, const TColStd_Array1OfReal& Upars, const TColStd_Array1OfReal& Vpars);
0143
0144 private:
0145
0146
0147
0148 Standard_EXPORT Standard_Real ComputeBorderDeflection (const Standard_Address& Surface, const Standard_Real Parameter, const Standard_Real PMin, const Standard_Real PMax, const Standard_Boolean isUIso) const;
0149
0150 private:
0151
0152 Standard_Integer nbdeltaU;
0153 Standard_Integer nbdeltaV;
0154 Bnd_Box TheBnd;
0155 Handle(Bnd_HArray1OfBox) TheComponentsBnd;
0156 Standard_Real TheDeflection;
0157 Standard_Address C_MyPnts;
0158 Standard_Address C_MyU;
0159 Standard_Address C_MyV;
0160 Standard_Boolean UMinSingular;
0161 Standard_Boolean UMaxSingular;
0162 Standard_Boolean VMinSingular;
0163 Standard_Boolean VMaxSingular;
0164 Standard_Real TheBorderDeflection;
0165 Standard_Address C_MyIsOnBounds;
0166
0167 };
0168
0169 #define ThePSurface Standard_Address
0170 #define ThePSurface_hxx <Standard_Address.hxx>
0171 #define ThePSurfaceTool HLRBRep_SurfaceTool
0172 #define ThePSurfaceTool_hxx <HLRBRep_SurfaceTool.hxx>
0173 #define IntCurveSurface_Polyhedron HLRBRep_ThePolyhedronOfInterCSurf
0174 #define IntCurveSurface_Polyhedron_hxx <HLRBRep_ThePolyhedronOfInterCSurf.hxx>
0175
0176 #include <IntCurveSurface_Polyhedron.lxx>
0177
0178 #undef ThePSurface
0179 #undef ThePSurface_hxx
0180 #undef ThePSurfaceTool
0181 #undef ThePSurfaceTool_hxx
0182 #undef IntCurveSurface_Polyhedron
0183 #undef IntCurveSurface_Polyhedron_hxx
0184
0185 #endif