0024750: Replace instantiations of TCollection generic classes by NCollection templat...
[occt.git] / src / Intf / Intf.cdl
CommitLineData
b311480e 1-- Created on: 1991-05-23
2-- Created by: Didier PIFFAULT
3-- Copyright (c) 1991-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 8-- This library is free software; you can redistribute it and/or modify it under
9-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17package Intf
18
19 ---Purpose: Interference computation between polygons, lines and
20 -- polyhedra with only triangular facets. These objects
21 -- are polygonal representations of complex curves and
22 -- triangulated representations of complex surfaces.
23
24
25uses Standard, TCollection, TColStd, gp, Bnd, IntAna2d
26
27
28is
29
30-- Enumeration :
31
32 enumeration PIType is EXTERNAL, FACE, EDGE, VERTEX;
33 ---Purpose: Describes the different intersection point types for this
34 -- application.
35
36
37-- Classes input data :
38
9530af27 39 deferred class Polygon2d;
7fd59977 40
df8d3970 41 imported Array1OfLin;
7fd59977 42 ---Purpose: Describes a set of Straight Lines to intersect with the
43 -- Polyhedron.
44
45
46
47-- Classes output data :
48
49 class SectionPoint;
7fd59977 50
df8d3970 51 imported SeqOfSectionPoint;
7fd59977 52
53
54 class SectionLine;
7fd59977 55
df8d3970 56 imported SeqOfSectionLine;
7fd59977 57
58
59 class TangentZone;
7fd59977 60
df8d3970 61 imported SeqOfTangentZone;
7fd59977 62
63
64 deferred class Interference;
7fd59977 65
66-- Algorithms :
67
68 class Tool;
7fd59977 69
70
9530af27 71 class InterferencePolygon2d;
7fd59977 72 ---Purpose: Computes the interference between two polygons in 2d.
73 -- Result : points of intersections and zones of tangence.
74
7fd59977 75 generic class InterferencePolygonPolyhedron;
76 ---Purpose: Computes the interference between a polygon or a straight
77 -- line and a polyhedron. Points of intersection and zones
78 -- of tangence.
79
7fd59977 80
81 --- Package Methods :
82 --
83
84 PlaneEquation (P1 : in Pnt from gp;
85 P2 : in Pnt from gp;
86 P3 : in Pnt from gp;
87 NormalVector : out XYZ from gp;
88 PolarDistance : out Real from Standard);
89 ---Purpose: Give the plane equation of the triangle <P1> <P2> <P3>.
90
91
92 Contain (P1 : in Pnt from gp;
93 P2 : in Pnt from gp;
94 P3 : in Pnt from gp;
95 ThePnt : in Pnt from gp)
96 returns Boolean;
97 ---Purpose: Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.
98
99
100end Intf;