OpenCascade.js
API ReferenceModelingAlgorithmsTKFillet

FilletSurf

OCCT package FilletSurf: FilletSurf_Builder, FilletSurf_ErrorTypeStatus, FilletSurf_InternalBuilder, FilletSurf_StatusDone, and 1 more bound classes.

FilletSurf_Builder

API giving the following geometric information about fillets list of corresponding NUBS surfaces for each surface: the 2 support faces on each face: the 3d curve and the corresponding 2d curve the 2d curves on the fillet status of start and end section of the fillet first and last parameter on edge of the fillet.

Constructors(1)

  • constructor(S: TopoDS_Shape, E: NCollection_List_TopoDS_Shape, R: number, Ta?: number, Tapp3d?: number, Tapp2d?: number): FilletSurf_Builder

    initialize of the information 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 (6)
    • S
    • E
    • R
    • Ta
    • Tapp3d
    • Tapp2d

Instance methods(23)

  • Perform(): void

    --Purpose computation of the fillet (list of NUBS)

  • Simulate(): void
  • 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

  • gives information 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

  • NbSurface(): number

    gives the number of NUBS surfaces of the Fillet.

  • Section(IndexSurf: number, IndexSec: number): Geom_TrimmedCurve

    Returns the arc of the section of index IndexSec of surface of index IndexSurf. The basis curve of the trimmed curve is a Geom_Circle.

    Parameters (2)
    • IndexSurf
      1-based surface index
    • IndexSec
      1-based section index
    Returns

    the section as a trimmed circular arc

  • Section_1(IndexSurf: number, IndexSec: number): Geom_TrimmedCurve

    Returns the arc of the section of index IndexSec of surface of index IndexSurf. The basis curve of the trimmed curve is a Geom_Circle.

    Parameters (2)
    • IndexSurf
      1-based surface index
    • IndexSec
      1-based section index
    Returns

    the section as a trimmed circular arc

  • Section_2(IndexSurf: number, IndexSec: number): { Circ: Geom_TrimmedCurve; [Symbol.dispose](): void }
    Deprecated
    Parameters (2)
    • IndexSurf
    • IndexSec
    Returns

    A result object with fields:

    • Circ: owned by the returned envelope.
      Dispose the returned envelope to release owned Handle fields.
  • SurfaceFillet(Index: number): Geom_Surface

    gives the NUBS surface of index Index.

    Parameters (1)
    • Index
  • TolApp3d(Index: number): number

    gives the 3d tolerance reached during approximation of surface of index Index

    Parameters (1)
    • Index
  • SupportFace1(Index: number): TopoDS_Face

    gives the first support face relative to SurfaceFillet(Index);

    Parameters (1)
    • Index
  • SupportFace2(Index: number): TopoDS_Face

    gives the second support face relative to SurfaceFillet(Index);

    Parameters (1)
    • Index
  • CurveOnFace1(Index: number): Geom_Curve

    gives the 3d curve of SurfaceFillet(Index) on SupportFace1(Index)

    Parameters (1)
    • Index
  • CurveOnFace2(Index: number): Geom_Curve

    gives the 3d curve of SurfaceFillet(Index) on SupportFace2(Index)

    Parameters (1)
    • Index
  • PCurveOnFace1(Index: number): Geom2d_Curve

    gives the PCurve associated to CurvOnSup1(Index) on the support face

    Parameters (1)
    • Index
  • gives the PCurve associated to CurveOnFace1(Index) on the Fillet

    Parameters (1)
    • Index
  • PCurveOnFace2(Index: number): Geom2d_Curve

    gives the PCurve associated to CurveOnSup2(Index) on the support face

    Parameters (1)
    • Index
  • gives the PCurve associated to CurveOnSup2(Index) on the fillet

    Parameters (1)
    • Index
  • FirstParameter(): number

    gives the parameter of the fillet on the first edge.

  • LastParameter(): number

    gives the parameter of the fillet on the last edge

  • NbSection(IndexSurf: number): number
    Parameters (1)
    • IndexSurf

FilletSurf_InternalBuilder

This class is private. It is used by the class Builder from FilletSurf. It computes geometric information about fillets.

Constructors(1)

Instance methods(26)

  • Add(E: NCollection_List_TopoDS_Shape, R: number): number

    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 (2)
    • E
    • R
  • Add(E: TopoDS_Edge): void

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

    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 (2)
    • Radius
    • E
  • Perform(): void
  • Done(): boolean
  • NbSurface(): number

    gives the number of NUBS surfaces of the Fillet.

  • SurfaceFillet(Index: number): Geom_Surface

    gives the NUBS surface of index Index.

    Parameters (1)
    • Index
  • TolApp3d(Index: number): number

    gives the 3d tolerance reached during approximation of the surface of index Index

    Parameters (1)
    • Index
  • SupportFace1(Index: number): TopoDS_Face

    gives the first support face relative to SurfaceFillet(Index);

    Parameters (1)
    • Index
  • SupportFace2(Index: number): TopoDS_Face

    gives the second support face relative to SurfaceFillet(Index);

    Parameters (1)
    • Index
  • CurveOnFace1(Index: number): Geom_Curve

    gives the 3d curve of SurfaceFillet(Index) on SupportFace1(Index)

    Parameters (1)
    • Index
  • CurveOnFace2(Index: number): Geom_Curve

    gives the 3d curve of SurfaceFillet(Index) on SupportFace2(Index)

    Parameters (1)
    • Index
  • PCurveOnFace1(Index: number): Geom2d_Curve

    gives the PCurve associated to CurvOnSup1(Index) on the support face

    Parameters (1)
    • Index
  • gives the PCurve associated to CurveOnFace1(Index) on the Fillet

    Parameters (1)
    • Index
  • PCurveOnFace2(Index: number): Geom2d_Curve

    gives the PCurve associated to CurveOnSup2(Index) on the support face

    Parameters (1)
    • Index
  • gives the PCurve associated to CurveOnSup2(Index) on the fillet

    Parameters (1)
    • Index
  • FirstParameter(): number

    gives the parameter of the fillet on the first edge.

  • LastParameter(): number

    gives the parameter of the fillet on the last edge

  • Simulate(): void
  • Simulate(IC: number): void
    Parameters (1)
    • IC
  • NbSection(IndexSurf: number): number
    Parameters (1)
    • IndexSurf
  • Section(IndexSurf: number, IndexSec: number): Geom_TrimmedCurve

    Returns the arc of the section of index IndexSec of surface of index IndexSurf. The basis curve of the trimmed curve is a Geom_Circle.

    Parameters (2)
    • IndexSurf
      1-based surface index
    • IndexSec
      1-based section index
    Returns

    the section as a trimmed circular arc

  • Section_1(IndexSurf: number, IndexSec: number): Geom_TrimmedCurve

    Returns the arc of the section of index IndexSec of surface of index IndexSurf. The basis curve of the trimmed curve is a Geom_Circle.

    Parameters (2)
    • IndexSurf
      1-based surface index
    • IndexSec
      1-based section index
    Returns

    the section as a trimmed circular arc

  • Section_2(IndexSurf: number, IndexSec: number): { Circ: Geom_TrimmedCurve; [Symbol.dispose](): void }
    Deprecated
    Parameters (2)
    • IndexSurf
    • IndexSec
    Returns

    A result object with fields:

    • Circ: owned by the returned envelope.
      Dispose the returned envelope to release owned Handle fields.