Open CASCADE Technology
6.9.0

Describes functions to build fillets and chamfers on the vertices of a planar face. Fillets and Chamfers on the Vertices of a Planar Face A MakeFillet2d object provides a framework for: More...
#include <BRepFilletAPI_MakeFillet2d.hxx>
Public Member Functions  
BRepFilletAPI_MakeFillet2d ()  
Initializes an empty algorithm for computing fillets and chamfers. The face on which the fillets and chamfers are built is defined using the Init function. The vertices on which fillets or chamfers are built are defined using the AddFillet or AddChamfer function. Warning The status of the initialization, as given by the Status function, can be one of the following: More...  
BRepFilletAPI_MakeFillet2d (const TopoDS_Face &F)  
Initializes an algorithm for computing fillets and chamfers on the face F. The vertices on which fillets or chamfers are built are defined using the AddFillet or AddChamfer function. Warning The status of the initialization, as given by the Status function, can be one of the following: More...  
void  Init (const TopoDS_Face &F) 
Initializes this algorithm for constructing fillets or chamfers with the face F. Warning The status of the initialization, as given by the Status function, can be one of the following: More...  
void  Init (const TopoDS_Face &RefFace, const TopoDS_Face &ModFace) 
This initialize method allow to init the builder from a face <RefFace> and another face <ModFace> which derive from <RefFace>. This is usefull to modify a fillet or a chamfer already created on <ModFace> . More...  
TopoDS_Edge  AddFillet (const TopoDS_Vertex &V, const Standard_Real Radius) 
Adds a fillet of radius Radius between the two edges adjacent to the vertex V on the face modified by this algorithm. The two edges do not need to be rectilinear. This function returns the fillet and builds the resulting face. Warning The status of the construction, as given by the Status function, can be one of the following: More...  
TopoDS_Edge  ModifyFillet (const TopoDS_Edge &Fillet, const Standard_Real Radius) 
Assigns the radius Radius to the fillet Fillet already built on the face modified by this algorithm. This function returns the new fillet and modifies the existing face. Warning The status of the construction, as given by the Status function, can be one of the following: More...  
TopoDS_Vertex  RemoveFillet (const TopoDS_Edge &Fillet) 
Removes the fillet Fillet already built on the face modified by this algorithm. This function returns the vertex connecting the two adjacent edges of Fillet and modifies the existing face. Warning. More...  
TopoDS_Edge  AddChamfer (const TopoDS_Edge &E1, const TopoDS_Edge &E2, const Standard_Real D1, const Standard_Real D2) 
Adds a chamfer on the face modified by this algorithm between the two adjacent edges E1 and E2, where the extremities of the chamfer are on E1 and E2 at distances D1 and D2 respectively In cases where the edges are not rectilinear, distances are measured using the curvilinear abscissa of the edges and the angle is measured with respect to the tangent at the corresponding point. The angle Ang is given in radians. This function returns the chamfer and builds the resulting face. More...  
TopoDS_Edge  AddChamfer (const TopoDS_Edge &E, const TopoDS_Vertex &V, const Standard_Real D, const Standard_Real Ang) 
Adds a chamfer on the face modified by this algorithm between the two edges connected by the vertex V, where E is one of the two edges. The chamfer makes an angle Ang with E and one of its extremities is on E at distance D from V. In cases where the edges are not rectilinear, distances are measured using the curvilinear abscissa of the edges and the angle is measured with respect to the tangent at the corresponding point. The angle Ang is given in radians. This function returns the chamfer and builds the resulting face. Warning The status of the construction, as given by the Status function, can be one of the following: More...  
TopoDS_Edge  ModifyChamfer (const TopoDS_Edge &Chamfer, const TopoDS_Edge &E1, const TopoDS_Edge &E2, const Standard_Real D1, const Standard_Real D2) 
Modifies the chamfer Chamfer on the face modified by this algorithm, where: E1 and E2 are the two adjacent edges on which Chamfer is already built; the extremities of the new chamfer are on E1 and E2 at distances D1 and D2 respectively. More...  
TopoDS_Edge  ModifyChamfer (const TopoDS_Edge &Chamfer, const TopoDS_Edge &E, const Standard_Real D, const Standard_Real Ang) 
Modifies the chamfer Chamfer on the face modified by this algorithm, where: E is one of the two adjacent edges on which Chamfer is already built; the new chamfer makes an angle Ang with E and one of its extremities is on E at distance D from the vertex on which the chamfer is built. In cases where the edges are not rectilinear, the distances are measured using the curvilinear abscissa of the edges and the angle is measured with respect to the tangent at the corresponding point. The angle Ang is given in radians. This function returns the new chamfer and modifies the existing face. Warning The status of the construction, as given by the Status function, can be one of the following: More...  
TopoDS_Vertex  RemoveChamfer (const TopoDS_Edge &Chamfer) 
Removes the chamfer Chamfer already built on the face modified by this algorithm. This function returns the vertex connecting the two adjacent edges of Chamfer and modifies the existing face. Warning. More...  
Standard_Boolean  IsModified (const TopoDS_Edge &E) const 
Returns true if the edge E on the face modified by this algorithm is chamfered or filleted. Warning Returns false if E does not belong to the face modified by this algorithm. More...  
const TopTools_SequenceOfShape &  FilletEdges () const 
Returns the table of fillets on the face modified by this algorithm. More...  
Standard_Integer  NbFillet () const 
Returns the number of fillets on the face modified by this algorithm. More...  
const TopTools_SequenceOfShape &  ChamferEdges () const 
Returns the table of chamfers on the face modified by this algorithm. More...  
Standard_Integer  NbChamfer () const 
Returns the number of chamfers on the face modified by this algorithm. More...  
virtual const TopTools_ListOfShape &  Modified (const TopoDS_Shape &S) 
Returns the list of shapes modified from the shape <S>. More...  
Standard_Integer  NbCurves () const 
returns the number of new curves after the shape creation. More...  
const TopTools_ListOfShape &  NewEdges (const Standard_Integer I) 
Return the Edges created for curve I. More...  
Standard_Boolean  HasDescendant (const TopoDS_Edge &E) const 
const TopoDS_Edge &  DescendantEdge (const TopoDS_Edge &E) const 
Returns the chamfered or filleted edge built from the edge E on the face modified by this algorithm. If E has not been modified, this function returns E. Exceptions Standard_NoSuchObject if the edge E does not belong to the initial face. More...  
const TopoDS_Edge &  BasisEdge (const TopoDS_Edge &E) const 
Returns the basis edge on the face modified by this algorithm from which the chamfered or filleted edge E is built. If E has not been modified, this function returns E. Warning E is returned if it does not belong to the initial face. More...  
ChFi2d_ConstructionError  Status () const 
virtual void  Build () 
Update the result and set the Done flag. More...  
Public Member Functions inherited from BRepBuilderAPI_MakeShape  
virtual void  Delete () 
virtual  ~BRepBuilderAPI_MakeShape () 
virtual const TopoDS_Shape &  Shape () const 
Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built. More...  
operator TopoDS_Shape () const  
virtual const TopTools_ListOfShape &  Generated (const TopoDS_Shape &S) 
Returns the list of shapes generated from the shape <S>. More...  
virtual Standard_Boolean  IsDeleted (const TopoDS_Shape &S) 
Returns true if the shape S has been deleted. More...  
Public Member Functions inherited from BRepBuilderAPI_Command  
virtual  ~BRepBuilderAPI_Command () 
virtual Standard_Boolean  IsDone () const 
void  Check () const 
Raises NotDone if done is false. More...  
Additional Inherited Members  
Protected Member Functions inherited from BRepBuilderAPI_MakeShape  
BRepBuilderAPI_MakeShape ()  
Protected Member Functions inherited from BRepBuilderAPI_Command  
BRepBuilderAPI_Command ()  
Set done to False. More...  
void  Done () 
Set done to true. More...  
void  NotDone () 
Set done to false. More...  
Protected Attributes inherited from BRepBuilderAPI_MakeShape  
TopoDS_Shape  myShape 
TopTools_ListOfShape  myGenerated 
Describes functions to build fillets and chamfers on the vertices of a planar face. Fillets and Chamfers on the Vertices of a Planar Face A MakeFillet2d object provides a framework for:
BRepFilletAPI_MakeFillet2d::BRepFilletAPI_MakeFillet2d  (  ) 
Initializes an empty algorithm for computing fillets and chamfers. The face on which the fillets and chamfers are built is defined using the Init function. The vertices on which fillets or chamfers are built are defined using the AddFillet or AddChamfer function. Warning The status of the initialization, as given by the Status function, can be one of the following:
BRepFilletAPI_MakeFillet2d::BRepFilletAPI_MakeFillet2d  (  const TopoDS_Face &  F  ) 
Initializes an algorithm for computing fillets and chamfers on the face F. The vertices on which fillets or chamfers are built are defined using the AddFillet or AddChamfer function. Warning The status of the initialization, as given by the Status function, can be one of the following:
TopoDS_Edge BRepFilletAPI_MakeFillet2d::AddChamfer  (  const TopoDS_Edge &  E1, 
const TopoDS_Edge &  E2,  
const Standard_Real  D1,  
const Standard_Real  D2  
) 
Adds a chamfer on the face modified by this algorithm between the two adjacent edges E1 and E2, where the extremities of the chamfer are on E1 and E2 at distances D1 and D2 respectively In cases where the edges are not rectilinear, distances are measured using the curvilinear abscissa of the edges and the angle is measured with respect to the tangent at the corresponding point. The angle Ang is given in radians. This function returns the chamfer and builds the resulting face.
TopoDS_Edge BRepFilletAPI_MakeFillet2d::AddChamfer  (  const TopoDS_Edge &  E, 
const TopoDS_Vertex &  V,  
const Standard_Real  D,  
const Standard_Real  Ang  
) 
Adds a chamfer on the face modified by this algorithm between the two edges connected by the vertex V, where E is one of the two edges. The chamfer makes an angle Ang with E and one of its extremities is on E at distance D from V. In cases where the edges are not rectilinear, distances are measured using the curvilinear abscissa of the edges and the angle is measured with respect to the tangent at the corresponding point. The angle Ang is given in radians. This function returns the chamfer and builds the resulting face. Warning The status of the construction, as given by the Status function, can be one of the following:
TopoDS_Edge BRepFilletAPI_MakeFillet2d::AddFillet  (  const TopoDS_Vertex &  V, 
const Standard_Real  Radius  
) 
Adds a fillet of radius Radius between the two edges adjacent to the vertex V on the face modified by this algorithm. The two edges do not need to be rectilinear. This function returns the fillet and builds the resulting face. Warning The status of the construction, as given by the Status function, can be one of the following:
const TopoDS_Edge& BRepFilletAPI_MakeFillet2d::BasisEdge  (  const TopoDS_Edge &  E  )  const 
Returns the basis edge on the face modified by this algorithm from which the chamfered or filleted edge E is built. If E has not been modified, this function returns E. Warning E is returned if it does not belong to the initial face.

virtual 
Update the result and set the Done flag.
Reimplemented from BRepBuilderAPI_MakeShape.
const TopTools_SequenceOfShape& BRepFilletAPI_MakeFillet2d::ChamferEdges  (  )  const 
Returns the table of chamfers on the face modified by this algorithm.
const TopoDS_Edge& BRepFilletAPI_MakeFillet2d::DescendantEdge  (  const TopoDS_Edge &  E  )  const 
Returns the chamfered or filleted edge built from the edge E on the face modified by this algorithm. If E has not been modified, this function returns E. Exceptions Standard_NoSuchObject if the edge E does not belong to the initial face.
const TopTools_SequenceOfShape& BRepFilletAPI_MakeFillet2d::FilletEdges  (  )  const 
Returns the table of fillets on the face modified by this algorithm.
Standard_Boolean BRepFilletAPI_MakeFillet2d::HasDescendant  (  const TopoDS_Edge &  E  )  const 
void BRepFilletAPI_MakeFillet2d::Init  (  const TopoDS_Face &  F  ) 
Initializes this algorithm for constructing fillets or chamfers with the face F. Warning The status of the initialization, as given by the Status function, can be one of the following:
void BRepFilletAPI_MakeFillet2d::Init  (  const TopoDS_Face &  RefFace, 
const TopoDS_Face &  ModFace  
) 
This initialize method allow to init the builder from a face <RefFace> and another face <ModFace> which derive from <RefFace>. This is usefull to modify a fillet or a chamfer already created on <ModFace> .
Standard_Boolean BRepFilletAPI_MakeFillet2d::IsModified  (  const TopoDS_Edge &  E  )  const 
Returns true if the edge E on the face modified by this algorithm is chamfered or filleted. Warning Returns false if E does not belong to the face modified by this algorithm.

virtual 
Returns the list of shapes modified from the shape <S>.
Reimplemented from BRepBuilderAPI_MakeShape.
TopoDS_Edge BRepFilletAPI_MakeFillet2d::ModifyChamfer  (  const TopoDS_Edge &  Chamfer, 
const TopoDS_Edge &  E1,  
const TopoDS_Edge &  E2,  
const Standard_Real  D1,  
const Standard_Real  D2  
) 
Modifies the chamfer Chamfer on the face modified by this algorithm, where: E1 and E2 are the two adjacent edges on which Chamfer is already built; the extremities of the new chamfer are on E1 and E2 at distances D1 and D2 respectively.
TopoDS_Edge BRepFilletAPI_MakeFillet2d::ModifyChamfer  (  const TopoDS_Edge &  Chamfer, 
const TopoDS_Edge &  E,  
const Standard_Real  D,  
const Standard_Real  Ang  
) 
Modifies the chamfer Chamfer on the face modified by this algorithm, where: E is one of the two adjacent edges on which Chamfer is already built; the new chamfer makes an angle Ang with E and one of its extremities is on E at distance D from the vertex on which the chamfer is built. In cases where the edges are not rectilinear, the distances are measured using the curvilinear abscissa of the edges and the angle is measured with respect to the tangent at the corresponding point. The angle Ang is given in radians. This function returns the new chamfer and modifies the existing face. Warning The status of the construction, as given by the Status function, can be one of the following:
TopoDS_Edge BRepFilletAPI_MakeFillet2d::ModifyFillet  (  const TopoDS_Edge &  Fillet, 
const Standard_Real  Radius  
) 
Assigns the radius Radius to the fillet Fillet already built on the face modified by this algorithm. This function returns the new fillet and modifies the existing face. Warning The status of the construction, as given by the Status function, can be one of the following:
Standard_Integer BRepFilletAPI_MakeFillet2d::NbChamfer  (  )  const 
Returns the number of chamfers on the face modified by this algorithm.
Standard_Integer BRepFilletAPI_MakeFillet2d::NbCurves  (  )  const 
returns the number of new curves after the shape creation.
Standard_Integer BRepFilletAPI_MakeFillet2d::NbFillet  (  )  const 
Returns the number of fillets on the face modified by this algorithm.
const TopTools_ListOfShape& BRepFilletAPI_MakeFillet2d::NewEdges  (  const Standard_Integer  I  ) 
Return the Edges created for curve I.
TopoDS_Vertex BRepFilletAPI_MakeFillet2d::RemoveChamfer  (  const TopoDS_Edge &  Chamfer  ) 
Removes the chamfer Chamfer already built on the face modified by this algorithm. This function returns the vertex connecting the two adjacent edges of Chamfer and modifies the existing face. Warning.
TopoDS_Vertex BRepFilletAPI_MakeFillet2d::RemoveFillet  (  const TopoDS_Edge &  Fillet  ) 
Removes the fillet Fillet already built on the face modified by this algorithm. This function returns the vertex connecting the two adjacent edges of Fillet and modifies the existing face. Warning.
ChFi2d_ConstructionError BRepFilletAPI_MakeFillet2d::Status  (  )  const 