File indexing completed on 2025-01-18 10:04:10
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IntPolyh_MaillageAffinage_HeaderFile
0018 #define _IntPolyh_MaillageAffinage_HeaderFile
0019
0020 #include <Adaptor3d_Surface.hxx>
0021 #include <Bnd_Box.hxx>
0022 #include <IntPolyh_ArrayOfPoints.hxx>
0023 #include <IntPolyh_ArrayOfEdges.hxx>
0024 #include <IntPolyh_ArrayOfTriangles.hxx>
0025 #include <IntPolyh_ListOfCouples.hxx>
0026 #include <TColStd_Array1OfReal.hxx>
0027 #include <IntPolyh_ArrayOfPointNormal.hxx>
0028 #include <IntPolyh_ArrayOfSectionLines.hxx>
0029 #include <IntPolyh_ArrayOfTangentZones.hxx>
0030
0031 class IntPolyh_StartPoint;
0032
0033
0034
0035 class IntPolyh_MaillageAffinage
0036 {
0037 public:
0038
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042 Standard_EXPORT IntPolyh_MaillageAffinage(const Handle(Adaptor3d_Surface)& S1, const Standard_Integer NbSU1, const Standard_Integer NbSV1, const Handle(Adaptor3d_Surface)& S2, const Standard_Integer NbSU2, const Standard_Integer NbSV2, const Standard_Integer PRINT);
0043
0044 Standard_EXPORT IntPolyh_MaillageAffinage(const Handle(Adaptor3d_Surface)& S1, const Handle(Adaptor3d_Surface)& S2, const Standard_Integer PRINT);
0045
0046
0047
0048
0049 Standard_EXPORT void MakeSampling (const Standard_Integer SurfID,
0050 TColStd_Array1OfReal& theUPars,
0051 TColStd_Array1OfReal& theVPars);
0052
0053
0054
0055 Standard_EXPORT void FillArrayOfPnt (const Standard_Integer SurfID);
0056
0057
0058
0059
0060
0061
0062
0063
0064 Standard_EXPORT void FillArrayOfPnt (const Standard_Integer SurfID,
0065 const Standard_Boolean isShiftFwd);
0066
0067
0068
0069
0070 Standard_EXPORT void FillArrayOfPnt (const Standard_Integer SurfID,
0071 const TColStd_Array1OfReal& Upars,
0072 const TColStd_Array1OfReal& Vpars,
0073 const Standard_Real *theDeflTol = NULL);
0074
0075
0076
0077
0078
0079
0080
0081
0082
0083 Standard_EXPORT void FillArrayOfPnt (const Standard_Integer SurfID,
0084 const Standard_Boolean isShiftFwd,
0085 const TColStd_Array1OfReal& Upars,
0086 const TColStd_Array1OfReal& Vpars,
0087 const Standard_Real *theDeflTol = NULL);
0088
0089
0090 Standard_EXPORT void FillArrayOfPnt(const Standard_Integer SurfID,
0091 const Standard_Boolean isShiftFwd,
0092 const IntPolyh_ArrayOfPointNormal& thePoints,
0093 const TColStd_Array1OfReal& theUPars,
0094 const TColStd_Array1OfReal& theVPars,
0095 const Standard_Real theDeflTol);
0096
0097
0098
0099 Standard_EXPORT void CommonBox();
0100
0101
0102
0103
0104 Standard_EXPORT void CommonBox (const Bnd_Box& B1, const Bnd_Box& B2, Standard_Real& xMin, Standard_Real& yMin, Standard_Real& zMin, Standard_Real& xMax, Standard_Real& yMax, Standard_Real& zMax);
0105
0106
0107 Standard_EXPORT void FillArrayOfEdges (const Standard_Integer SurfID);
0108
0109
0110
0111
0112 Standard_EXPORT void FillArrayOfTriangles (const Standard_Integer SurfID);
0113
0114
0115 Standard_EXPORT void CommonPartRefinement();
0116
0117
0118 Standard_EXPORT void LocalSurfaceRefinement (const Standard_Integer SurfId);
0119
0120
0121
0122 Standard_EXPORT void ComputeDeflections (const Standard_Integer SurfID);
0123
0124
0125
0126
0127
0128
0129 Standard_EXPORT void TrianglesDeflectionsRefinementBSB();
0130
0131
0132
0133 Standard_EXPORT Standard_Integer TriContact (const IntPolyh_Point& P1, const IntPolyh_Point& P2, const IntPolyh_Point& P3, const IntPolyh_Point& Q1, const IntPolyh_Point& Q2, const IntPolyh_Point& Q3, Standard_Real& Angle) const;
0134
0135 Standard_EXPORT Standard_Integer TriangleEdgeContact (const Standard_Integer TriSurfID, const Standard_Integer EdgeIndice, const IntPolyh_Triangle& Tri1, const IntPolyh_Triangle& Tri2, const IntPolyh_Point& P1, const IntPolyh_Point& P2, const IntPolyh_Point& P3, const IntPolyh_Point& C1, const IntPolyh_Point& C2, const IntPolyh_Point& C3, const IntPolyh_Point& Pe1, const IntPolyh_Point& Pe2, const IntPolyh_Point& E, const IntPolyh_Point& N, IntPolyh_StartPoint& SP1, IntPolyh_StartPoint& SP2) const;
0136
0137
0138
0139
0140 Standard_EXPORT Standard_Integer StartingPointsResearch (const Standard_Integer T1, const Standard_Integer T2, IntPolyh_StartPoint& SP1, IntPolyh_StartPoint& SP2) const;
0141
0142
0143
0144
0145 Standard_EXPORT Standard_Integer NextStartingPointsResearch (const Standard_Integer T1, const Standard_Integer T2, const IntPolyh_StartPoint& SPInit, IntPolyh_StartPoint& SPNext) const;
0146
0147
0148
0149
0150 Standard_EXPORT Standard_Integer TriangleCompare();
0151
0152
0153
0154
0155
0156 Standard_EXPORT Standard_Integer StartPointsChain (IntPolyh_ArrayOfSectionLines& TSectionLines, IntPolyh_ArrayOfTangentZones& TTangentZones);
0157
0158
0159
0160 Standard_EXPORT Standard_Integer GetNextChainStartPoint (const IntPolyh_StartPoint& SPInit, IntPolyh_StartPoint& SPNext, IntPolyh_SectionLine& MySectionLine, IntPolyh_ArrayOfTangentZones& TTangentZones, const Standard_Boolean Prepend = Standard_False);
0161
0162 Standard_EXPORT const IntPolyh_ArrayOfPoints& GetArrayOfPoints (const Standard_Integer SurfID) const;
0163
0164 Standard_EXPORT const IntPolyh_ArrayOfEdges& GetArrayOfEdges (const Standard_Integer SurfID) const;
0165
0166 Standard_EXPORT const IntPolyh_ArrayOfTriangles& GetArrayOfTriangles (const Standard_Integer SurfID) const;
0167
0168 Standard_EXPORT Standard_Integer GetFinTE (const Standard_Integer SurfID) const;
0169
0170 Standard_EXPORT Standard_Integer GetFinTT (const Standard_Integer SurfID) const;
0171
0172 Standard_EXPORT Bnd_Box GetBox (const Standard_Integer SurfID) const;
0173
0174
0175 Standard_EXPORT IntPolyh_ListOfCouples& GetCouples();
0176
0177 Standard_EXPORT void SetEnlargeZone (const Standard_Boolean EnlargeZone);
0178
0179 Standard_EXPORT Standard_Boolean GetEnlargeZone() const;
0180
0181
0182 Standard_EXPORT Standard_Real GetMinDeflection (const Standard_Integer SurfID) const;
0183
0184
0185 Standard_EXPORT Standard_Real GetMaxDeflection (const Standard_Integer SurfID) const;
0186
0187 private:
0188
0189 Handle(Adaptor3d_Surface) MaSurface1;
0190 Handle(Adaptor3d_Surface) MaSurface2;
0191 Bnd_Box MyBox1;
0192 Bnd_Box MyBox2;
0193 Standard_Integer NbSamplesU1;
0194 Standard_Integer NbSamplesU2;
0195 Standard_Integer NbSamplesV1;
0196 Standard_Integer NbSamplesV2;
0197 Standard_Real FlecheMax1;
0198 Standard_Real FlecheMax2;
0199 Standard_Real FlecheMin1;
0200 Standard_Real FlecheMin2;
0201
0202
0203
0204 IntPolyh_ArrayOfPoints TPoints1;
0205 IntPolyh_ArrayOfPoints TPoints2;
0206 IntPolyh_ArrayOfEdges TEdges1;
0207 IntPolyh_ArrayOfEdges TEdges2;
0208 IntPolyh_ArrayOfTriangles TTriangles1;
0209 IntPolyh_ArrayOfTriangles TTriangles2;
0210
0211
0212 IntPolyh_ListOfCouples TTrianglesContacts;
0213
0214 Standard_Boolean myEnlargeZone;
0215
0216 };
0217
0218 #endif