OCC.Core.ChFi3d module

ChFi3d module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_chfi3d.html

class ChFi3d_Builder(*args, **kwargs)

Bases: object

Abscissa()
  • returns the abscissa of the vertex V on the contour of index IC.
    param IC

    type IC

    int

    param V

    type V

    TopoDS_Vertex

    rtype

    float

BadShape()
  • if (HasResult()) returns partial result if (!HasResult())
    rtype

    TopoDS_Shape

Builder()
  • Returns the Builder of topologic operations.
    rtype

    opencascade::handle<TopOpeBRepBuild_HBuilder>

Closed()
  • returns true if the contour of index IC is closed
    param IC

    type IC

    int

    rtype

    bool

ClosedAndTangent()
  • returns true if the contour of index IC is closed an tangent.
    param IC

    type IC

    int

    rtype

    bool

Compute()
  • general calculation of geometry on all edges, topologic reconstruction.
    rtype

    None

ComputedSurface()
  • Returns the IS’th surface calculated on the contour IC.
    param IC

    type IC

    int

    param IS

    type IS

    int

    rtype

    opencascade::handle<Geom_Surface>

Contains()
  • gives the number of the contour containing E or 0 if E does not belong to any contour.
    param E

    type E

    TopoDS_Edge

    rtype

    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

    param E

    type E

    TopoDS_Edge

    param IndexInSpine

    type IndexInSpine

    int

    rtype

    int

FaultyContour()
  • Returns the number of I’th contour on which the calculation has failed.
    param I

    type I

    int

    rtype

    int

FaultyVertex()
  • Returns the IV’th vertex on which the calculation has failed.
    param IV

    type IV

    int

    rtype

    TopoDS_Vertex

FirstVertex()
  • returns the First vertex V of the contour of index IC.
    param IC

    type IC

    int

    rtype

    TopoDS_Vertex

Generated()
  • Advanced function for the history
    param EouV

    type EouV

    TopoDS_Shape

    rtype

    TopTools_ListOfShape

HasResult()
  • returns True if a partial result has been calculated
    rtype

    bool

IsDone()
  • returns True if the computation is success
    rtype

    bool

LastVertex()
  • returns the Last vertex V of the contour of index IC.
    param IC

    type IC

    int

    rtype

    TopoDS_Vertex

Length()
  • returns the length of the contour of index IC.
    param IC

    type IC

    int

    rtype

    float

NbComputedSurfaces()
  • Returns the number of surfaces calculated on the contour IC.
    param IC

    type IC

    int

    rtype

    int

NbElements()
  • gives the number of disjoint contours on which the fillets are calculated
    rtype

    int

NbFaultyContours()
  • Returns the number of contours on which the calculation has failed.
    rtype

    int

NbFaultyVertices()
  • Returns the number of vertices on which the calculation has failed.
    rtype

    int

PerformTwoCornerbyInter()
Parameters

Index

type Index

int

rtype

bool

RelativeAbscissa()
  • returns the relative abscissa([0.,1.]) of the vertex V on the contour of index IC.
    param IC

    type IC

    int

    param V

    type V

    TopoDS_Vertex

    rtype

    float

Remove()
  • extracts from the list the contour containing edge E.
    param E

    type E

    TopoDS_Edge

    rtype

    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.
    rtype

    None

SetContinuity()
Parameters

InternalContinuity

type InternalContinuity

GeomAbs_Shape

param AngularTolerance

type AngularTolerance

float

rtype

None

SetParams()
Parameters

Tang

type Tang

float

param Tesp

type Tesp

float

param T2d

type T2d

float

param TApp3d

type TApp3d

float

param TolApp2d

type TolApp2d

float

param Fleche

type Fleche

float

rtype

None

Shape()
  • if (Isdone()) makes the result. if (!Isdone())
    rtype

    TopoDS_Shape

SplitKPart()
  • Method, implemented in the inheritants, calculates the elements of construction of the surface (fillet or chamfer).
    param Data

    type Data

    ChFiDS_SurfData

    param SetData

    type SetData

    ChFiDS_SequenceOfSurfData

    param Spine

    type Spine

    ChFiDS_Spine

    param Iedge

    type Iedge

    int

    param S1

    type S1

    Adaptor3d_HSurface

    param I1

    type I1

    Adaptor3d_TopolTool

    param S2

    type S2

    Adaptor3d_HSurface

    param I2

    type I2

    Adaptor3d_TopolTool

    param Intf

    type Intf

    bool

    param Intl

    type Intl

    bool

    rtype

    bool

StripeStatus()
  • for the stripe IC ,indication on the cause of failure WalkingFailure,TwistedSurface,Error, Ok
    param IC

    type IC

    int

    rtype

    ChFiDS_ErrorStatus

Value()
  • gives the n’th set of edges (contour) if I >NbElements()
    param I

    type I

    int

    rtype

    opencascade::handle<ChFiDS_Spine>

property thisown

The membership flag

class ChFi3d_ChBuilder(*args)

Bases: OCC.Core.ChFi3d.ChFi3d_Builder

  • initializes the Builder with the Shape <S> for the computation of chamfers
    param S

    type S

    TopoDS_Shape

    param Ta

    default value is 1.0e-2

    type Ta

    float

    rtype

    None

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
    param E

    type E

    TopoDS_Edge

    rtype

    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

    param Dis

    type Dis

    float

    param E

    type E

    TopoDS_Edge

    rtype

    None* 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

    param Dis1

    type Dis1

    float

    param Dis2

    type Dis2

    float

    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    rtype

    None

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
    param Dis

    type Dis

    float

    param Angle

    type Angle

    float

    param E

    type E

    TopoDS_Edge

    param F

    type F

    TopoDS_Face

    rtype

    None

Dists()
  • gives the distances <Dis1> and <Dis2> of the fillet contour of index <IC> in the DS
    param IC

    type IC

    int

    param Dis1

    type Dis1

    float

    param Dis2

    type Dis2

    float

    rtype

    None

GetDist()
  • gives the distances <Dis> of the fillet contour of index <IC> in the DS
    param IC

    type IC

    int

    param Dis

    type Dis

    float

    rtype

    None

GetDistAngle()
  • gives the distances <Dis> and <Angle> of the fillet contour of index <IC> in the DS
    param IC

    type IC

    int

    param Dis

    type Dis

    float

    param Angle

    type Angle

    float

    rtype

    None

IsChamfer()
  • renvoi la methode des chanfreins utilisee
    param IC

    type IC

    int

    rtype

    ChFiDS_ChamfMethod

Mode()
  • returns the mode of chamfer used
    rtype

    ChFiDS_ChamfMode

NbSurf()
Parameters

IC

type IC

int

rtype

int

PerformSurf()
  • Methode, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer).
    param Data

    type Data

    ChFiDS_SequenceOfSurfData

    param Guide

    type Guide

    ChFiDS_HElSpine

    param Spine

    type Spine

    ChFiDS_Spine

    param Choix

    type Choix

    int

    param S1

    type S1

    BRepAdaptor_HSurface

    param I1

    type I1

    Adaptor3d_TopolTool

    param S2

    type S2

    BRepAdaptor_HSurface

    param I2

    type I2

    Adaptor3d_TopolTool

    param MaxStep

    type MaxStep

    float

    param Fleche

    type Fleche

    float

    param TolGuide

    type TolGuide

    float

    param First

    type First

    float

    param Last

    type Last

    float

    param Inside

    type Inside

    bool

    param Appro

    type Appro

    bool

    param Forward

    type Forward

    bool

    param RecOnS1

    type RecOnS1

    bool

    param RecOnS2

    type RecOnS2

    bool

    param Soldep

    type Soldep

    math_Vector

    param Intf

    type Intf

    int

    param Intl

    type Intl

    int

    rtype

    bool* Method, implemented in the inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/face.

    param Data

    type Data

    ChFiDS_SequenceOfSurfData

    param Guide

    type Guide

    ChFiDS_HElSpine

    param Spine

    type Spine

    ChFiDS_Spine

    param Choix

    type Choix

    int

    param S1

    type S1

    BRepAdaptor_HSurface

    param I1

    type I1

    Adaptor3d_TopolTool

    param PC1

    type PC1

    BRepAdaptor_HCurve2d

    param Sref1

    type Sref1

    BRepAdaptor_HSurface

    param PCref1

    type PCref1

    BRepAdaptor_HCurve2d

    param Decroch1

    type Decroch1

    bool

    param S2

    type S2

    BRepAdaptor_HSurface

    param I2

    type I2

    Adaptor3d_TopolTool

    param Or2

    type Or2

    TopAbs_Orientation

    param MaxStep

    type MaxStep

    float

    param Fleche

    type Fleche

    float

    param TolGuide

    type TolGuide

    float

    param First

    type First

    float

    param Last

    type Last

    float

    param Inside

    type Inside

    bool

    param Appro

    type Appro

    bool

    param Forward

    type Forward

    bool

    param RecP

    type RecP

    bool

    param RecS

    type RecS

    bool

    param RecRst

    type RecRst

    bool

    param Soldep

    type Soldep

    math_Vector

    rtype

    void* Method, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/face.

    param Data

    type Data

    ChFiDS_SequenceOfSurfData

    param Guide

    type Guide

    ChFiDS_HElSpine

    param Spine

    type Spine

    ChFiDS_Spine

    param Choix

    type Choix

    int

    param S1

    type S1

    BRepAdaptor_HSurface

    param I1

    type I1

    Adaptor3d_TopolTool

    param Or1

    type Or1

    TopAbs_Orientation

    param S2

    type S2

    BRepAdaptor_HSurface

    param I2

    type I2

    Adaptor3d_TopolTool

    param PC2

    type PC2

    BRepAdaptor_HCurve2d

    param Sref2

    type Sref2

    BRepAdaptor_HSurface

    param PCref2

    type PCref2

    BRepAdaptor_HCurve2d

    param Decroch2

    type Decroch2

    bool

    param MaxStep

    type MaxStep

    float

    param Fleche

    type Fleche

    float

    param TolGuide

    type TolGuide

    float

    param First

    type First

    float

    param Last

    type Last

    float

    param Inside

    type Inside

    bool

    param Appro

    type Appro

    bool

    param Forward

    type Forward

    bool

    param RecP

    type RecP

    bool

    param RecS

    type RecS

    bool

    param RecRst

    type RecRst

    bool

    param Soldep

    type Soldep

    math_Vector

    rtype

    void* Method, implemented in inheritants, calculates the elements of construction of the surface (fillet or chamfer) contact edge/edge.

    param Data

    type Data

    ChFiDS_SequenceOfSurfData

    param Guide

    type Guide

    ChFiDS_HElSpine

    param Spine

    type Spine

    ChFiDS_Spine

    param Choix

    type Choix

    int

    param S1

    type S1

    BRepAdaptor_HSurface

    param I1

    type I1

    Adaptor3d_TopolTool

    param PC1

    type PC1

    BRepAdaptor_HCurve2d

    param Sref1

    type Sref1

    BRepAdaptor_HSurface

    param PCref1

    type PCref1

    BRepAdaptor_HCurve2d

    param Decroch1

    type Decroch1

    bool

    param Or1

    type Or1

    TopAbs_Orientation

    param S2

    type S2

    BRepAdaptor_HSurface

    param I2

    type I2

    Adaptor3d_TopolTool

    param PC2

    type PC2

    BRepAdaptor_HCurve2d

    param Sref2

    type Sref2

    BRepAdaptor_HSurface

    param PCref2

    type PCref2

    BRepAdaptor_HCurve2d

    param Decroch2

    type Decroch2

    bool

    param Or2

    type Or2

    TopAbs_Orientation

    param MaxStep

    type MaxStep

    float

    param Fleche

    type Fleche

    float

    param TolGuide

    type TolGuide

    float

    param First

    type First

    float

    param Last

    type Last

    float

    param Inside

    type Inside

    bool

    param Appro

    type Appro

    bool

    param Forward

    type Forward

    bool

    param RecP1

    type RecP1

    bool

    param RecRst1

    type RecRst1

    bool

    param RecP2

    type RecP2

    bool

    param RecRst2

    type RecRst2

    bool

    param Soldep

    type Soldep

    math_Vector

    rtype

    void

ResetContour()
  • Reset tous rayons du contour IC.
    param IC

    type IC

    int

    rtype

    None

Sect()
Parameters

IC

type IC

int

param IS

type IS

int

rtype

opencascade::handle<ChFiDS_SecHArray1>

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>
    param Dis

    type Dis

    float

    param IC

    type IC

    int

    param F

    type F

    TopoDS_Face

    rtype

    None

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>
    param Dis

    type Dis

    float

    param Angle

    type Angle

    float

    param IC

    type IC

    int

    param F

    type F

    TopoDS_Face

    rtype

    None

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>
    param Dis1

    type Dis1

    float

    param Dis2

    type Dis2

    float

    param IC

    type IC

    int

    param F

    type F

    TopoDS_Face

    rtype

    None

SetMode()
  • set the mode of shamfer
    param theMode

    type theMode

    ChFiDS_ChamfMode

    rtype

    None

SimulSurf()
Parameters

Data

type Data

ChFiDS_SurfData

param Guide

type Guide

ChFiDS_HElSpine

param Spine

type Spine

ChFiDS_Spine

param Choix

type Choix

int

param S1

type S1

BRepAdaptor_HSurface

param I1

type I1

Adaptor3d_TopolTool

param PC1

type PC1

BRepAdaptor_HCurve2d

param Sref1

type Sref1

BRepAdaptor_HSurface

param PCref1

type PCref1

BRepAdaptor_HCurve2d

param Decroch1

type Decroch1

bool

param S2

type S2

BRepAdaptor_HSurface

param I2

type I2

Adaptor3d_TopolTool

param Or2

type Or2

TopAbs_Orientation

param Fleche

type Fleche

float

param TolGuide

type TolGuide

float

param First

type First

float

param Last

type Last

float

param Inside

type Inside

bool

param Appro

type Appro

bool

param Forward

type Forward

bool

param RecP

type RecP

bool

param RecS

type RecS

bool

param RecRst

type RecRst

bool

param Soldep

type Soldep

math_Vector

rtype

void:param Data:

type Data

ChFiDS_SurfData

param Guide

type Guide

ChFiDS_HElSpine

param Spine

type Spine

ChFiDS_Spine

param Choix

type Choix

int

param S1

type S1

BRepAdaptor_HSurface

param I1

type I1

Adaptor3d_TopolTool

param Or1

type Or1

TopAbs_Orientation

param S2

type S2

BRepAdaptor_HSurface

param I2

type I2

Adaptor3d_TopolTool

param PC2

type PC2

BRepAdaptor_HCurve2d

param Sref2

type Sref2

BRepAdaptor_HSurface

param PCref2

type PCref2

BRepAdaptor_HCurve2d

param Decroch2

type Decroch2

bool

param Fleche

type Fleche

float

param TolGuide

type TolGuide

float

param First

type First

float

param Last

type Last

float

param Inside

type Inside

bool

param Appro

type Appro

bool

param Forward

type Forward

bool

param RecP

type RecP

bool

param RecS

type RecS

bool

param RecRst

type RecRst

bool

param Soldep

type Soldep

math_Vector

rtype

void:param Data:

type Data

ChFiDS_SurfData

param Guide

type Guide

ChFiDS_HElSpine

param Spine

type Spine

ChFiDS_Spine

param Choix

type Choix

int

param S1

type S1

BRepAdaptor_HSurface

param I1

type I1

Adaptor3d_TopolTool

param PC1

type PC1

BRepAdaptor_HCurve2d

param Sref1

type Sref1

BRepAdaptor_HSurface

param PCref1

type PCref1

BRepAdaptor_HCurve2d

param Decroch1

type Decroch1

bool

param Or1

type Or1

TopAbs_Orientation

param S2

type S2

BRepAdaptor_HSurface

param I2

type I2

Adaptor3d_TopolTool

param PC2

type PC2

BRepAdaptor_HCurve2d

param Sref2

type Sref2

BRepAdaptor_HSurface

param PCref2

type PCref2

BRepAdaptor_HCurve2d

param Decroch2

type Decroch2

bool

param Or2

type Or2

TopAbs_Orientation

param Fleche

type Fleche

float

param TolGuide

type TolGuide

float

param First

type First

float

param Last

type Last

float

param Inside

type Inside

bool

param Appro

type Appro

bool

param Forward

type Forward

bool

param RecP1

type RecP1

bool

param RecRst1

type RecRst1

bool

param RecP2

type RecP2

bool

param RecRst2

type RecRst2

bool

param Soldep

type Soldep

math_Vector

rtype

void

Simulate()
Parameters

IC

type IC

int

rtype

None

property thisown

The membership flag

class ChFi3d_FilBuilder(*args)

Bases: OCC.Core.ChFi3d.ChFi3d_Builder

Parameters

S

type S

TopoDS_Shape

param FShape

default value is ChFi3d_Rational

type FShape

ChFi3d_FilletShape

param Ta

default value is 1.0e-2

type Ta

float

rtype

None

Add()
  • initialisation of a contour with the first edge (the following are found by propagation). Attention, you need to start with SetRadius.
    param E

    type E

    TopoDS_Edge

    rtype

    None* initialisation of the constant vector the corresponding 1st edge.

    param Radius

    type Radius

    float

    param E

    type E

    TopoDS_Edge

    rtype

    None

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.
    param IC

    type IC

    int

    param E

    type E

    TopoDS_Edge

    param First

    type First

    float

    param Last

    type Last

    float

    rtype

    bool

GetFilletShape()
  • Returns the type of fillet surface.
    rtype

    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.
    param IC

    type IC

    int

    param E

    type E

    TopoDS_Edge

    rtype

    opencascade::handle<Law_Function>

IsConstant()
  • Returns true the contour is flaged as edge constant.
    param IC

    type IC

    int

    rtype

    bool* Returns true E is flagged as edge constant.

    param IC

    type IC

    int

    param E

    type E

    TopoDS_Edge

    rtype

    bool

NbSurf()
Parameters

IC

type IC

int

rtype

int

Radius()
  • Returns the vector if the contour is flagged as edge constant.
    param IC

    type IC

    int

    rtype

    float* Returns the vector if E is flagged as edge constant.

    param IC

    type IC

    int

    param E

    type E

    TopoDS_Edge

    rtype

    float

ResetContour()
  • Reset all vectors of contour IC.
    param IC

    type IC

    int

    rtype

    None

Sect()
Parameters

IC

type IC

int

param IS

type IS

int

rtype

opencascade::handle<ChFiDS_SecHArray1>

SetFilletShape()
  • Sets the type of fillet surface.
    param FShape

    type FShape

    ChFi3d_FilletShape

    rtype

    None

SetLaw()
  • Sets the rule of elementary evolution of the part to variable vector framing E.
    param IC

    type IC

    int

    param E

    type E

    TopoDS_Edge

    param L

    type L

    Law_Function

    rtype

    None

SetRadius()
  • Set the radius of the contour of index IC.
    param C

    type C

    Law_Function

    param IC

    type IC

    int

    param IinC

    type IinC

    int

    rtype

    None* Set a constant on edge E of the contour of index IC. Since then E is flagged as constant.

    param Radius

    type Radius

    float

    param IC

    type IC

    int

    param E

    type E

    TopoDS_Edge

    rtype

    None* Set a vector on vertex V of the contour of index IC.

    param Radius

    type Radius

    float

    param IC

    type IC

    int

    param V

    type V

    TopoDS_Vertex

    rtype

    None* Set a vertex on the point of parametre U in the edge IinC of the contour of index IC

    param UandR

    type UandR

    gp_XY

    param IC

    type IC

    int

    param IinC

    type IinC

    int

    rtype

    None

Simulate()
Parameters

IC

type IC

int

rtype

None

UnSet()
  • Extracts the flag constant and the vector of edge E.
    param IC

    type IC

    int

    param E

    type E

    TopoDS_Edge

    rtype

    None* Extracts the vector of the vertex V.

    param IC

    type IC

    int

    param V

    type V

    TopoDS_Vertex

    rtype

    None

property thisown

The membership flag

class ChFi3d_SearchSing(*args)

Bases: OCC.Core.math.math_FunctionWithDerivative

Parameters

C1

type C1

Geom_Curve

param C2

type C2

Geom_Curve

rtype

None

property thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
property 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.
    param S1

    type S1

    BRepAdaptor_Surface

    param S2

    type S2

    BRepAdaptor_Surface

    param E

    type E

    TopoDS_Edge

    param Or1

    type Or1

    TopAbs_Orientation

    param Or2

    type Or2

    TopAbs_Orientation

    rtype

    int

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.
    param Or1

    type Or1

    TopAbs_Orientation

    param Or2

    type Or2

    TopAbs_Orientation

    param OrSave1

    type OrSave1

    TopAbs_Orientation

    param OrSave2

    type OrSave2

    TopAbs_Orientation

    param ChoixSauv

    type ChoixSauv

    int

    rtype

    int* Same as the other NextSide, but the calculation is done on an edge only.

    param Or

    type Or

    TopAbs_Orientation

    param OrSave

    type OrSave

    TopAbs_Orientation

    param OrFace

    type OrFace

    TopAbs_Orientation

    rtype

    void

static SameSide()
  • Enables to determine while processing an angle, if two fillets or chamfers constituting a face have identic or opposed concave edges.
    param Or

    type Or

    TopAbs_Orientation

    param OrSave1

    type OrSave1

    TopAbs_Orientation

    param OrSave2

    type OrSave2

    TopAbs_Orientation

    param OrFace1

    type OrFace1

    TopAbs_Orientation

    param OrFace2

    type OrFace2

    TopAbs_Orientation

    rtype

    bool

property thisown

The membership flag