OpenCascade.js
API ReferenceModelingAlgorithmsTKTopAlgo

BRepClass

OCCT package BRepClass: BRepClass_Edge, BRepClass_FaceClassifier, BRepClass_FacePassiveClassifier, BRepClass_FClass2dOfFClassifier, and 2 more bound classes.

BRepClass_Edge

This class is used to send the description of an Edge to the classifier. It contains an Edge and a Face. So the PCurve of the Edge can be found.

Constructors(2)

Instance methods(8)

BRepClass_FaceClassifier

Provides Constructors with a Face.

Constructors(3)

  • Empty constructor, undefined algorithm.

  • constructor(theF: TopoDS_Face, theP: gp_Pnt2d, theTol: number, theUseBndBox?: boolean, theGapCheckTol?: number): BRepClass_FaceClassifier

    Creates an algorithm to classify the Point P with Tolerance <T> on the face <F>. Recommended to use Bnd_Box if the number of edges > 10 and the geometry is mostly spline.

    Parameters (5)
    • theF
    • theP
    • theTol
    • theUseBndBox
    • theGapCheckTol
  • constructor(theF: TopoDS_Face, theP: gp_Pnt, theTol: number, theUseBndBox?: boolean, theGapCheckTol?: number): BRepClass_FaceClassifier

    Creates an algorithm to classify the Point P with Tolerance <T> on the face <F>. Recommended to use Bnd_Box if the number of edges > 10 and the geometry is mostly spline.

    Parameters (5)
    • theF
    • theP
    • theTol
    • theUseBndBox
    • theGapCheckTol

Instance methods(2)

  • Perform(theF: TopoDS_Face, theP: gp_Pnt, theTol: number, theUseBndBox: boolean, theGapCheckTol: number): void

    Classify the Point P with Tolerance <T> on the face described by <F>. Recommended to use Bnd_Box if the number of edges > 10 and the geometry is mostly spline.

    Parameters (5)
    • theF
    • theP
    • theTol
    • theUseBndBox
    • theGapCheckTol
  • Perform(F: unknown, P: gp_Pnt2d, Tol: number): void

    Classify the Point P with Tolerance <T> on the face described by <F>. Recommended to use Bnd_Box if the number of edges > 10 and the geometry is mostly spline.

    Parameters (3)
    • F
    • P
    • Tol

BRepClass_FacePassiveClassifier

Constructors(1)

Instance methods(7)

  • Reset(L: gp_Lin2d, P: number, Tol: number): void

    Starts a classification process. The point to classify is the origin of the line <L>.
    is the original length of the segment on <L> used to compute intersections. <Tol> is the tolerance attached to the line segment in intersections.

    Parameters (3)
    • L
    • P
    • Tol
  • Updates the classification process with the edge <E> from the boundary.

    Parameters (2)
    • E
    • Or
  • Parameter(): number

    Returns the current value of the parameter.

  • Returns the intersecting algorithm.

  • Returns 0 if the last compared edge had no relevant intersection. Else returns the index of this intersection in the last intersection algorithm.

  • Returns the current state of the point.

  • IsHeadOrEnd(): boolean

    Returns the true if the closest intersection point represents head or end of the edge. Returns false otherwise.

BRepClass_FClass2dOfFClassifier

Constructors(1)

Instance methods(7)

  • Reset(L: gp_Lin2d, P: number, Tol: number): void

    Starts a classification process. The point to classify is the origin of the line <L>.
    is the original length of the segment on <L> used to compute intersections. <Tol> is the tolerance attached to the line segment in intersections.

    Parameters (3)
    • L
    • P
    • Tol
  • Updates the classification process with the edge <E> from the boundary.

    Parameters (2)
    • E
    • Or
  • Parameter(): number

    Returns the current value of the parameter.

  • Returns the intersecting algorithm.

  • Returns 0 if the last compared edge had no relevant intersection. Else returns the index of this intersection in the last intersection algorithm.

  • Returns the current state of the point.

  • IsHeadOrEnd(): boolean

    Returns the true if the closest intersection point represents head or end of the edge. Returns false otherwise.

BRepClass_FClassifier

Constructors(1)

Instance methods(5)

  • Rejected(): boolean

    Returns True when the state was computed by a rejection. The state is OUT.

  • NoWires(): boolean

    Returns True if the face contains no wire. The state is IN.

  • Returns the Edge used to determine the classification. When the State is ON this is the Edge containing the point.

  • EdgeParameter(): number

    Returns the parameter on Edge() used to determine the classification.

  • Returns the position of the point on the edge returned by Edge.

BRepClass_Intersector

Intersect an Edge with a segment. Implement the Intersector2d required by the classifier.

Constructors(1)

Instance methods(7)