![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
construction tool for 3D chamfers on edges (on a solid). More...
#include <ChFi3d_ChBuilder.hxx>

Public Member Functions | |
| ChFi3d_ChBuilder (const TopoDS_Shape &S, const double Ta=1.0e-2) | |
| initializes the Builder with the Shape | |
| void | Add (const TopoDS_Edge &E) |
| initializes a contour with the edge <E> as first (the next are found by propagation ). The two distances (parameters of the chamfer) must be set after. if the edge <E> has more than 2 adjacent faces | |
| void | Add (const double Dis, const TopoDS_Edge &E) |
| initializes a new contour with the edge <E> as first (the next are found by propagation ), and the distance <Dis> if the edge <E> has more than 2 adjacent faces | |
| void | SetDist (const double Dis, const int IC, const TopoDS_Face &F) |
| set the distance <Dis> of the fillet contour of index <IC> in the DS with <Dis> on <F>. if the face <F> is not one of common faces of an edge of the contour <IC> | |
| void | GetDist (const int IC, double &Dis) const |
| gives the distances <Dis> of the fillet contour of index <IC> in the DS | |
| void | Add (const double Dis1, const double Dis2, const TopoDS_Edge &E, const TopoDS_Face &F) |
| initializes a new contour with the edge <E> as first (the next are found by propagation ), and the distance <Dis1> and <Dis2> if the edge <E> has more than 2 adjacent faces | |
| void | SetDists (const double Dis1, const double Dis2, const int IC, const TopoDS_Face &F) |
| set the distances <Dis1> and <Dis2> of the fillet contour of index <IC> in the DS with <Dis1> on <F>. if the face <F> is not one of common faces of an edge of the contour <IC> | |
| void | Dists (const int IC, double &Dis1, double &Dis2) const |
| gives the distances <Dis1> and <Dis2> of the fillet contour of index <IC> in the DS | |
| void | AddDA (const double Dis, const double Angle, const TopoDS_Edge &E, const TopoDS_Face &F) |
| initializes a new contour with the edge <E> as first (the next are found by propagation ), and the distance <Dis1> and <Angle> if the edge <E> has more than 2 adjacent faces | |
| void | SetDistAngle (const double Dis, const double Angle, const int IC, const TopoDS_Face &F) |
| set the distance <Dis> and <Angle> of the fillet contour of index <IC> in the DS with <Dis> on <F>. if the face <F> is not one of common faces of an edge of the contour <IC> | |
| void | GetDistAngle (const int IC, double &Dis, double &Angle) const |
| gives the distances <Dis> and <Angle> of the fillet contour of index <IC> in the DS | |
| void | SetMode (const ChFiDS_ChamfMode theMode) |
| set the mode of shamfer | |
| ChFiDS_ChamfMethod | IsChamfer (const int IC) const |
| renvoi la methode des chanfreins utilisee | |
| ChFiDS_ChamfMode | Mode () const |
| returns the mode of chamfer used | |
| void | ResetContour (const int IC) |
| Reset tous rayons du contour IC. | |
| void | Simulate (const int IC) |
| int | NbSurf (const int IC) const |
| occ::handle< NCollection_HArray1< ChFiDS_CircSection > > | Sect (const int IC, const int IS) const |
| void | SimulSurf (occ::handle< ChFiDS_SurfData > &Data, const occ::handle< ChFiDS_ElSpine > &Guide, const occ::handle< ChFiDS_Spine > &Spine, const int Choix, const occ::handle< BRepAdaptor_Surface > &S1, const occ::handle< Adaptor3d_TopolTool > &I1, const occ::handle< BRepAdaptor_Curve2d > &PC1, const occ::handle< BRepAdaptor_Surface > &Sref1, const occ::handle< BRepAdaptor_Curve2d > &PCref1, bool &Decroch1, const occ::handle< BRepAdaptor_Surface > &S2, const occ::handle< Adaptor3d_TopolTool > &I2, const TopAbs_Orientation Or2, const double Fleche, const double TolGuide, double &First, double &Last, const bool Inside, const bool Appro, const bool Forward, const bool RecP, const bool RecS, const bool RecRst, const math_Vector &Soldep) override |
| void | SimulSurf (occ::handle< ChFiDS_SurfData > &Data, const occ::handle< ChFiDS_ElSpine > &Guide, const occ::handle< ChFiDS_Spine > &Spine, const int Choix, const occ::handle< BRepAdaptor_Surface > &S1, const occ::handle< Adaptor3d_TopolTool > &I1, const TopAbs_Orientation Or1, const occ::handle< BRepAdaptor_Surface > &S2, const occ::handle< Adaptor3d_TopolTool > &I2, const occ::handle< BRepAdaptor_Curve2d > &PC2, const occ::handle< BRepAdaptor_Surface > &Sref2, const occ::handle< BRepAdaptor_Curve2d > &PCref2, bool &Decroch2, const double Fleche, const double TolGuide, double &First, double &Last, const bool Inside, const bool Appro, const bool Forward, const bool RecP, const bool RecS, const bool RecRst, const math_Vector &Soldep) override |
| void | SimulSurf (occ::handle< ChFiDS_SurfData > &Data, const occ::handle< ChFiDS_ElSpine > &Guide, const occ::handle< ChFiDS_Spine > &Spine, const int Choix, const occ::handle< BRepAdaptor_Surface > &S1, const occ::handle< Adaptor3d_TopolTool > &I1, const occ::handle< BRepAdaptor_Curve2d > &PC1, const occ::handle< BRepAdaptor_Surface > &Sref1, const occ::handle< BRepAdaptor_Curve2d > &PCref1, bool &Decroch1, const TopAbs_Orientation Or1, const occ::handle< BRepAdaptor_Surface > &S2, const occ::handle< Adaptor3d_TopolTool > &I2, const occ::handle< BRepAdaptor_Curve2d > &PC2, const occ::handle< BRepAdaptor_Surface > &Sref2, const occ::handle< BRepAdaptor_Curve2d > &PCref2, bool &Decroch2, const TopAbs_Orientation Or2, const double Fleche, const double TolGuide, double &First, double &Last, const bool Inside, const bool Appro, const bool Forward, const bool RecP1, const bool RecRst1, const bool RecP2, const bool RecRst2, const math_Vector &Soldep) override |
| bool | PerformSurf (NCollection_Sequence< occ::handle< ChFiDS_SurfData > > &Data, const occ::handle< ChFiDS_ElSpine > &Guide, const occ::handle< ChFiDS_Spine > &Spine, const int Choix, const occ::handle< BRepAdaptor_Surface > &S1, const occ::handle< Adaptor3d_TopolTool > &I1, const occ::handle< BRepAdaptor_Surface > &S2, const occ::handle< Adaptor3d_TopolTool > &I2, const double MaxStep, const double Fleche, const double TolGuide, double &First, double &Last, const bool Inside, const bool Appro, const bool Forward, const bool RecOnS1, const bool RecOnS2, const math_Vector &Soldep, int &Intf, int &Intl) override |
| Methode, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer). | |
| void | PerformSurf (NCollection_Sequence< occ::handle< ChFiDS_SurfData > > &Data, const occ::handle< ChFiDS_ElSpine > &Guide, const occ::handle< ChFiDS_Spine > &Spine, const int Choix, const occ::handle< BRepAdaptor_Surface > &S1, const occ::handle< Adaptor3d_TopolTool > &I1, const occ::handle< BRepAdaptor_Curve2d > &PC1, const occ::handle< BRepAdaptor_Surface > &Sref1, const occ::handle< BRepAdaptor_Curve2d > &PCref1, bool &Decroch1, const occ::handle< BRepAdaptor_Surface > &S2, const occ::handle< Adaptor3d_TopolTool > &I2, const TopAbs_Orientation Or2, const double MaxStep, const double Fleche, const double TolGuide, double &First, double &Last, const bool Inside, const bool Appro, const bool Forward, const bool RecP, const bool RecS, const bool RecRst, const math_Vector &Soldep) override |
| Method, implemented in the inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/face. | |
| void | PerformSurf (NCollection_Sequence< occ::handle< ChFiDS_SurfData > > &Data, const occ::handle< ChFiDS_ElSpine > &Guide, const occ::handle< ChFiDS_Spine > &Spine, const int Choix, const occ::handle< BRepAdaptor_Surface > &S1, const occ::handle< Adaptor3d_TopolTool > &I1, const TopAbs_Orientation Or1, const occ::handle< BRepAdaptor_Surface > &S2, const occ::handle< Adaptor3d_TopolTool > &I2, const occ::handle< BRepAdaptor_Curve2d > &PC2, const occ::handle< BRepAdaptor_Surface > &Sref2, const occ::handle< BRepAdaptor_Curve2d > &PCref2, bool &Decroch2, const double MaxStep, const double Fleche, const double TolGuide, double &First, double &Last, const bool Inside, const bool Appro, const bool Forward, const bool RecP, const bool RecS, const bool RecRst, const math_Vector &Soldep) override |
| Method, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/face. | |
| void | PerformSurf (NCollection_Sequence< occ::handle< ChFiDS_SurfData > > &Data, const occ::handle< ChFiDS_ElSpine > &Guide, const occ::handle< ChFiDS_Spine > &Spine, const int Choix, const occ::handle< BRepAdaptor_Surface > &S1, const occ::handle< Adaptor3d_TopolTool > &I1, const occ::handle< BRepAdaptor_Curve2d > &PC1, const occ::handle< BRepAdaptor_Surface > &Sref1, const occ::handle< BRepAdaptor_Curve2d > &PCref1, bool &Decroch1, const TopAbs_Orientation Or1, const occ::handle< BRepAdaptor_Surface > &S2, const occ::handle< Adaptor3d_TopolTool > &I2, const occ::handle< BRepAdaptor_Curve2d > &PC2, const occ::handle< BRepAdaptor_Surface > &Sref2, const occ::handle< BRepAdaptor_Curve2d > &PCref2, bool &Decroch2, const TopAbs_Orientation Or2, const double MaxStep, const double Fleche, const double TolGuide, double &First, double &Last, const bool Inside, const bool Appro, const bool Forward, const bool RecP1, const bool RecRst1, const bool RecP2, const bool RecRst2, const math_Vector &Soldep) override |
| Method, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/edge. | |
Public Member Functions inherited from ChFi3d_Builder | |
| virtual | ~ChFi3d_Builder () |
| void | SetParams (const double Tang, const double Tesp, const double T2d, const double TApp3d, const double TolApp2d, const double Fleche) |
| void | SetContinuity (const GeomAbs_Shape InternalContinuity, const double AngularTolerance) |
| void | Remove (const TopoDS_Edge &E) |
| extracts from the list the contour containing edge E. | |
| int | Contains (const TopoDS_Edge &E) const |
| gives the number of the contour containing E or 0 if E does not belong to any contour. | |
| int | Contains (const TopoDS_Edge &E, int &IndexInSpine) const |
| gives the number of the contour containing E or 0 if E does not belong to any contour. Sets in IndexInSpine the index of E in the contour if it's found | |
| int | NbElements () const |
| gives the number of disjoint contours on which the fillets are calculated | |
| occ::handle< ChFiDS_Spine > | Value (const int I) const |
| gives the n'th set of edges (contour) if I >NbElements() | |
| double | Length (const int IC) const |
| returns the length of the contour of index IC. | |
| TopoDS_Vertex | FirstVertex (const int IC) const |
| returns the First vertex V of the contour of index IC. | |
| TopoDS_Vertex | LastVertex (const int IC) const |
| returns the Last vertex V of the contour of index IC. | |
| double | Abscissa (const int IC, const TopoDS_Vertex &V) const |
| returns the abscissa of the vertex V on the contour of index IC. | |
| double | RelativeAbscissa (const int IC, const TopoDS_Vertex &V) const |
| returns the relative abscissa([0.,1.]) of the vertex V on the contour of index IC. | |
| bool | ClosedAndTangent (const int IC) const |
| returns true if the contour of index IC is closed an tangent. | |
| bool | Closed (const int IC) const |
| returns true if the contour of index IC is closed | |
| void | Compute () |
| general calculation of geometry on all edges, topologic reconstruction. | |
| bool | IsDone () const |
| returns True if the computation is success | |
| TopoDS_Shape | Shape () const |
| if (Isdone()) makes the result. if (!Isdone()) | |
| const NCollection_List< TopoDS_Shape > & | Generated (const TopoDS_Shape &EouV) |
| Advanced function for the history. | |
| int | NbFaultyContours () const |
| Returns the number of contours on which the calculation has failed. | |
| int | FaultyContour (const int I) const |
| Returns the number of I'th contour on which the calculation has failed. | |
| int | NbComputedSurfaces (const int IC) const |
| Returns the number of surfaces calculated on the contour IC. | |
| occ::handle< Geom_Surface > | ComputedSurface (const int IC, const int IS) const |
| Returns the IS'th surface calculated on the contour IC. | |
| int | NbFaultyVertices () const |
| Returns the number of vertices on which the calculation has failed. | |
| TopoDS_Vertex | FaultyVertex (const int IV) const |
| Returns the IV'th vertex on which the calculation has failed. | |
| bool | HasResult () const |
| returns True if a partial result has been calculated | |
| TopoDS_Shape | BadShape () const |
| if (HasResult()) returns partial result if (!HasResult()) | |
| ChFiDS_ErrorStatus | StripeStatus (const int IC) const |
| for the stripe IC ,indication on the cause of failure WalkingFailure,TwistedSurface,Error, Ok | |
| void | Reset () |
| Reset all results of compute and returns the algorithm in the state of the last acquisition to enable modification of contours or areas. | |
| occ::handle< TopOpeBRepBuild_HBuilder > | Builder () const |
| Returns the Builder of topologic operations. | |
| bool | SplitKPart (const occ::handle< ChFiDS_SurfData > &Data, NCollection_Sequence< occ::handle< ChFiDS_SurfData > > &SetData, const occ::handle< ChFiDS_Spine > &Spine, const int Iedge, const occ::handle< Adaptor3d_Surface > &S1, const occ::handle< Adaptor3d_TopolTool > &I1, const occ::handle< Adaptor3d_Surface > &S2, const occ::handle< Adaptor3d_TopolTool > &I2, bool &Intf, bool &Intl) |
| Method, implemented in the inheritants, calculates the elements of construction of the surface (fillet or chamfer). | |
| bool | PerformTwoCornerbyInter (const int Index) |
construction tool for 3D chamfers on edges (on a solid).
| ChFi3d_ChBuilder::ChFi3d_ChBuilder | ( | const TopoDS_Shape & | S, |
| const double | Ta = 1.0e-2 ) |
initializes the Builder with the Shape for the computation of chamfers
| void ChFi3d_ChBuilder::Add | ( | const double | Dis, |
| const TopoDS_Edge & | E ) |
initializes a new contour with the edge <E> as first (the next are found by propagation ), and the distance <Dis> if the edge <E> has more than 2 adjacent faces
| void ChFi3d_ChBuilder::Add | ( | const double | Dis1, |
| const double | Dis2, | ||
| const TopoDS_Edge & | E, | ||
| const TopoDS_Face & | F ) |
initializes a new contour with the edge <E> as first (the next are found by propagation ), and the distance <Dis1> and <Dis2> if the edge <E> has more than 2 adjacent faces
| void ChFi3d_ChBuilder::Add | ( | const TopoDS_Edge & | E | ) |
initializes a contour with the edge <E> as first (the next are found by propagation ). The two distances (parameters of the chamfer) must be set after. if the edge <E> has more than 2 adjacent faces
| void ChFi3d_ChBuilder::AddDA | ( | const double | Dis, |
| const double | Angle, | ||
| const TopoDS_Edge & | E, | ||
| const TopoDS_Face & | F ) |
initializes a new contour with the edge <E> as first (the next are found by propagation ), and the distance <Dis1> and <Angle> if the edge <E> has more than 2 adjacent faces
gives the distances <Dis1> and <Dis2> of the fillet contour of index <IC> in the DS
|
overrideprotectedvirtual |
extends the spine of the Stripe at the extremity of the vertex <V>.
Implements ChFi3d_Builder.
|
overrideprotectedvirtual |
extends the spine of the 2 stripes of <LS> at the extremity of the vertex <V>
Implements ChFi3d_Builder.
|
overrideprotectedvirtual |
extends the spine of the 2 stripes of <LS> at the extremity of the vertex <V>
Implements ChFi3d_Builder.
gives the distances <Dis> of the fillet contour of index <IC> in the DS
gives the distances <Dis> and <Angle> of the fillet contour of index <IC> in the DS
| ChFiDS_ChamfMethod ChFi3d_ChBuilder::IsChamfer | ( | const int | IC | ) | const |
renvoi la methode des chanfreins utilisee
| ChFiDS_ChamfMode ChFi3d_ChBuilder::Mode | ( | ) | const |
returns the mode of chamfer used
|
overrideprotectedvirtual |
Implements ChFi3d_Builder.
|
overridevirtual |
Method, implemented in the inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/face.
Reimplemented from ChFi3d_Builder.
|
overridevirtual |
Method, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/edge.
Reimplemented from ChFi3d_Builder.
|
overridevirtual |
Methode, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer).
Implements ChFi3d_Builder.
|
overridevirtual |
Method, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/face.
Reimplemented from ChFi3d_Builder.
computes the intersection of three chamfers on the vertex of index <Index> in myVDataMap.
Implements ChFi3d_Builder.
computes the intersection of two chamfers on the vertex of index <Index> in myVDataMap.
Implements ChFi3d_Builder.
| occ::handle< NCollection_HArray1< ChFiDS_CircSection > > ChFi3d_ChBuilder::Sect | ( | const int | IC, |
| const int | IS ) const |
| void ChFi3d_ChBuilder::SetDist | ( | const double | Dis, |
| const int | IC, | ||
| const TopoDS_Face & | F ) |
set the distance <Dis> of the fillet contour of index <IC> in the DS with <Dis> on <F>. if the face <F> is not one of common faces of an edge of the contour <IC>
| void ChFi3d_ChBuilder::SetDistAngle | ( | const double | Dis, |
| const double | Angle, | ||
| const int | IC, | ||
| const TopoDS_Face & | F ) |
set the distance <Dis> and <Angle> of the fillet contour of index <IC> in the DS with <Dis> on <F>. if the face <F> is not one of common faces of an edge of the contour <IC>
| void ChFi3d_ChBuilder::SetDists | ( | const double | Dis1, |
| const double | Dis2, | ||
| const int | IC, | ||
| const TopoDS_Face & | F ) |
set the distances <Dis1> and <Dis2> of the fillet contour of index <IC> in the DS with <Dis1> on <F>. if the face <F> is not one of common faces of an edge of the contour <IC>
| void ChFi3d_ChBuilder::SetMode | ( | const ChFiDS_ChamfMode | theMode | ) |
set the mode of shamfer
|
overrideprotectedvirtual |
set the regularities
Implements ChFi3d_Builder.
|
overrideprotectedvirtual |
Implements ChFi3d_Builder.
|
overridevirtual |
Reimplemented from ChFi3d_Builder.
|
overridevirtual |
Reimplemented from ChFi3d_Builder.
|
overrideprotectedvirtual |
Implements ChFi3d_Builder.
|
overridevirtual |
Reimplemented from ChFi3d_Builder.