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)
- constructor(): Intf
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)P1P2P3NormalVector—Mutated in place; read the updated value from this argument after the call.PolarDistance
ReturnsA result object with fields:
PolarDistance: updated value from the call.
Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.
Parameters (4)P1P2P3ThePnt
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)
Constructs an empty interference of Polygon.
Constructs and computes the auto interference of a Polygon.
Parameters (1)Obje
- constructor(Obje1: Intf_Polygon2d, Obje2: Intf_Polygon2d): Intf_InterferencePolygon2d
Constructs and computes an interference between two Polygons.
Parameters (2)Obje1Obje2
Instance methods(3)
- Perform(Obje1: Intf_Polygon2d, Obje2: Intf_Polygon2d): void
Computes an interference between two Polygons.
Parameters (2)Obje1Obje2
- 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_PIType
Properties(4)
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.
- DeflectionOverEstimation(): number
Returns the tolerance of the polygon.
- NbSegments(): number
Returns the number of Segments in the polyline.
Returns the points of the segment <Index> in the Polygon.
Parameters (3)theIndextheBegin—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)
Constructs an empty SectionLine.
- constructor(Other: Intf_SectionLine): Intf_SectionLine
Copies a SectionLine.
Parameters (1)Other
Instance methods(7)
- IsClosed(): boolean
Returns True if the SectionLine is closed.
- IsEqual(Other: Intf_SectionLine): boolean
Compares two SectionLines.
Parameters (1)Other
- Append(LS: Intf_SectionLine): void
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.
- Prepend(LS: Intf_SectionLine): void
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): voidParameters (1)
Indent
Intf_TangentZone
Describes a zone of tangence between polygons or polyhedra as a sequence of points of intersection.
Constructors(1)
Builds an empty tangent zone.
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)paraMinparaMax
ReturnsA 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)paraMinparaMax
ReturnsA 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)segMinparaMinsegMaxparaMax
ReturnsA 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)segMinparaMinsegMaxparaMax
ReturnsA 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.
- HasCommonRange(Other: Intf_TangentZone): boolean
Returns True if the TangentZone <Other> has a common part with <me>.
Parameters (1)Other
- Append(Tzi: Intf_TangentZone): void
Adds a SectionPoint to the TangentZone.
Parameters (1)Tzi
- Dump(Indent: number): voidParameters (1)
Indent
Intf_Tool
Provides services to create box for infinites lines in a given contexte.
Constructors(1)
Instance methods(9)
- Parameters (3)
theLin2dboundingboxLin
- Parameters (3)
theHypr2dboundingboxHypr
- Parab2dBox(theParab2d: gp_Parab2d, bounding: Bnd_Box2d, boxHypr: Bnd_Box2d): voidParameters (3)
theParab2dboundingboxHypr
- Parameters (3)
theLinboundingboxLin
- Parameters (3)
theHyprboundingboxHypr
- Parameters (3)
theParabboundingboxHypr
- NbSegments(): number
- BeginParam(SegmentNum: number): numberParameters (1)
SegmentNum
- EndParam(SegmentNum: number): numberParameters (1)
SegmentNum