File indexing completed on 2025-01-18 10:03:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _GeomFill_SectionPlacement_HeaderFile
0018 #define _GeomFill_SectionPlacement_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <gp_Ax1.hxx>
0025 #include <GeomAdaptor_Curve.hxx>
0026 #include <Extrema_ExtPC.hxx>
0027 #include <gp_Pnt.hxx>
0028 class GeomFill_LocationLaw;
0029 class Geom_Curve;
0030 class Geom_Geometry;
0031 class gp_Trsf;
0032 class gp_Mat;
0033 class gp_Vec;
0034
0035
0036
0037 class GeomFill_SectionPlacement
0038 {
0039 public:
0040
0041 DEFINE_STANDARD_ALLOC
0042
0043
0044 Standard_EXPORT GeomFill_SectionPlacement(const Handle(GeomFill_LocationLaw)& L, const Handle(Geom_Geometry)& Section);
0045
0046
0047 Standard_EXPORT void SetLocation (const Handle(GeomFill_LocationLaw)& L);
0048
0049 Standard_EXPORT void Perform (const Standard_Real Tol);
0050
0051 Standard_EXPORT void Perform (const Handle(Adaptor3d_Curve)& Path, const Standard_Real Tol);
0052
0053 Standard_EXPORT void Perform (const Standard_Real ParamOnPath, const Standard_Real Tol);
0054
0055 Standard_EXPORT Standard_Boolean IsDone() const;
0056
0057 Standard_EXPORT Standard_Real ParameterOnPath() const;
0058
0059 Standard_EXPORT Standard_Real ParameterOnSection() const;
0060
0061 Standard_EXPORT Standard_Real Distance() const;
0062
0063 Standard_EXPORT Standard_Real Angle() const;
0064
0065 Standard_EXPORT gp_Trsf Transformation (const Standard_Boolean WithTranslation, const Standard_Boolean WithCorrection = Standard_False) const;
0066
0067
0068
0069
0070
0071 Standard_EXPORT Handle(Geom_Curve) Section (const Standard_Boolean WithTranslation) const;
0072
0073
0074
0075
0076
0077
0078 Standard_EXPORT Handle(Geom_Curve) ModifiedSection (const Standard_Boolean WithTranslation) const;
0079
0080
0081
0082
0083 protected:
0084
0085
0086
0087
0088
0089 private:
0090
0091
0092 Standard_EXPORT void SectionAxis (const gp_Mat& M, gp_Vec& T, gp_Vec& N, gp_Vec& BN) const;
0093
0094 Standard_EXPORT Standard_Boolean Choix (const Standard_Real Dist, const Standard_Real Angle) const;
0095
0096
0097 Standard_Boolean done;
0098 Standard_Boolean isplan;
0099 gp_Ax1 TheAxe;
0100 Standard_Real Gabarit;
0101 Handle(GeomFill_LocationLaw) myLaw;
0102 GeomAdaptor_Curve myAdpSection;
0103 Handle(Geom_Curve) mySection;
0104 Standard_Real SecParam;
0105 Standard_Real PathParam;
0106 Standard_Real Dist;
0107 Standard_Real AngleMax;
0108 Extrema_ExtPC myExt;
0109 Standard_Boolean myIsPoint;
0110 gp_Pnt myPoint;
0111
0112
0113 };
0114
0115
0116
0117
0118
0119
0120
0121 #endif