File indexing completed on 2026-05-02 08:22:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepSweep_Translation_HeaderFile
0018 #define _BRepSweep_Translation_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <gp_Vec.hxx>
0025 #include <Standard_Boolean.hxx>
0026 #include <BRepSweep_Trsf.hxx>
0027 #include <TopAbs_Orientation.hxx>
0028 class TopoDS_Shape;
0029 class Sweep_NumShape;
0030 class TopLoc_Location;
0031
0032
0033
0034 class BRepSweep_Translation : public BRepSweep_Trsf
0035 {
0036 public:
0037 DEFINE_STANDARD_ALLOC
0038
0039
0040
0041
0042
0043 Standard_EXPORT BRepSweep_Translation(const TopoDS_Shape& S,
0044 const Sweep_NumShape& N,
0045 const TopLoc_Location& L,
0046 const gp_Vec& V,
0047 const Standard_Boolean C,
0048 const Standard_Boolean Canonize = Standard_True);
0049
0050
0051
0052 Standard_EXPORT TopoDS_Shape MakeEmptyVertex(const TopoDS_Shape& aGenV,
0053 const Sweep_NumShape& aDirV);
0054
0055
0056
0057 Standard_EXPORT TopoDS_Shape MakeEmptyDirectingEdge(const TopoDS_Shape& aGenV,
0058 const Sweep_NumShape& aDirE);
0059
0060
0061
0062 Standard_EXPORT TopoDS_Shape MakeEmptyGeneratingEdge(const TopoDS_Shape& aGenE,
0063 const Sweep_NumShape& aDirV);
0064
0065
0066
0067
0068 Standard_EXPORT void SetParameters(const TopoDS_Shape& aNewFace,
0069 TopoDS_Shape& aNewVertex,
0070 const TopoDS_Shape& aGenF,
0071 const TopoDS_Shape& aGenV,
0072 const Sweep_NumShape& aDirV);
0073
0074
0075
0076
0077 Standard_EXPORT void SetDirectingParameter(const TopoDS_Shape& aNewEdge,
0078 TopoDS_Shape& aNewVertex,
0079 const TopoDS_Shape& aGenV,
0080 const Sweep_NumShape& aDirE,
0081 const Sweep_NumShape& aDirV);
0082
0083
0084
0085
0086 Standard_EXPORT void SetGeneratingParameter(const TopoDS_Shape& aNewEdge,
0087 TopoDS_Shape& aNewVertex,
0088 const TopoDS_Shape& aGenE,
0089 const TopoDS_Shape& aGenV,
0090 const Sweep_NumShape& aDirV);
0091
0092
0093
0094
0095
0096
0097 Standard_EXPORT TopoDS_Shape MakeEmptyFace(const TopoDS_Shape& aGenS,
0098 const Sweep_NumShape& aDirS);
0099
0100
0101
0102
0103 Standard_EXPORT void SetPCurve(const TopoDS_Shape& aNewFace,
0104 TopoDS_Shape& aNewEdge,
0105 const TopoDS_Shape& aGenF,
0106 const TopoDS_Shape& aGenE,
0107 const Sweep_NumShape& aDirV,
0108 const TopAbs_Orientation orien);
0109
0110
0111
0112
0113 Standard_EXPORT void SetGeneratingPCurve(const TopoDS_Shape& aNewFace,
0114 TopoDS_Shape& aNewEdge,
0115 const TopoDS_Shape& aGenE,
0116 const Sweep_NumShape& aDirE,
0117 const Sweep_NumShape& aDirV,
0118 const TopAbs_Orientation orien);
0119
0120
0121
0122
0123 Standard_EXPORT void SetDirectingPCurve(const TopoDS_Shape& aNewFace,
0124 TopoDS_Shape& aNewEdge,
0125 const TopoDS_Shape& aGenE,
0126 const TopoDS_Shape& aGenV,
0127 const Sweep_NumShape& aDirE,
0128 const TopAbs_Orientation orien);
0129
0130
0131
0132
0133
0134 Standard_EXPORT TopAbs_Orientation DirectSolid(const TopoDS_Shape& aGenS,
0135 const Sweep_NumShape& aDirS);
0136
0137
0138
0139
0140 Standard_EXPORT Standard_Boolean GGDShapeIsToAdd(const TopoDS_Shape& aNewShape,
0141 const TopoDS_Shape& aNewSubShape,
0142 const TopoDS_Shape& aGenS,
0143 const TopoDS_Shape& aSubGenS,
0144 const Sweep_NumShape& aDirS) const;
0145
0146
0147
0148
0149 Standard_EXPORT Standard_Boolean GDDShapeIsToAdd(const TopoDS_Shape& aNewShape,
0150 const TopoDS_Shape& aNewSubShape,
0151 const TopoDS_Shape& aGenS,
0152 const Sweep_NumShape& aDirS,
0153 const Sweep_NumShape& aSubDirS) const;
0154
0155
0156
0157
0158
0159
0160 Standard_EXPORT Standard_Boolean SeparatedWires(const TopoDS_Shape& aNewShape,
0161 const TopoDS_Shape& aNewSubShape,
0162 const TopoDS_Shape& aGenS,
0163 const TopoDS_Shape& aSubGenS,
0164 const Sweep_NumShape& aDirS) const;
0165
0166
0167
0168
0169
0170 Standard_EXPORT Standard_Boolean HasShape(const TopoDS_Shape& aGenS,
0171 const Sweep_NumShape& aDirS) const;
0172
0173
0174
0175 Standard_EXPORT Standard_Boolean IsInvariant(const TopoDS_Shape& aGenS) const;
0176
0177
0178
0179 Standard_EXPORT gp_Vec Vec() const;
0180
0181 protected:
0182 private:
0183 gp_Vec myVec;
0184 Standard_Boolean myCanonize;
0185 };
0186
0187 #endif