2 -- Created: Thu May 23 11:21:00 1991
3 -- Author: Didier PIFFAULT
5 ---Copyright: Matra Datavision 1991, 1992
10 ---Purpose: Interference computation between polygons, lines and
11 -- polyhedra with only triangular facets. These objects
12 -- are polygonal representations of complex curves and
13 -- triangulated representations of complex surfaces.
16 uses Standard, TCollection, TColStd, gp, Bnd, IntAna2d
23 enumeration PIType is EXTERNAL, FACE, EDGE, VERTEX;
24 ---Purpose: Describes the different intersection point types for this
28 -- Classes input data :
30 generic class ToolPolygon; -- Signature
31 ---Purpose: Describes the necessary polygon information to compute the
34 generic class ToolPolyhedron; -- Signature
35 ---Purpose: Describes the necessary polyhedron information to compute
39 class Array1OfLin instantiates Array1 from TCollection
41 ---Purpose: Describes a set of Straight Lines to intersect with the
46 -- Classes output data :
49 ---Purpose: Describes a common point between two polygons or between a
50 -- polygon and a polyhedron.
52 class SeqOfSectionPoint instantiates Sequence from TCollection
57 ---Purpose: Describes a common line between two polyhedrons.
59 class SeqOfSectionLine instantiates Sequence from TCollection
64 ---Purpose: Describes a zone of tangence between two polygons or two
67 class SeqOfTangentZone instantiates Sequence from TCollection
71 deferred class Interference;
72 ---Purpose: Describes the Interference computation result as three
73 -- sequences of points of intersection , polylines of
74 -- intersection and zones de tangence.
80 ---Purpose: The class tool provide methods to create Box or
81 -- Box2d in particular contex.
86 generic class InterferencePolygon2d;
87 ---Purpose: Computes the interference between two polygons in 2d.
88 -- Result : points of intersections and zones of tangence.
90 generic class InterferencePolygon3d;
91 ---Purpose: Computes the interference between two polygon in 3d.
92 -- Section points, common perpendicular and projections.
94 generic class InterferencePolygonPolyhedron;
95 ---Purpose: Computes the interference between a polygon or a straight
96 -- line and a polyhedron. Points of intersection and zones
99 generic class InterferencePolyhedron;
100 ---Purpose: Compute the interference between two polyhedron. Points
101 -- of intersection , polylines of intersection and zones of
105 --- Package Methods :
108 PlaneEquation (P1 : in Pnt from gp;
111 NormalVector : out XYZ from gp;
112 PolarDistance : out Real from Standard);
113 ---Purpose: Give the plane equation of the triangle <P1> <P2> <P3>.
116 Contain (P1 : in Pnt from gp;
119 ThePnt : in Pnt from gp)
121 ---Purpose: Compute if the triangle <P1> <P2> <P3> contain <ThePnt>.