File indexing completed on 2025-01-18 10:03:08
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepBlend_RstRstEvolRad_HeaderFile
0018 #define _BRepBlend_RstRstEvolRad_HeaderFile
0019
0020 #include <Adaptor3d_CurveOnSurface.hxx>
0021 #include <Adaptor3d_Surface.hxx>
0022 #include <gp_Pnt.hxx>
0023 #include <gp_Pnt2d.hxx>
0024 #include <gp_Vec.hxx>
0025 #include <gp_Vec2d.hxx>
0026 #include <BlendFunc_SectionShape.hxx>
0027 #include <Convert_ParameterisationType.hxx>
0028 #include <Blend_RstRstFunction.hxx>
0029 #include <math_Vector.hxx>
0030 #include <Blend_DecrochStatus.hxx>
0031 #include <TColStd_Array1OfReal.hxx>
0032 #include <GeomAbs_Shape.hxx>
0033 #include <TColStd_Array1OfInteger.hxx>
0034 #include <TColgp_Array1OfPnt.hxx>
0035 #include <TColgp_Array1OfVec.hxx>
0036 #include <TColgp_Array1OfPnt2d.hxx>
0037 #include <TColgp_Array1OfVec2d.hxx>
0038
0039 class Law_Function;
0040 class math_Matrix;
0041 class gp_Circ;
0042 class Blend_Point;
0043
0044
0045
0046
0047 class BRepBlend_RstRstEvolRad : public Blend_RstRstFunction
0048 {
0049 public:
0050
0051 DEFINE_STANDARD_ALLOC
0052
0053
0054 Standard_EXPORT BRepBlend_RstRstEvolRad(const Handle(Adaptor3d_Surface)& Surf1, const Handle(Adaptor2d_Curve2d)& Rst1, const Handle(Adaptor3d_Surface)& Surf2, const Handle(Adaptor2d_Curve2d)& Rst2, const Handle(Adaptor3d_Curve)& CGuide, const Handle(Law_Function)& Evol);
0055
0056
0057 Standard_EXPORT Standard_Integer NbVariables() const Standard_OVERRIDE;
0058
0059
0060 Standard_EXPORT Standard_Integer NbEquations() const Standard_OVERRIDE;
0061
0062
0063
0064
0065
0066 Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F) Standard_OVERRIDE;
0067
0068
0069
0070
0071
0072 Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D) Standard_OVERRIDE;
0073
0074
0075
0076
0077
0078 Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D) Standard_OVERRIDE;
0079
0080 Standard_EXPORT void Set (const Handle(Adaptor3d_Surface)& SurfRef1, const Handle(Adaptor2d_Curve2d)& RstRef1, const Handle(Adaptor3d_Surface)& SurfRef2, const Handle(Adaptor2d_Curve2d)& RstRef2);
0081
0082 Standard_EXPORT void Set (const Standard_Real Param) Standard_OVERRIDE;
0083
0084
0085
0086
0087
0088 Standard_EXPORT void Set (const Standard_Real First, const Standard_Real Last) Standard_OVERRIDE;
0089
0090 Standard_EXPORT void GetTolerance (math_Vector& Tolerance, const Standard_Real Tol) const Standard_OVERRIDE;
0091
0092 Standard_EXPORT void GetBounds (math_Vector& InfBound, math_Vector& SupBound) const Standard_OVERRIDE;
0093
0094 Standard_EXPORT Standard_Boolean IsSolution (const math_Vector& Sol, const Standard_Real Tol) Standard_OVERRIDE;
0095
0096
0097
0098 Standard_EXPORT virtual Standard_Real GetMinimalDistance() const Standard_OVERRIDE;
0099
0100 Standard_EXPORT const gp_Pnt& PointOnRst1() const Standard_OVERRIDE;
0101
0102 Standard_EXPORT const gp_Pnt& PointOnRst2() const Standard_OVERRIDE;
0103
0104
0105 Standard_EXPORT const gp_Pnt2d& Pnt2dOnRst1() const Standard_OVERRIDE;
0106
0107
0108
0109 Standard_EXPORT const gp_Pnt2d& Pnt2dOnRst2() const Standard_OVERRIDE;
0110
0111
0112 Standard_EXPORT Standard_Real ParameterOnRst1() const Standard_OVERRIDE;
0113
0114
0115 Standard_EXPORT Standard_Real ParameterOnRst2() const Standard_OVERRIDE;
0116
0117 Standard_EXPORT Standard_Boolean IsTangencyPoint() const Standard_OVERRIDE;
0118
0119 Standard_EXPORT const gp_Vec& TangentOnRst1() const Standard_OVERRIDE;
0120
0121 Standard_EXPORT const gp_Vec2d& Tangent2dOnRst1() const Standard_OVERRIDE;
0122
0123 Standard_EXPORT const gp_Vec& TangentOnRst2() const Standard_OVERRIDE;
0124
0125 Standard_EXPORT const gp_Vec2d& Tangent2dOnRst2() const Standard_OVERRIDE;
0126
0127
0128
0129 Standard_EXPORT Blend_DecrochStatus Decroch (const math_Vector& Sol, gp_Vec& NRst1, gp_Vec& TgRst1, gp_Vec& NRst2, gp_Vec& TgRst2) const Standard_OVERRIDE;
0130
0131 Standard_EXPORT void Set (const Standard_Integer Choix);
0132
0133
0134
0135 Standard_EXPORT void Set (const BlendFunc_SectionShape TypeSection);
0136
0137
0138
0139 Standard_EXPORT Standard_Boolean CenterCircleRst1Rst2 (const gp_Pnt& PtRst1, const gp_Pnt& PtRst2, const gp_Vec& np, gp_Pnt& Center, gp_Vec& VdMed) const;
0140
0141 Standard_EXPORT void Section (const Standard_Real Param, const Standard_Real U, const Standard_Real V, Standard_Real& Pdeb, Standard_Real& Pfin, gp_Circ& C);
0142
0143
0144 Standard_EXPORT Standard_Boolean IsRational() const Standard_OVERRIDE;
0145
0146
0147 Standard_EXPORT Standard_Real GetSectionSize() const Standard_OVERRIDE;
0148
0149
0150
0151 Standard_EXPORT void GetMinimalWeight (TColStd_Array1OfReal& Weigths) const Standard_OVERRIDE;
0152
0153
0154
0155 Standard_EXPORT Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
0156
0157
0158
0159
0160
0161 Standard_EXPORT void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE;
0162
0163 Standard_EXPORT void GetShape (Standard_Integer& NbPoles, Standard_Integer& NbKnots, Standard_Integer& Degree, Standard_Integer& NbPoles2d) Standard_OVERRIDE;
0164
0165
0166
0167
0168
0169
0170 Standard_EXPORT void GetTolerance (const Standard_Real BoundTol, const Standard_Real SurfTol, const Standard_Real AngleTol, math_Vector& Tol3d, math_Vector& Tol1D) const Standard_OVERRIDE;
0171
0172 Standard_EXPORT void Knots (TColStd_Array1OfReal& TKnots) Standard_OVERRIDE;
0173
0174 Standard_EXPORT void Mults (TColStd_Array1OfInteger& TMults) Standard_OVERRIDE;
0175
0176
0177 Standard_EXPORT Standard_Boolean Section (const Blend_Point& P, TColgp_Array1OfPnt& Poles, TColgp_Array1OfVec& DPoles, TColgp_Array1OfPnt2d& Poles2d, TColgp_Array1OfVec2d& DPoles2d, TColStd_Array1OfReal& Weigths, TColStd_Array1OfReal& DWeigths) Standard_OVERRIDE;
0178
0179 Standard_EXPORT void Section (const Blend_Point& P, TColgp_Array1OfPnt& Poles, TColgp_Array1OfPnt2d& Poles2d, TColStd_Array1OfReal& Weigths) Standard_OVERRIDE;
0180
0181
0182
0183
0184 Standard_EXPORT Standard_Boolean Section (const Blend_Point& P, TColgp_Array1OfPnt& Poles, TColgp_Array1OfVec& DPoles, TColgp_Array1OfVec& D2Poles, TColgp_Array1OfPnt2d& Poles2d, TColgp_Array1OfVec2d& DPoles2d, TColgp_Array1OfVec2d& D2Poles2d, TColStd_Array1OfReal& Weigths, TColStd_Array1OfReal& DWeigths, TColStd_Array1OfReal& D2Weigths) Standard_OVERRIDE;
0185
0186 Standard_EXPORT void Resolution (const Standard_Integer IC2d, const Standard_Real Tol, Standard_Real& TolU, Standard_Real& TolV) const Standard_OVERRIDE;
0187
0188
0189
0190
0191 protected:
0192
0193
0194
0195
0196
0197 private:
0198
0199
0200
0201 Handle(Adaptor3d_Surface) surf1;
0202 Handle(Adaptor3d_Surface) surf2;
0203 Handle(Adaptor2d_Curve2d) rst1;
0204 Handle(Adaptor2d_Curve2d) rst2;
0205 Adaptor3d_CurveOnSurface cons1;
0206 Adaptor3d_CurveOnSurface cons2;
0207 Handle(Adaptor3d_Curve) guide;
0208 Handle(Adaptor3d_Curve) tguide;
0209 gp_Pnt ptrst1;
0210 gp_Pnt ptrst2;
0211 gp_Pnt2d pt2drst1;
0212 gp_Pnt2d pt2drst2;
0213 Standard_Real prmrst1;
0214 Standard_Real prmrst2;
0215 Standard_Boolean istangent;
0216 gp_Vec tgrst1;
0217 gp_Vec2d tg2drst1;
0218 gp_Vec tgrst2;
0219 gp_Vec2d tg2drst2;
0220 Standard_Real ray;
0221 Standard_Real dray;
0222 Standard_Integer choix;
0223 gp_Pnt ptgui;
0224 gp_Vec d1gui;
0225 gp_Vec d2gui;
0226 gp_Vec nplan;
0227 Standard_Real normtg;
0228 Standard_Real theD;
0229 Handle(Adaptor3d_Surface) surfref1;
0230 Handle(Adaptor2d_Curve2d) rstref1;
0231 Handle(Adaptor3d_Surface) surfref2;
0232 Handle(Adaptor2d_Curve2d) rstref2;
0233 Standard_Real maxang;
0234 Standard_Real minang;
0235 Standard_Real distmin;
0236 BlendFunc_SectionShape mySShape;
0237 Convert_ParameterisationType myTConv;
0238 Handle(Law_Function) tevol;
0239 Handle(Law_Function) fevol;
0240
0241
0242 };
0243
0244
0245
0246
0247
0248
0249
0250 #endif