1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _BRepLib_MakeFace_HeaderFile
#define _BRepLib_MakeFace_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>
#include <BRepLib_FaceError.hxx>
#include <BRepLib_MakeShape.hxx>
#include <Handle_Geom_Surface.hxx>
#include <Standard_Real.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_Geom_Curve.hxx>
class StdFail_NotDone;
class TopoDS_Face;
class gp_Pln;
class gp_Cylinder;
class gp_Cone;
class gp_Sphere;
class gp_Torus;
class Geom_Surface;
class TopoDS_Wire;
class Geom_Curve;
//! Provides methods to build faces.
//!
//! A face may be built :
//!
//! * From a surface.
//!
//! - Elementary surface from gp.
//!
//! - Surface from Geom.
//!
//! * From a surface and U,V values.
//!
//! * From a wire.
//!
//! - Find the surface automatically if possible.
//!
//! * From a surface and a wire.
//!
//! - A flag Inside is given, when this flag is True
//! the wire is oriented to bound a finite area on
//! the surface.
//!
//! * From a face and a wire.
//!
//! - The new wire is a perforation.
class BRepLib_MakeFace : public BRepLib_MakeShape
{
public:
DEFINE_STANDARD_ALLOC
//! Not done.
Standard_EXPORT BRepLib_MakeFace();
//! Load a face. Usefull to add wires.
Standard_EXPORT BRepLib_MakeFace(const TopoDS_Face& F);
//! Make a face from a plane.
Standard_EXPORT BRepLib_MakeFace(const gp_Pln& P);
//! Make a face from a cylinder.
Standard_EXPORT BRepLib_MakeFace(const gp_Cylinder& C);
//! Make a face from a cone.
Standard_EXPORT BRepLib_MakeFace(const gp_Cone& C);
//! Make a face from a sphere.
Standard_EXPORT BRepLib_MakeFace(const gp_Sphere& S);
//! Make a face from a torus.
Standard_EXPORT BRepLib_MakeFace(const gp_Torus& C);
//! Make a face from a Surface. Accepts tolerance value (TolDegen)
//! for resolution of degenerated edges.
Standard_EXPORT BRepLib_MakeFace(const Handle(Geom_Surface)& S, const Standard_Real TolDegen);
//! Make a face from a plane.
Standard_EXPORT BRepLib_MakeFace(const gp_Pln& P, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax);
//! Make a face from a cylinder.
Standard_EXPORT BRepLib_MakeFace(const gp_Cylinder& C, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax);
//! Make a face from a cone.
Standard_EXPORT BRepLib_MakeFace(const gp_Cone& C, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax);
//! Make a face from a sphere.
Standard_EXPORT BRepLib_MakeFace(const gp_Sphere& S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax);
//! Make a face from a torus.
Standard_EXPORT BRepLib_MakeFace(const gp_Torus& C, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax);
//! Make a face from a Surface. Accepts min & max parameters
//! to construct the face's bounds. Also accepts tolerance value (TolDegen)
//! for resolution of degenerated edges.
Standard_EXPORT BRepLib_MakeFace(const Handle(Geom_Surface)& S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real TolDegen);
//! Find a surface from the wire and make a face.
//! if <OnlyPlane> is true, the computed surface will be
//! a plane. If it is not possible to find a plane, the
//! flag NotDone will be set.
Standard_EXPORT BRepLib_MakeFace(const TopoDS_Wire& W, const Standard_Boolean OnlyPlane = Standard_False);
//! Make a face from a plane and a wire.
Standard_EXPORT BRepLib_MakeFace(const gp_Pln& P, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
//! Make a face from a cylinder and a wire.
Standard_EXPORT BRepLib_MakeFace(const gp_Cylinder& C, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
//! Make a face from a cone and a wire.
Standard_EXPORT BRepLib_MakeFace(const gp_Cone& C, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
//! Make a face from a sphere and a wire.
Standard_EXPORT BRepLib_MakeFace(const gp_Sphere& S, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
//! Make a face from a torus and a wire.
Standard_EXPORT BRepLib_MakeFace(const gp_Torus& C, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
//! Make a face from a Surface and a wire.
Standard_EXPORT BRepLib_MakeFace(const Handle(Geom_Surface)& S, const TopoDS_Wire& W, const Standard_Boolean Inside = Standard_True);
//! Adds the wire <W> in the face <F>
Standard_EXPORT BRepLib_MakeFace(const TopoDS_Face& F, const TopoDS_Wire& W);
//! Load the face.
Standard_EXPORT void Init (const TopoDS_Face& F) ;
//! Creates the face from the surface. If Bound is
//! True a wire is made from the natural bounds.
//! Accepts tolerance value (TolDegen) for resolution
//! of degenerated edges.
Standard_EXPORT void Init (const Handle(Geom_Surface)& S, const Standard_Boolean Bound, const Standard_Real TolDegen) ;
//! Creates the face from the surface and the min-max
//! values. Accepts tolerance value (TolDegen) for resolution
//! of degenerated edges.
Standard_EXPORT void Init (const Handle(Geom_Surface)& S, const Standard_Real UMin, const Standard_Real UMax, const Standard_Real VMin, const Standard_Real VMax, const Standard_Real TolDegen) ;
//! Adds the wire <W> in the current face.
Standard_EXPORT void Add (const TopoDS_Wire& W) ;
Standard_EXPORT BRepLib_FaceError Error() const;
//! Returns the new face.
Standard_EXPORT const TopoDS_Face& Face() const;
Standard_EXPORT operator TopoDS_Face() const;
//! Checks the specified curve is degenerated
//! according to specified tolerance.
//! Returns <theActTol> less than <theMaxTol>, which shows
//! actual tolerance to decide the curve is degenerated.
//! Warning: For internal use of BRepLib_MakeFace and BRepLib_MakeShell.
Standard_EXPORT static Standard_Boolean IsDegenerated (const Handle(Geom_Curve)& theCurve, const Standard_Real theMaxTol, Standard_Real& theActTol) ;
protected:
private:
//! Reorient the current face if the boundary is not
//! finite.
Standard_EXPORT void CheckInside() ;
BRepLib_FaceError myError;
};
#endif // _BRepLib_MakeFace_HeaderFile
|