OpenCascade.js
API ReferenceModelingAlgorithmsTKGeomAlgo

Intf

OCCT package Intf: Intf, Intf_Interference, Intf_InterferencePolygon2d, Intf_PIType, and 4 more bound classes.

Intf

Interference computation between polygons, lines and polyhedra with only triangular facets. These objects are polygonal representations of complex curves and triangulated representations of complex surfaces.

Constructors(1)

Static methods(2)

  • PlaneEquation(P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, NormalVector: gp_XYZ, PolarDistance: number): { PolarDistance: number }

    Computes the interference between two polygons in 2d. Result : points of intersections and zones of tangence. Computes the interference between a polygon or a straight line and a polyhedron. Points of intersection and zones of tangence. Give the plane equation of the triangle <P1> <P2> <P3>.

    Parameters (5)
    • P1
    • P2
    • P3
    • NormalVector
      Mutated in place; read the updated value from this argument after the call.
    • PolarDistance
    Returns

    A result object with fields:

    • PolarDistance: updated value from the call.
  • Contain(P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, ThePnt: gp_Pnt): boolean

    Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.

    Parameters (4)
    • P1
    • P2
    • P3
    • ThePnt

Intf_Interference

Describes the Interference computation result between polygon2d or polygon3d or polyhedron (as three sequences of points of intersection, polylines of intersection and zones de tangence).

Instance methods(7)

  • NbSectionLines(): number

    Gives the number of polylines of intersection in the interference.

  • LineValue(Index: number): Intf_SectionLine

    Gives the polyline of intersection at address <Index> in the interference.

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

    Gives the number of zones of tangence in the interference.

  • ZoneValue(Index: number): Intf_TangentZone

    Gives the zone of tangence at address Index in the interference.

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

    Gives the tolerance used for the calculation.

  • Insert(TheZone: Intf_TangentZone): boolean

    Inserts a new zone of tangence in the current list of tangent zones of the interference and returns True when done.

    Parameters (1)
    • TheZone
  • Dump(): void

Intf_InterferencePolygon2d

Computes the interference between two polygons or the self intersection of a polygon in two dimensions.

Constructors(3)

Instance methods(3)

  • Perform(Obje1: Intf_Polygon2d, Obje2: Intf_Polygon2d): void

    Computes an interference between two Polygons.

    Parameters (2)
    • Obje1
    • Obje2
  • Perform(Obje: Intf_Polygon2d): void

    Computes the self interference of a Polygon.

    Parameters (1)
    • Obje
  • Pnt2dValue(Index: number): gp_Pnt2d

    Gives the geometrical 2d point of the intersection point at address <Index> in the interference.

    Parameters (1)
    • Index

Intf_Polygon2d

Describes the necessary polygon information to compute the interferences.

Instance methods(5)

  • Returns the bounding box of the polygon.

  • Closed(): boolean

    Returns True if the polyline is closed.

  • Returns the tolerance of the polygon.

  • NbSegments(): number

    Returns the number of Segments in the polyline.

  • Segment(theIndex: number, theBegin: gp_Pnt2d, theEnd: gp_Pnt2d): void

    Returns the points of the segment <Index> in the Polygon.

    Parameters (3)
    • theIndex
    • theBegin
      Mutated in place; read the updated value from this argument after the call.
    • theEnd
      Mutated in place; read the updated value from this argument after the call.

Intf_SectionLine

Describe a polyline of intersection between two polyhedra as a sequence of points of intersection.

Constructors(2)

Instance methods(7)

  • IsClosed(): boolean

    Returns True if the SectionLine is closed.

  • IsEqual(Other: Intf_SectionLine): boolean

    Compares two SectionLines.

    Parameters (1)
    • Other
  • Adds a point at the end of the SectionLine.

    Parameters (1)
    • LS
      Mutated in place; read the updated value from this argument after the call.
  • Adds a point to the beginning of the SectionLine <me>.

    Parameters (1)
    • LS
      Mutated in place; read the updated value from this argument after the call.
  • Reverse(): void

    Reverses the order of the elements of the SectionLine.

  • Close(): void

    Closes the SectionLine.

  • Dump(Indent: number): void
    Parameters (1)
    • Indent

Intf_TangentZone

Describes a zone of tangence between polygons or polyhedra as a sequence of points of intersection.

Constructors(1)

Instance methods(8)

  • IsEqual(Other: Intf_TangentZone): boolean

    Compares two TangentZones.

    Parameters (1)
    • Other
  • ParamOnFirst(paraMin: number, paraMax: number): { paraMin: number; paraMax: number }

    Gives the parameter range of the TangentZone on the first argument of the Interference. (Usable only for polygon).

    Parameters (2)
    • paraMin
    • paraMax
    Returns

    A result object with fields:

    • paraMin: updated value from the call.
    • paraMax: updated value from the call.
  • ParamOnSecond(paraMin: number, paraMax: number): { paraMin: number; paraMax: number }

    Gives the parameter range of the TangentZone on the second argument of the Interference. (Usable only for polygon).

    Parameters (2)
    • paraMin
    • paraMax
    Returns

    A result object with fields:

    • paraMin: updated value from the call.
    • paraMax: updated value from the call.
  • InfoFirst(segMin: number, paraMin: number, segMax: number, paraMax: number): { segMin: number; paraMin: number; segMax: number; paraMax: number }

    Gives information about the first argument of the Interference. (Usable only for polygon).

    Parameters (4)
    • segMin
    • paraMin
    • segMax
    • paraMax
    Returns

    A result object with fields:

    • segMin: updated value from the call.
    • paraMin: updated value from the call.
    • segMax: updated value from the call.
    • paraMax: updated value from the call.
  • InfoSecond(segMin: number, paraMin: number, segMax: number, paraMax: number): { segMin: number; paraMin: number; segMax: number; paraMax: number }

    Gives information about the second argument of the Interference. (Usable only for polygon).

    Parameters (4)
    • segMin
    • paraMin
    • segMax
    • paraMax
    Returns

    A result object with fields:

    • segMin: updated value from the call.
    • paraMin: updated value from the call.
    • segMax: updated value from the call.
    • paraMax: updated value from the call.
  • Returns True if the TangentZone <Other> has a common part with <me>.

    Parameters (1)
    • Other
  • Adds a SectionPoint to the TangentZone.

    Parameters (1)
    • Tzi
  • Dump(Indent: number): void
    Parameters (1)
    • Indent

Intf_Tool

Provides services to create box for infinites lines in a given contexte.

Constructors(1)

Instance methods(9)