OCC.FilletSurf module

This package contains the API givingonly geometric informations about filletsfor Toyota Project UV4.

class FilletSurf_Builder(*args)

Bases: object

  • initialize of the informations necessary for the computation of the fillet on the Shape S from a list of edges E and a radius R. //! Ta is the angular tolerance Tapp3d is the 3d approximation tolerance Tapp2d is the 2d approximation tolerance
Parameters:
  • S (TopoDS_Shape &) –
  • E (TopTools_ListOfShape &) –
  • R (float) –
  • Ta (float) – default value is 1.0e-2
  • Tapp3d (float) – default value is 1.0e-4
  • Tapp2d (float) – default value is 1.0e-5
Return type:

None

CurveOnFace1()
  • gives the 3d curve of SurfaceFillet(Index) on SupportFace1(Index)
Parameters:Index (int) –
Return type:Handle_Geom_Curve
CurveOnFace2()
  • gives the 3d curve of SurfaceFillet(Index) on SupportFace2(Index)
Parameters:Index (int) –
Return type:Handle_Geom_Curve
EndSectionStatus()
Return type:FilletSurf_StatusType
FirstParameter()
  • gives the parameter of the fillet on the first edge.
Return type:float
IsDone()
  • gives the status about the computation of the fillet returns: IsOK :no problem during the computation IsNotOk: no result is produced IsPartial: the result is partial
Return type:FilletSurf_StatusDone
LastParameter()
  • gives the parameter of the fillet on the last edge
Return type:float
NbSection()
Parameters:IndexSurf (int) –
Return type:int
NbSurface()
  • gives the number of NUBS surfaces of the Fillet.
Return type:int
PCurve1OnFillet()
  • gives the PCurve associated to CurveOnFace1(Index) on the Fillet
Parameters:Index (int) –
Return type:Handle_Geom2d_Curve
PCurve2OnFillet()
  • gives the PCurve associated to CurveOnSup2(Index) on the fillet
Parameters:Index (int) –
Return type:Handle_Geom2d_Curve
PCurveOnFace1()
  • gives the PCurve associated to CurvOnSup1(Index) on the support face
Parameters:Index (int) –
Return type:Handle_Geom2d_Curve
PCurveOnFace2()
  • gives the PCurve associated to CurveOnSup2(Index) on the support face
Parameters:Index (int) –
Return type:Handle_Geom2d_Curve
Perform()
  • —Purpose computation of the fillet (list of NUBS)
Return type:None
Section()
Parameters:
  • IndexSurf (int) –
  • IndexSec (int) –
  • Circ (Handle_Geom_TrimmedCurve &) –
Return type:

None

Simulate()
Return type:None
StartSectionStatus()
Return type:FilletSurf_StatusType
StatusError()
  • gives informations about error status if IsDone=IsNotOk returns EdgeNotG1: the edges are not G1 FacesNotG1 : two connected faces on a same support are not G1 EdgeNotOnShape: the edge is not on shape NotSharpEdge: the edge is not sharp PbFilletCompute: problem during the computation of the fillet
Return type:FilletSurf_ErrorTypeStatus
SupportFace1()
  • gives the first support face relative to SurfaceFillet(Index);
Parameters:Index (int) –
Return type:TopoDS_Face
SupportFace2()
  • gives the second support face relative to SurfaceFillet(Index);
Parameters:Index (int) –
Return type:TopoDS_Face
SurfaceFillet()
  • gives the NUBS surface of index Index.
Parameters:Index (int) –
Return type:Handle_Geom_Surface
TolApp3d()
  • gives the 3d tolerance reached during approximation of surface of index Index
Parameters:Index (int) –
Return type:float
thisown

The membership flag

class FilletSurf_InternalBuilder(*args)

Bases: OCC.ChFi3d.ChFi3d_FilBuilder

Parameters:
  • S (TopoDS_Shape &) –
  • FShape (ChFi3d_FilletShape) – default value is ChFi3d_Polynomial
  • Ta (float) – default value is 1.0e-2
  • Tapp3d (float) – default value is 1.0e-4
  • Tapp2d (float) – default value is 1.0e-5
Return type:

None

Add()
  • Initializes the contour with a list of Edges 0 : no problem 1 : empty list 2 : the edges are not G1 3 : two connected faces on a same support are not G1 4 : the edge is not on shape 5 : NotSharpEdge: the edge is not sharp
Parameters:
  • E (TopTools_ListOfShape &) –
  • R (float) –
Return type:

int

CurveOnFace1()
  • gives the 3d curve of SurfaceFillet(Index) on SupportFace1(Index)
Parameters:Index (int) –
Return type:Handle_Geom_Curve
CurveOnFace2()
  • gives the 3d curve of SurfaceFillet(Index) on SupportFace2(Index)
Parameters:Index (int) –
Return type:Handle_Geom_Curve
Done()
Return type:bool
EndSectionStatus()
Return type:FilletSurf_StatusType
FirstParameter()
  • gives the parameter of the fillet on the first edge.
Return type:float
LastParameter()
  • gives the parameter of the fillet on the last edge
Return type:float
NbSection()
Parameters:IndexSurf (int) –
Return type:int
NbSurface()
  • gives the number of NUBS surfaces of the Fillet.
Return type:int
PCurve1OnFillet()
  • gives the PCurve associated to CurveOnFace1(Index) on the Fillet
Parameters:Index (int) –
Return type:Handle_Geom2d_Curve
PCurve2OnFillet()
  • gives the PCurve associated to CurveOnSup2(Index) on the fillet
Parameters:Index (int) –
Return type:Handle_Geom2d_Curve
PCurveOnFace1()
  • gives the PCurve associated to CurvOnSup1(Index) on the support face
Parameters:Index (int) –
Return type:Handle_Geom2d_Curve
PCurveOnFace2()
  • gives the PCurve associated to CurveOnSup2(Index) on the support face
Parameters:Index (int) –
Return type:Handle_Geom2d_Curve
Perform()
Return type:None
Section()
Parameters:
  • IndexSurf (int) –
  • IndexSec (int) –
  • Circ (Handle_Geom_TrimmedCurve &) –
Return type:

None

Simulate()
Return type:None
StartSectionStatus()
Return type:FilletSurf_StatusType
SupportFace1()
  • gives the first support face relative to SurfaceFillet(Index);
Parameters:Index (int) –
Return type:TopoDS_Face
SupportFace2()
  • gives the second support face relative to SurfaceFillet(Index);
Parameters:Index (int) –
Return type:TopoDS_Face
SurfaceFillet()
  • gives the NUBS surface of index Index.
Parameters:Index (int) –
Return type:Handle_Geom_Surface
TolApp3d()
  • gives the 3d tolerance reached during approximation of the surface of index Index
Parameters:Index (int) –
Return type:float
thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases