OCC.ChFi3d module¶
creation of spatial fillets on a solid.
-
class
ChFi3d_Builder
(*args, **kwargs)¶ Bases:
object
-
Abscissa
()¶ - returns the abscissa of the vertex V on the contour of index IC.
Parameters: - IC (int) –
- V (TopoDS_Vertex &) –
Return type:
-
BadShape
()¶ - if (HasResult()) returns partial result if (!HasResult())
Return type: TopoDS_Shape
-
Builder
()¶ - Returns the Builder of topologic operations.
Return type: Handle_TopOpeBRepBuild_HBuilder
-
ClosedAndTangent
()¶ - returns true if the contour of index IC is closed an tangent.
Parameters: IC (int) – Return type: bool
-
ComputedSurface
()¶ - Returns the IS’th surface calculated on the contour IC.
Parameters: Return type:
-
Contains
()¶ - gives the number of the contour containing E or 0 if E does not belong to any contour.
Parameters: E (TopoDS_Edge &) – Return type: int - 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
Parameters: - E (TopoDS_Edge &) –
- IndexInSpine (int &) –
Return type:
-
Delete
()¶ Return type: void
-
FaultyContour
()¶ - Returns the number of I’th contour on which the calculation has failed.
Parameters: I (int) – Return type: int
-
FaultyVertex
()¶ - Returns the IV’th vertex on which the calculation has failed.
Parameters: IV (int) – Return type: TopoDS_Vertex
-
FirstVertex
()¶ - returns the First vertex V of the contour of index IC.
Parameters: IC (int) – Return type: TopoDS_Vertex
-
Generated
()¶ - Advanced function for the history
Parameters: EouV (TopoDS_Shape &) – Return type: TopTools_ListOfShape
-
LastVertex
()¶ - returns the Last vertex V of the contour of index IC.
Parameters: IC (int) – Return type: TopoDS_Vertex
-
NbComputedSurfaces
()¶ - Returns the number of surfaces calculated on the contour IC.
Parameters: IC (int) – Return type: int
-
NbElements
()¶ - gives the number of disjoint contours on which the fillets are calculated
Return type: int
-
NbFaultyContours
()¶ - Returns the number of contours on which the calculation has failed.
Return type: int
-
NbFaultyVertices
()¶ - Returns the number of vertices on which the calculation has failed.
Return type: int
-
RelativeAbscissa
()¶ - returns the relative abscissa([0.,1.]) of the vertex V on the contour of index IC.
Parameters: - IC (int) –
- V (TopoDS_Vertex &) –
Return type:
-
Remove
()¶ - extracts from the list the contour containing edge E.
Parameters: E (TopoDS_Edge &) – Return type: None
-
Reset
()¶ - Reset all results of compute and returns the algorythm in the state of the last acquisition to enable modification of contours or areas.
Return type: None
-
SetContinuity
()¶ Parameters: - InternalContinuity (GeomAbs_Shape) –
- AngularTolerance (float) –
Return type:
-
SetParams
()¶ Parameters: Return type:
-
Shape
()¶ - if (Isdone()) makes the result. if (!Isdone())
Return type: TopoDS_Shape
-
SplitKPart
()¶ - Method, implemented in the inheritants, calculates the elements of construction of the surface (fillet or chamfer).
Parameters: Return type:
-
StripeStatus
()¶ - for the stripe IC ,indication on the cause of failure WalkingFailure,TwistedSurface,Error, Ok
Parameters: IC (int) – Return type: ChFiDS_ErrorStatus
-
Value
()¶ - gives the n’th set of edges (contour) if I >NbElements()
Parameters: I (int) – Return type: Handle_ChFiDS_Spine
-
thisown
¶ The membership flag
-
-
class
ChFi3d_ChBuilder
(*args)¶ Bases:
OCC.ChFi3d.ChFi3d_Builder
- initializes the Builder with the Shape <S> for the computation of chamfers
Parameters: - S (TopoDS_Shape &) –
- Ta (float) – default value is 1.0e-2
Return type: -
Add
()¶ - 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
Parameters: E (TopoDS_Edge &) – Return type: None - 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
Parameters: - Dis (float) –
- E (TopoDS_Edge &) –
- F (TopoDS_Face &) –
Return type: - 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
Parameters: Return type:
-
AddDA
()¶ - 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
Parameters: Return type:
-
Dists
()¶ - gives the distances <Dis1> and <Dis2> of the fillet contour of index <IC> in the DS
Parameters: - IC (int) –
- Dis1 (float &) –
- Dis2 (float &) –
Return type:
-
GetDist
()¶ - gives the distances <Dis> of the fillet contour of index <IC> in the DS
Parameters: - IC (int) –
- Dis (float &) –
Return type:
-
GetDistAngle
()¶ - gives the distances <Dis> and <Angle> of the fillet contour of index <IC> in the DS
Parameters: Return type:
-
IsChamfer
()¶ - renvoi la methode des chanfreins utilisee
Parameters: IC (int) – Return type: ChFiDS_ChamfMethod
-
PerformSurf
()¶ - Methode, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer).
Parameters: - Data (ChFiDS_SequenceOfSurfData &) –
- Guide (Handle_ChFiDS_HElSpine &) –
- Spine (Handle_ChFiDS_Spine &) –
- Choix (int) –
- S1 (Handle_BRepAdaptor_HSurface &) –
- I1 (Handle_Adaptor3d_TopolTool &) –
- S2 (Handle_BRepAdaptor_HSurface &) –
- I2 (Handle_Adaptor3d_TopolTool &) –
- MaxStep (float) –
- Fleche (float) –
- TolGuide (float) –
- First (float &) –
- Last (float &) –
- Inside (bool) –
- Appro (bool) –
- Forward (bool) –
- RecOnS1 (bool) –
- RecOnS2 (bool) –
- Soldep (math_Vector &) –
- Intf (int &) –
- Intl (int &) –
Return type: - Method, implemented in the inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/face.
Parameters: - Data (ChFiDS_SequenceOfSurfData &) –
- Guide (Handle_ChFiDS_HElSpine &) –
- Spine (Handle_ChFiDS_Spine &) –
- Choix (int) –
- S1 (Handle_BRepAdaptor_HSurface &) –
- I1 (Handle_Adaptor3d_TopolTool &) –
- PC1 (Handle_BRepAdaptor_HCurve2d &) –
- Sref1 (Handle_BRepAdaptor_HSurface &) –
- PCref1 (Handle_BRepAdaptor_HCurve2d &) –
- Decroch1 (bool) –
- S2 (Handle_BRepAdaptor_HSurface &) –
- I2 (Handle_Adaptor3d_TopolTool &) –
- Or2 (TopAbs_Orientation) –
- MaxStep (float) –
- Fleche (float) –
- TolGuide (float) –
- First (float &) –
- Last (float &) –
- Inside (bool) –
- Appro (bool) –
- Forward (bool) –
- RecP (bool) –
- RecS (bool) –
- RecRst (bool) –
- Soldep (math_Vector &) –
Return type: void
- Method, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/face.
Parameters: - Data (ChFiDS_SequenceOfSurfData &) –
- Guide (Handle_ChFiDS_HElSpine &) –
- Spine (Handle_ChFiDS_Spine &) –
- Choix (int) –
- S1 (Handle_BRepAdaptor_HSurface &) –
- I1 (Handle_Adaptor3d_TopolTool &) –
- Or1 (TopAbs_Orientation) –
- S2 (Handle_BRepAdaptor_HSurface &) –
- I2 (Handle_Adaptor3d_TopolTool &) –
- PC2 (Handle_BRepAdaptor_HCurve2d &) –
- Sref2 (Handle_BRepAdaptor_HSurface &) –
- PCref2 (Handle_BRepAdaptor_HCurve2d &) –
- Decroch2 (bool) –
- MaxStep (float) –
- Fleche (float) –
- TolGuide (float) –
- First (float &) –
- Last (float &) –
- Inside (bool) –
- Appro (bool) –
- Forward (bool) –
- RecP (bool) –
- RecS (bool) –
- RecRst (bool) –
- Soldep (math_Vector &) –
Return type: void
- Method, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/edge.
Parameters: - Data (ChFiDS_SequenceOfSurfData &) –
- Guide (Handle_ChFiDS_HElSpine &) –
- Spine (Handle_ChFiDS_Spine &) –
- Choix (int) –
- S1 (Handle_BRepAdaptor_HSurface &) –
- I1 (Handle_Adaptor3d_TopolTool &) –
- PC1 (Handle_BRepAdaptor_HCurve2d &) –
- Sref1 (Handle_BRepAdaptor_HSurface &) –
- PCref1 (Handle_BRepAdaptor_HCurve2d &) –
- Decroch1 (bool) –
- Or1 (TopAbs_Orientation) –
- S2 (Handle_BRepAdaptor_HSurface &) –
- I2 (Handle_Adaptor3d_TopolTool &) –
- PC2 (Handle_BRepAdaptor_HCurve2d &) –
- Sref2 (Handle_BRepAdaptor_HSurface &) –
- PCref2 (Handle_BRepAdaptor_HCurve2d &) –
- Decroch2 (bool) –
- Or2 (TopAbs_Orientation) –
- MaxStep (float) –
- Fleche (float) –
- TolGuide (float) –
- First (float &) –
- Last (float &) –
- Inside (bool) –
- Appro (bool) –
- Forward (bool) –
- RecP1 (bool) –
- RecRst1 (bool) –
- RecP2 (bool) –
- RecRst2 (bool) –
- Soldep (math_Vector &) –
Return type: void
-
Sect
()¶ Parameters: Return type:
-
SetDist
()¶ - 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>
Parameters: Return type:
-
SetDistAngle
()¶ - 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>
Parameters: Return type:
-
SetDists
()¶ - 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>
Parameters: Return type:
-
SimulSurf
()¶ Parameters: - Data (Handle_ChFiDS_SurfData &) –
- Guide (Handle_ChFiDS_HElSpine &) –
- Spine (Handle_ChFiDS_Spine &) –
- Choix (int) –
- S1 (Handle_BRepAdaptor_HSurface &) –
- I1 (Handle_Adaptor3d_TopolTool &) –
- PC1 (Handle_BRepAdaptor_HCurve2d &) –
- Sref1 (Handle_BRepAdaptor_HSurface &) –
- PCref1 (Handle_BRepAdaptor_HCurve2d &) –
- Decroch1 (bool) –
- S2 (Handle_BRepAdaptor_HSurface &) –
- I2 (Handle_Adaptor3d_TopolTool &) –
- Or2 (TopAbs_Orientation) –
- Fleche (float) –
- TolGuide (float) –
- First (float &) –
- Last (float &) –
- Inside (bool) –
- Appro (bool) –
- Forward (bool) –
- RecP (bool) –
- RecS (bool) –
- RecRst (bool) –
- Soldep (math_Vector &) –
- Data –
- Guide –
- Spine –
- Choix –
- S1 –
- I1 –
- Or1 (TopAbs_Orientation) –
- S2 –
- I2 –
- PC2 (Handle_BRepAdaptor_HCurve2d &) –
- Sref2 (Handle_BRepAdaptor_HSurface &) –
- PCref2 (Handle_BRepAdaptor_HCurve2d &) –
- Decroch2 (bool) –
- Fleche –
- TolGuide –
- First –
- Last –
- Inside –
- Appro –
- Forward –
- RecP –
- RecS –
- RecRst –
- Soldep –
- Data –
- Guide –
- Spine –
- Choix –
- S1 –
- I1 –
- PC1 –
- Sref1 –
- PCref1 –
- Decroch1 –
- Or1 –
- S2 –
- I2 –
- PC2 –
- Sref2 –
- PCref2 –
- Decroch2 –
- Or2 –
- Fleche –
- TolGuide –
- First –
- Last –
- Inside –
- Appro –
- Forward –
- RecP1 (bool) –
- RecRst1 (bool) –
- RecP2 (bool) –
- RecRst2 (bool) –
- Soldep –
Return type: void
Return type: void
Return type: void
-
thisown
¶ The membership flag
-
class
ChFi3d_FilBuilder
(*args)¶ Bases:
OCC.ChFi3d.ChFi3d_Builder
Parameters: - S (TopoDS_Shape &) –
- FShape (ChFi3d_FilletShape) – default value is ChFi3d_Rational
- Ta (float) – default value is 1.0e-2
Return type: -
Add
()¶ - initialisation of a contour with the first edge (the following are found by propagation). Attention, you need to start with SetRadius.
Parameters: E (TopoDS_Edge &) – Return type: None - initialisation of the constant vector the corresponding 1st edge.
Parameters: - Radius (float) –
- E (TopoDS_Edge &) –
Return type:
-
GetBounds
()¶ - Returns in First and Last les extremities of the part of variable vector framing E, returns False if E is flagged as edge constant.
Parameters: - IC (int) –
- E (TopoDS_Edge &) –
- First (float &) –
- Last (float &) –
Return type:
-
GetFilletShape
()¶ - Returns the type of fillet surface.
Return type: ChFi3d_FilletShape
-
GetLaw
()¶ - Returns the rule of elementary evolution of the part to variable vector framing E, returns a rule zero if E is flagged as edge constant.
Parameters: - IC (int) –
- E (TopoDS_Edge &) –
Return type:
-
IsConstant
()¶ - Returns true the contour is flaged as edge constant.
Parameters: IC (int) – Return type: bool - Returns true E is flagged as edge constant.
Parameters: - IC (int) –
- E (TopoDS_Edge &) –
Return type:
-
Radius
()¶ - Returns the vector if the contour is flagged as edge constant.
Parameters: IC (int) – Return type: float - Returns the vector if E is flagged as edge constant.
Parameters: - IC (int) –
- E (TopoDS_Edge &) –
Return type:
-
Sect
()¶ Parameters: Return type:
-
SetFilletShape
()¶ - Sets the type of fillet surface.
Parameters: FShape (ChFi3d_FilletShape) – Return type: None
-
SetLaw
()¶ - Sets the rule of elementary evolution of the part to variable vector framing E.
Parameters: - IC (int) –
- E (TopoDS_Edge &) –
- L (Handle_Law_Function &) –
Return type:
-
SetRadius
()¶ - Set the radius of the contour of index IC.
Parameters: Return type: - Set a constant on edge E of the contour of index IC. Since then E is flagged as constant.
Parameters: Return type: - Set a vector on vertex V of the contour of index IC.
Parameters: Return type: - Set a vertex on the point of parametre U in the edge IinC of the contour of index IC
Parameters: Return type:
-
UnSet
()¶ - Extracts the flag constant and the vector of edge E.
Parameters: - IC (int) –
- E (TopoDS_Edge &) –
Return type: - Extracts the vector of the vertex V.
Parameters: - IC (int) –
- V (TopoDS_Vertex &) –
Return type:
-
thisown
¶ The membership flag
-
class
ChFi3d_SearchSing
(*args)¶ Bases:
OCC.math.math_FunctionWithDerivative
Parameters: - C1 (Handle_Geom_Curve &) –
- C2 (Handle_Geom_Curve &) –
Return type: -
thisown
¶ The membership flag
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
class
chfi3d
¶ Bases:
object
-
static
ConcaveSide
()¶ - Returns Reversed in Or1 and(or) Or2 if the concave edge defined by the interior of faces F1 and F2, in the neighbourhood of their boundary E is of the edge opposite to the normal of their surface support. The orientation of faces is not taken into consideration in the calculation. The function returns 0 if the calculation fails (tangence), if not, it returns the number of choice of the fillet or chamfer corresponding to the orientations calculated and to the tangent to the guide line read in E.
Parameters: - S1 (BRepAdaptor_Surface &) –
- S2 (BRepAdaptor_Surface &) –
- E (TopoDS_Edge &) –
- Or1 (TopAbs_Orientation &) –
- Or2 (TopAbs_Orientation &) –
Return type:
-
static
NextSide
()¶ - Same as ConcaveSide, but the orientations are logically deduced from the result of the call of ConcaveSide on the first pair of faces of the fillet or chamnfer.
Parameters: - Or1 (TopAbs_Orientation &) –
- Or2 (TopAbs_Orientation &) –
- OrSave1 (TopAbs_Orientation) –
- OrSave2 (TopAbs_Orientation) –
- ChoixSauv (int) –
Return type: - Same as the other NextSide, but the calculation is done on an edge only.
Parameters: - Or (TopAbs_Orientation &) –
- OrSave (TopAbs_Orientation) –
- OrFace (TopAbs_Orientation) –
Return type: void
-
static
SameSide
()¶ - Enables to determine while processing an angle, if two fillets or chamfers constituting a face have identic or opposed concave edges.
Parameters: - Or (TopAbs_Orientation) –
- OrSave1 (TopAbs_Orientation) –
- OrSave2 (TopAbs_Orientation) –
- OrFace1 (TopAbs_Orientation) –
- OrFace2 (TopAbs_Orientation) –
Return type:
-
thisown
¶ The membership flag
-
static
-
chfi3d_ConcaveSide
()¶ - Returns Reversed in Or1 and(or) Or2 if the concave edge defined by the interior of faces F1 and F2, in the neighbourhood of their boundary E is of the edge opposite to the normal of their surface support. The orientation of faces is not taken into consideration in the calculation. The function returns 0 if the calculation fails (tangence), if not, it returns the number of choice of the fillet or chamfer corresponding to the orientations calculated and to the tangent to the guide line read in E.
Parameters: - S1 (BRepAdaptor_Surface &) –
- S2 (BRepAdaptor_Surface &) –
- E (TopoDS_Edge &) –
- Or1 (TopAbs_Orientation &) –
- Or2 (TopAbs_Orientation &) –
Return type:
-
chfi3d_NextSide
()¶ - Same as ConcaveSide, but the orientations are logically deduced from the result of the call of ConcaveSide on the first pair of faces of the fillet or chamnfer.
Parameters: - Or1 (TopAbs_Orientation &) –
- Or2 (TopAbs_Orientation &) –
- OrSave1 (TopAbs_Orientation) –
- OrSave2 (TopAbs_Orientation) –
- ChoixSauv (int) –
Return type: - Same as the other NextSide, but the calculation is done on an edge only.
Parameters: - Or (TopAbs_Orientation &) –
- OrSave (TopAbs_Orientation) –
- OrFace (TopAbs_Orientation) –
Return type: void
-
chfi3d_SameSide
()¶ - Enables to determine while processing an angle, if two fillets or chamfers constituting a face have identic or opposed concave edges.
Parameters: - Or (TopAbs_Orientation) –
- OrSave1 (TopAbs_Orientation) –
- OrSave2 (TopAbs_Orientation) –
- OrFace1 (TopAbs_Orientation) –
- OrFace2 (TopAbs_Orientation) –
Return type:
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases