libcascade
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)

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.