OpenCascade.js
API ReferenceModelingAlgorithmsTKFillet

ChFi3d

OCCT package ChFi3d: ChFi3d, ChFi3d_Builder, ChFi3d_ChBuilder, ChFi3d_FilBuilder, and 2 more bound classes.

ChFi3d

creation of spatial fillets on a solid.

Constructors(1)

Static methods(2)

ChFi3d_Builder

Root class for calculation of surfaces (fillets, chamfers) destined to smooth edges of a gap on a Shape and the reconstruction of the Shape.

Instance methods(31)

  • SetParams(Tang: number, Tesp: number, T2d: number, TApp3d: number, TolApp2d: number, Fleche: number): void
    Parameters (6)
    • Tang
    • Tesp
    • T2d
    • TApp3d
    • TolApp2d
    • Fleche
  • SetContinuity(InternalContinuity: GeomAbs_Shape, AngularTolerance: number): void
    Parameters (2)
    • InternalContinuity
    • AngularTolerance
  • extracts from the list the contour containing edge E.

    Parameters (1)
    • E
  • Contains(E: TopoDS_Edge): number

    gives the number of the contour containing E or 0 if E does not belong to any contour.

    Parameters (1)
    • E
  • Contains(E: TopoDS_Edge, IndexInSpine: number): { returnValue: number; IndexInSpine: number }

    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 (2)
    • E
    • IndexInSpine
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • IndexInSpine: updated value from the call.
  • NbElements(): number

    gives the number of disjoint contours on which the fillets are calculated

  • Value(I: number): ChFiDS_Spine

    gives the n'th set of edges (contour) if I >NbElements()

    Parameters (1)
    • I
  • Length(IC: number): number

    returns the length of the contour of index IC.

    Parameters (1)
    • IC
  • returns the First vertex V of the contour of index IC.

    Parameters (1)
    • IC
  • returns the Last vertex V of the contour of index IC.

    Parameters (1)
    • IC
  • Abscissa(IC: number, V: TopoDS_Vertex): number

    returns the abscissa of the vertex V on the contour of index IC.

    Parameters (2)
    • IC
    • V
  • RelativeAbscissa(IC: number, V: TopoDS_Vertex): number

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

    Parameters (2)
    • IC
    • V
  • ClosedAndTangent(IC: number): boolean

    returns true if the contour of index IC is closed an tangent.

    Parameters (1)
    • IC
  • Closed(IC: number): boolean

    returns true if the contour of index IC is closed

    Parameters (1)
    • IC
  • Compute(): void

    general calculation of geometry on all edges, topologic reconstruction.

  • IsDone(): boolean

    returns True if the computation is success

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

  • Advanced function for the history.

    Parameters (1)
    • EouV
  • Returns the number of contours on which the calculation has failed.

  • FaultyContour(I: number): number

    Returns the number of I'th contour on which the calculation has failed.

    Parameters (1)
    • I
  • NbComputedSurfaces(IC: number): number

    Returns the number of surfaces calculated on the contour IC.

    Parameters (1)
    • IC
  • ComputedSurface(IC: number, IS: number): Geom_Surface

    Returns the IS'th surface calculated on the contour IC.

    Parameters (2)
    • IC
    • IS
  • Returns the number of vertices on which the calculation has failed.

  • Returns the IV'th vertex on which the calculation has failed.

    Parameters (1)
    • IV
  • HasResult(): boolean

    returns True if a partial result has been calculated

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

  • for the stripe IC ,indication on the cause of failure WalkingFailure,TwistedSurface,Error, Ok

    Parameters (1)
    • IC
  • Reset(): void

    Reset all results of compute and returns the algorithm in the state of the last acquisition to enable modification of contours or areas.

  • Builder(): unknown

    Returns the Builder of topologic operations.

  • SplitKPart(Data: ChFiDS_SurfData, SetData: NCollection_Sequence_handle_ChFiDS_SurfData, Spine: ChFiDS_Spine, Iedge: number, S1: Adaptor3d_Surface, I1: Adaptor3d_TopolTool, S2: Adaptor3d_Surface, I2: Adaptor3d_TopolTool, Intf: boolean, Intl: boolean): { returnValue: boolean; Intf: boolean; Intl: boolean }

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

    Parameters (10)
    • Data
    • SetData
      Mutated in place; read the updated value from this argument after the call.
    • Spine
    • Iedge
    • S1
    • I1
    • S2
    • I2
    • Intf
    • Intl
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • Intf: updated value from the call.
    • Intl: updated value from the call.
  • PerformTwoCornerbyInter(Index: number): boolean
    Parameters (1)
    • Index

ChFi3d_ChBuilder

construction tool for 3D chamfers on edges (on a solid).

Constructors(1)

Instance methods(24)

  • Add(E: TopoDS_Edge): void

    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 (1)
    • E
  • Add(Dis: number, E: TopoDS_Edge): void

    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 (2)
    • Dis
    • E
  • Add(Dis1: number, Dis2: number, E: TopoDS_Edge, F: TopoDS_Face): void

    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 (4)
    • Dis1
    • Dis2
    • E
    • F
  • SetDist(Dis: number, IC: number, F: TopoDS_Face): void

    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 (3)
    • Dis
    • IC
    • F
  • GetDist(IC: number, Dis: number): { Dis: number }

    gives the distances <Dis> of the fillet contour of index <IC> in the DS

    Parameters (2)
    • IC
    • Dis
    Returns

    A result object with fields:

    • Dis: updated value from the call.
  • SetDists(Dis1: number, Dis2: number, IC: number, F: TopoDS_Face): void

    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 (4)
    • Dis1
    • Dis2
    • IC
    • F
  • Dists(IC: number, Dis1: number, Dis2: number): { Dis1: number; Dis2: number }

    gives the distances <Dis1> and <Dis2> of the fillet contour of index <IC> in the DS

    Parameters (3)
    • IC
    • Dis1
    • Dis2
    Returns

    A result object with fields:

    • Dis1: updated value from the call.
    • Dis2: updated value from the call.
  • AddDA(Dis: number, Angle: number, E: TopoDS_Edge, F: TopoDS_Face): void

    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 (4)
    • Dis
    • Angle
    • E
    • F
  • SetDistAngle(Dis: number, Angle: number, IC: number, F: TopoDS_Face): void

    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 (4)
    • Dis
    • Angle
    • IC
    • F
  • GetDistAngle(IC: number, Dis: number, Angle: number): { Dis: number; Angle: number }

    gives the distances <Dis> and <Angle> of the fillet contour of index <IC> in the DS

    Parameters (3)
    • IC
    • Dis
    • Angle
    Returns

    A result object with fields:

    • Dis: updated value from the call.
    • Angle: updated value from the call.
  • SetMode(theMode: ChFiDS_ChamfMode): void

    set the mode of shamfer

    Parameters (1)
    • theMode
  • renvoi la methode des chanfreins utilisee

    Parameters (1)
    • IC
  • returns the mode of chamfer used

  • ResetContour(IC: number): void

    Reset tous rayons du contour IC.

    Parameters (1)
    • IC
  • Simulate(IC: number): void
    Parameters (1)
    • IC
  • NbSurf(IC: number): number
    Parameters (1)
    • IC
  • Parameters (2)
    • IC
    • IS
  • SimulSurf(Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, Decroch1: boolean, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, Or2: TopAbs_Orientation, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP: boolean, RecS: boolean, RecRst: boolean, Soldep: math_Vector): { Data: ChFiDS_SurfData; Decroch1: boolean; First: number; Last: number; [Symbol.dispose](): void }
    Parameters (23)
    • Guide
    • Spine
    • Choix
    • S1
    • I1
    • PC1
    • Sref1
    • PCref1
    • Decroch1
    • S2
    • I2
    • Or2
    • Fleche
    • TolGuide
    • First
    • Last
    • Inside
    • Appro
    • Forward
    • RecP
    • RecS
    • RecRst
    • Soldep
  • SimulSurf(Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Decroch2: boolean, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP: boolean, RecS: boolean, RecRst: boolean, Soldep: math_Vector): { Data: ChFiDS_SurfData; Decroch2: boolean; First: number; Last: number; [Symbol.dispose](): void }
    Parameters (23)
    • Guide
    • Spine
    • Choix
    • S1
    • I1
    • Or1
    • S2
    • I2
    • PC2
    • Sref2
    • PCref2
    • Decroch2
    • Fleche
    • TolGuide
    • First
    • Last
    • Inside
    • Appro
    • Forward
    • RecP
    • RecS
    • RecRst
    • Soldep
  • SimulSurf(Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, Decroch1: boolean, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Decroch2: boolean, Or2: TopAbs_Orientation, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP1: boolean, RecRst1: boolean, RecP2: boolean, RecRst2: boolean, Soldep: math_Vector): { Data: ChFiDS_SurfData; Decroch1: boolean; Decroch2: boolean; First: number; Last: number; [Symbol.dispose](): void }
    Parameters (29)
    • 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
    • RecRst1
    • RecP2
    • RecRst2
    • Soldep
  • PerformSurf(Data: NCollection_Sequence_handle_ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, MaxStep: number, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecOnS1: boolean, RecOnS2: boolean, Soldep: math_Vector, Intf: number, Intl: number): { returnValue: boolean; First: number; Last: number; Intf: number; Intl: number }

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

    Parameters (21)
    • Data
      Mutated in place; read the updated value from this argument after the call.
    • Guide
    • Spine
    • Choix
    • S1
    • I1
    • S2
    • I2
    • MaxStep
    • Fleche
    • TolGuide
    • First
    • Last
    • Inside
    • Appro
    • Forward
    • RecOnS1
    • RecOnS2
    • Soldep
    • Intf
    • Intl
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • First: updated value from the call.
    • Last: updated value from the call.
    • Intf: updated value from the call.
    • Intl: updated value from the call.
  • PerformSurf(Data: NCollection_Sequence_handle_ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, Decroch1: boolean, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, Or2: TopAbs_Orientation, MaxStep: number, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP: boolean, RecS: boolean, RecRst: boolean, Soldep: math_Vector): { Decroch1: boolean; First: number; Last: number }

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

    Parameters (25)
    • Data
      Mutated in place; read the updated value from this argument after the call.
    • Guide
    • Spine
    • Choix
    • S1
    • I1
    • PC1
    • Sref1
    • PCref1
    • Decroch1
    • S2
    • I2
    • Or2
    • MaxStep
    • Fleche
    • TolGuide
    • First
    • Last
    • Inside
    • Appro
    • Forward
    • RecP
    • RecS
    • RecRst
    • Soldep
    Returns

    A result object with fields:

    • Decroch1: updated value from the call.
    • First: updated value from the call.
    • Last: updated value from the call.
  • PerformSurf(Data: NCollection_Sequence_handle_ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Decroch2: boolean, MaxStep: number, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP: boolean, RecS: boolean, RecRst: boolean, Soldep: math_Vector): { Decroch2: boolean; First: number; Last: number }

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

    Parameters (25)
    • Data
      Mutated in place; read the updated value from this argument after the call.
    • Guide
    • Spine
    • Choix
    • S1
    • I1
    • Or1
    • S2
    • I2
    • PC2
    • Sref2
    • PCref2
    • Decroch2
    • MaxStep
    • Fleche
    • TolGuide
    • First
    • Last
    • Inside
    • Appro
    • Forward
    • RecP
    • RecS
    • RecRst
    • Soldep
    Returns

    A result object with fields:

    • Decroch2: updated value from the call.
    • First: updated value from the call.
    • Last: updated value from the call.
  • PerformSurf(Data: NCollection_Sequence_handle_ChFiDS_SurfData, Guide: ChFiDS_ElSpine, Spine: ChFiDS_Spine, Choix: number, S1: BRepAdaptor_Surface, I1: Adaptor3d_TopolTool, PC1: BRepAdaptor_Curve2d, Sref1: BRepAdaptor_Surface, PCref1: BRepAdaptor_Curve2d, Decroch1: boolean, Or1: TopAbs_Orientation, S2: BRepAdaptor_Surface, I2: Adaptor3d_TopolTool, PC2: BRepAdaptor_Curve2d, Sref2: BRepAdaptor_Surface, PCref2: BRepAdaptor_Curve2d, Decroch2: boolean, Or2: TopAbs_Orientation, MaxStep: number, Fleche: number, TolGuide: number, First: number, Last: number, Inside: boolean, Appro: boolean, Forward: boolean, RecP1: boolean, RecRst1: boolean, RecP2: boolean, RecRst2: boolean, Soldep: math_Vector): { Decroch1: boolean; Decroch2: boolean; First: number; Last: number }

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

    Parameters (31)
    • Data
      Mutated in place; read the updated value from this argument after the call.
    • Guide
    • Spine
    • Choix
    • S1
    • I1
    • PC1
    • Sref1
    • PCref1
    • Decroch1
    • Or1
    • S2
    • I2
    • PC2
    • Sref2
    • PCref2
    • Decroch2
    • Or2
    • MaxStep
    • Fleche
    • TolGuide
    • First
    • Last
    • Inside
    • Appro
    • Forward
    • RecP1
    • RecRst1
    • RecP2
    • RecRst2
    • Soldep
    Returns

    A result object with fields:

    • Decroch1: updated value from the call.
    • Decroch2: updated value from the call.
    • First: updated value from the call.
    • Last: updated value from the call.

ChFi3d_FilBuilder

Tool of construction of fillets 3d on edges (on a solid).

Constructors(1)

Instance methods(21)

  • Sets the type of fillet surface.

    Parameters (1)
    • FShape
  • Returns the type of fillet surface.

  • Add(E: TopoDS_Edge): void

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

    Parameters (1)
    • E
  • Add(Radius: number, E: TopoDS_Edge): void

    initialisation of the constant vector the corresponding 1st edge.

    Parameters (2)
    • Radius
    • E
  • SetRadius(C: Law_Function, IC: number, IinC: number): void

    Set the radius of the contour of index IC.

    Parameters (3)
    • C
    • IC
    • IinC
  • SetRadius(Radius: number, IC: number, E: TopoDS_Edge): void

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

    Parameters (3)
    • Radius
    • IC
    • E
  • SetRadius(Radius: number, IC: number, V: TopoDS_Vertex): void

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

    Parameters (3)
    • Radius
    • IC
    • V
  • SetRadius(UandR: gp_XY, IC: number, IinC: number): void

    Set a vertex on the point of parameter U in the edge IinC of the contour of index IC.

    Parameters (3)
    • UandR
    • IC
    • IinC
  • IsConstant(IC: number): boolean

    Returns true the contour is flagged as edge constant.

    Parameters (1)
    • IC
  • IsConstant(IC: number, E: TopoDS_Edge): boolean

    Returns true E is flagged as edge constant.

    Parameters (2)
    • IC
    • E
  • Radius(IC: number): number

    Returns the vector if the contour is flagged as edge constant.

    Parameters (1)
    • IC
  • Radius(IC: number, E: TopoDS_Edge): number

    Returns the vector if E is flagged as edge constant.

    Parameters (2)
    • IC
    • E
  • ResetContour(IC: number): void

    Reset all vectors of contour IC.

    Parameters (1)
    • IC
  • UnSet(IC: number, E: TopoDS_Edge): void

    Extracts the flag constant and the vector of edge E.

    Parameters (2)
    • IC
    • E
  • UnSet(IC: number, V: TopoDS_Vertex): void

    Extracts the vector of the vertex V.

    Parameters (2)
    • IC
    • V
  • GetBounds(IC: number, E: TopoDS_Edge, First: number, Last: number): { returnValue: boolean; First: number; Last: number }

    Returns in First and Last extremities of the part of variable vector framing E, returns False if E is flagged as edge constant.

    Parameters (4)
    • IC
    • E
    • First
    • Last
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • First: updated value from the call.
    • Last: updated value from the call.
  • 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 (2)
    • IC
    • E
  • SetLaw(IC: number, E: TopoDS_Edge, L: Law_Function): void

    Sets the rule of elementary evolution of the part to variable vector framing E.

    Parameters (3)
    • IC
    • E
    • L
  • Simulate(IC: number): void
    Parameters (1)
    • IC
  • NbSurf(IC: number): number
    Parameters (1)
    • IC
  • Parameters (2)
    • IC
    • IS

ChFi3d_SearchSing

Searches singularities on fillet. F(t) = (C1(t) - C2(t)).(C1'(t) - C2'(t));.

Constructors(1)

Instance methods(3)

  • Value(X: number, F: number): { returnValue: boolean; F: number }

    computes the value of the function <F> for the variable <X>. returns True if the computation was done successfully, False otherwise.

    Parameters (2)
    • X
    • F
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
  • Derivative(X: number, D: number): { returnValue: boolean; D: number }

    computes the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.

    Parameters (2)
    • X
    • D
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • D: updated value from the call.
  • Values(X: number, F: number, D: number): { returnValue: boolean; F: number; D: number }

    computes the value <F> and the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.

    Parameters (3)
    • X
    • F
    • D
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • F: updated value from the call.
    • D: updated value from the call.