Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
ChFi3d_ChBuilder Class Reference

construction tool for 3D chamfers on edges.

#include <ChFi3d_ChBuilder.hxx>

Inheritance diagram for ChFi3d_ChBuilder:
Inheritance graph
[legend]

Public Member Functions

DEFINE_STANDARD_ALLOC ChFi3d_ChBuilder (const TopoDS_Shape &S, const Standard_Real Ta=1.0e-2)
 initializes the Builder with the Shape <S> for the
computation of chamfers

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 Standard_Real Dis, 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 <Dis>
//! if the edge <E> has more than 2 adjacent faces

void SetDist (const Standard_Real Dis, const Standard_Integer 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 Standard_Integer IC, Standard_Real &Dis) const
 gives the distances <Dis> of the fillet
contour of index <IC> in the DS

void Add (const Standard_Real Dis1, const Standard_Real 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 Standard_Real Dis1, const Standard_Real Dis2, const Standard_Integer 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 Standard_Integer IC, Standard_Real &Dis1, Standard_Real &Dis2) const
 gives the distances <Dis1> and <Dis2> of the fillet
contour of index <IC> in the DS

void AddDA (const Standard_Real Dis, const Standard_Real 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 Standard_Real Dis, const Standard_Real Angle, const Standard_Integer 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 Standard_Integer IC, Standard_Real &Dis, Standard_Real &Angle, Standard_Boolean &DisOnFace1) const
 gives the distances <Dis> and <Angle> of the fillet
contour of index <IC> in the DS

ChFiDS_ChamfMethod IsChamfer (const Standard_Integer IC) const
 renvoi la methode des chanfreins utilisee

void ResetContour (const Standard_Integer IC)
 Reset tous rayons du contour IC.

void Simulate (const Standard_Integer IC)
Standard_Integer NbSurf (const Standard_Integer IC) const
Handle_ChFiDS_SecHArray1 Sect (const Standard_Integer IC, const Standard_Integer IS) const
virtual void SimulSurf (Handle< ChFiDS_SurfData > &Data, const Handle< ChFiDS_HElSpine > &Guide, const Handle< ChFiDS_Spine > &Spine, const Standard_Integer Choix, const Handle< BRepAdaptor_HSurface > &S1, const Handle< Adaptor3d_TopolTool > &I1, const Handle< BRepAdaptor_HCurve2d > &PC1, const Handle< BRepAdaptor_HSurface > &Sref1, const Handle< BRepAdaptor_HCurve2d > &PCref1, Standard_Boolean &Decroch1, const Handle< BRepAdaptor_HSurface > &S2, const Handle< Adaptor3d_TopolTool > &I2, const TopAbs_Orientation Or2, const Standard_Real Fleche, const Standard_Real TolGuide, Standard_Real &First, Standard_Real &Last, const Standard_Boolean Inside, const Standard_Boolean Appro, const Standard_Boolean Forward, const Standard_Boolean RecP, const Standard_Boolean RecS, const Standard_Boolean RecRst, const math_Vector &Soldep)
virtual void SimulSurf (Handle< ChFiDS_SurfData > &Data, const Handle< ChFiDS_HElSpine > &Guide, const Handle< ChFiDS_Spine > &Spine, const Standard_Integer Choix, const Handle< BRepAdaptor_HSurface > &S1, const Handle< Adaptor3d_TopolTool > &I1, const TopAbs_Orientation Or1, const Handle< BRepAdaptor_HSurface > &S2, const Handle< Adaptor3d_TopolTool > &I2, const Handle< BRepAdaptor_HCurve2d > &PC2, const Handle< BRepAdaptor_HSurface > &Sref2, const Handle< BRepAdaptor_HCurve2d > &PCref2, Standard_Boolean &Decroch2, const Standard_Real Fleche, const Standard_Real TolGuide, Standard_Real &First, Standard_Real &Last, const Standard_Boolean Inside, const Standard_Boolean Appro, const Standard_Boolean Forward, const Standard_Boolean RecP, const Standard_Boolean RecS, const Standard_Boolean RecRst, const math_Vector &Soldep)
virtual void SimulSurf (Handle< ChFiDS_SurfData > &Data, const Handle< ChFiDS_HElSpine > &Guide, const Handle< ChFiDS_Spine > &Spine, const Standard_Integer Choix, const Handle< BRepAdaptor_HSurface > &S1, const Handle< Adaptor3d_TopolTool > &I1, const Handle< BRepAdaptor_HCurve2d > &PC1, const Handle< BRepAdaptor_HSurface > &Sref1, const Handle< BRepAdaptor_HCurve2d > &PCref1, Standard_Boolean &Decroch1, const TopAbs_Orientation Or1, const Handle< BRepAdaptor_HSurface > &S2, const Handle< Adaptor3d_TopolTool > &I2, const Handle< BRepAdaptor_HCurve2d > &PC2, const Handle< BRepAdaptor_HSurface > &Sref2, const Handle< BRepAdaptor_HCurve2d > &PCref2, Standard_Boolean &Decroch2, const TopAbs_Orientation Or2, const Standard_Real Fleche, const Standard_Real TolGuide, Standard_Real &First, Standard_Real &Last, const Standard_Boolean Inside, const Standard_Boolean Appro, const Standard_Boolean Forward, const Standard_Boolean RecP1, const Standard_Boolean RecRst1, const Standard_Boolean RecP2, const Standard_Boolean RecRst2, const math_Vector &Soldep)
virtual Standard_Boolean PerformSurf (ChFiDS_SequenceOfSurfData &Data, const Handle< ChFiDS_HElSpine > &Guide, const Handle< ChFiDS_Spine > &Spine, const Standard_Integer Choix, const Handle< BRepAdaptor_HSurface > &S1, const Handle< Adaptor3d_TopolTool > &I1, const Handle< BRepAdaptor_HSurface > &S2, const Handle< Adaptor3d_TopolTool > &I2, const Standard_Real MaxStep, const Standard_Real Fleche, const Standard_Real TolGuide, Standard_Real &First, Standard_Real &Last, const Standard_Boolean Inside, const Standard_Boolean Appro, const Standard_Boolean Forward, const Standard_Boolean RecOnS1, const Standard_Boolean RecOnS2, const math_Vector &Soldep, Standard_Boolean &Intf, Standard_Boolean &Intl)
 Methode, implemented in inheritants, calculates
the elements of construction of the surface (fillet
or chamfer).

virtual void PerformSurf (ChFiDS_SequenceOfSurfData &Data, const Handle< ChFiDS_HElSpine > &Guide, const Handle< ChFiDS_Spine > &Spine, const Standard_Integer Choix, const Handle< BRepAdaptor_HSurface > &S1, const Handle< Adaptor3d_TopolTool > &I1, const Handle< BRepAdaptor_HCurve2d > &PC1, const Handle< BRepAdaptor_HSurface > &Sref1, const Handle< BRepAdaptor_HCurve2d > &PCref1, Standard_Boolean &Decroch1, const Handle< BRepAdaptor_HSurface > &S2, const Handle< Adaptor3d_TopolTool > &I2, const TopAbs_Orientation Or2, const Standard_Real MaxStep, const Standard_Real Fleche, const Standard_Real TolGuide, Standard_Real &First, Standard_Real &Last, const Standard_Boolean Inside, const Standard_Boolean Appro, const Standard_Boolean Forward, const Standard_Boolean RecP, const Standard_Boolean RecS, const Standard_Boolean RecRst, const math_Vector &Soldep)
 Method, implemented in the inheritants, calculates
the elements of construction of the surface (fillet
or chamfer) contact edge/face.

virtual void PerformSurf (ChFiDS_SequenceOfSurfData &Data, const Handle< ChFiDS_HElSpine > &Guide, const Handle< ChFiDS_Spine > &Spine, const Standard_Integer Choix, const Handle< BRepAdaptor_HSurface > &S1, const Handle< Adaptor3d_TopolTool > &I1, const TopAbs_Orientation Or1, const Handle< BRepAdaptor_HSurface > &S2, const Handle< Adaptor3d_TopolTool > &I2, const Handle< BRepAdaptor_HCurve2d > &PC2, const Handle< BRepAdaptor_HSurface > &Sref2, const Handle< BRepAdaptor_HCurve2d > &PCref2, Standard_Boolean &Decroch2, const Standard_Real MaxStep, const Standard_Real Fleche, const Standard_Real TolGuide, Standard_Real &First, Standard_Real &Last, const Standard_Boolean Inside, const Standard_Boolean Appro, const Standard_Boolean Forward, const Standard_Boolean RecP, const Standard_Boolean RecS, const Standard_Boolean RecRst, const math_Vector &Soldep)
 Method, implemented in inheritants, calculates
the elements of construction of the surface (fillet
or chamfer) contact edge/face.

virtual void PerformSurf (ChFiDS_SequenceOfSurfData &Data, const Handle< ChFiDS_HElSpine > &Guide, const Handle< ChFiDS_Spine > &Spine, const Standard_Integer Choix, const Handle< BRepAdaptor_HSurface > &S1, const Handle< Adaptor3d_TopolTool > &I1, const Handle< BRepAdaptor_HCurve2d > &PC1, const Handle< BRepAdaptor_HSurface > &Sref1, const Handle< BRepAdaptor_HCurve2d > &PCref1, Standard_Boolean &Decroch1, const TopAbs_Orientation Or1, const Handle< BRepAdaptor_HSurface > &S2, const Handle< Adaptor3d_TopolTool > &I2, const Handle< BRepAdaptor_HCurve2d > &PC2, const Handle< BRepAdaptor_HSurface > &Sref2, const Handle< BRepAdaptor_HCurve2d > &PCref2, Standard_Boolean &Decroch2, const TopAbs_Orientation Or2, const Standard_Real MaxStep, const Standard_Real Fleche, const Standard_Real TolGuide, Standard_Real &First, Standard_Real &Last, const Standard_Boolean Inside, const Standard_Boolean Appro, const Standard_Boolean Forward, const Standard_Boolean RecP1, const Standard_Boolean RecRst1, const Standard_Boolean RecP2, const Standard_Boolean RecRst2, const math_Vector &Soldep)
 Method, implemented in inheritants, calculates
the elements of construction of the surface (fillet
or chamfer) contact edge/edge.

Standard_Integer FindChoiceDistAngle (const Standard_Integer Choice, const Standard_Boolean DisOnF1) const

Protected Member Functions

void SimulKPart (const Handle< ChFiDS_SurfData > &SD) const
Standard_Boolean SimulSurf (Handle< ChFiDS_SurfData > &Data, const Handle< ChFiDS_HElSpine > &Guide, const Handle< ChFiDS_Spine > &Spine, const Standard_Integer Choix, const Handle< BRepAdaptor_HSurface > &S1, const Handle< Adaptor3d_TopolTool > &I1, const Handle< BRepAdaptor_HSurface > &S2, const Handle< Adaptor3d_TopolTool > &I2, const Standard_Real TolGuide, Standard_Real &First, Standard_Real &Last, const Standard_Boolean Inside, const Standard_Boolean Appro, const Standard_Boolean Forward, const Standard_Boolean RecOnS1, const Standard_Boolean RecOnS2, const math_Vector &Soldep, Standard_Boolean &Intf, Standard_Boolean &Intl)
Standard_Boolean PerformFirstSection (const Handle< ChFiDS_Spine > &S, const Handle< ChFiDS_HElSpine > &HGuide, const Standard_Integer Choix, Handle< BRepAdaptor_HSurface > &S1, Handle< BRepAdaptor_HSurface > &S2, const Handle< Adaptor3d_TopolTool > &I1, const Handle< Adaptor3d_TopolTool > &I2, const Standard_Real Par, math_Vector &SolDep, TopAbs_State &Pos1, TopAbs_State &Pos2) const
void PerformTwoCorner (const Standard_Integer Index)
 computes the intersection of two chamfers on
the vertex of index <Index> in myVDataMap.

void PerformThreeCorner (const Standard_Integer Index)
 computes the intersection of three chamfers on
the vertex of index <Index> in myVDataMap.

void ExtentOneCorner (const TopoDS_Vertex &V, const Handle< ChFiDS_Stripe > &S)
 extends the spine of the Stripe <S> at the
extremity of the vertex <V>.

void ExtentTwoCorner (const TopoDS_Vertex &V, const ChFiDS_ListOfStripe &LS)
 extends the spine of the 2 stripes of <LS> at the
extremity of the vertex <V>

void ExtentThreeCorner (const TopoDS_Vertex &V, const ChFiDS_ListOfStripe &LS)
 extends the spine of the 2 stripes of <LS> at the
extremity of the vertex <V>

void SetRegul ()
 set the regularities


Constructor & Destructor Documentation


Member Function Documentation

Implements ChFi3d_Builder.

Implements ChFi3d_Builder.

Implements ChFi3d_Builder.

Implements ChFi3d_Builder.

Implements ChFi3d_Builder.

Reimplemented from ChFi3d_Builder.

Reimplemented from ChFi3d_Builder.

Reimplemented from ChFi3d_Builder.

Implements ChFi3d_Builder.

Implements ChFi3d_Builder.

Handle_ChFiDS_SecHArray1 ChFi3d_ChBuilder::Sect ( const Standard_Integer  IC,
const Standard_Integer  IS 
) const
void ChFi3d_ChBuilder::SetRegul ( ) [protected, virtual]

Implements ChFi3d_Builder.

void ChFi3d_ChBuilder::SimulKPart ( const Handle< ChFiDS_SurfData > &  SD) const [protected, virtual]

Implements ChFi3d_Builder.

Reimplemented from ChFi3d_Builder.

Reimplemented from ChFi3d_Builder.

Reimplemented from ChFi3d_Builder.

Implements ChFi3d_Builder.


The documentation for this class was generated from the following file: