mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-28 13:58:22 +08:00
d5f74e42d6
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
211 lines
7.1 KiB
Plaintext
211 lines
7.1 KiB
Plaintext
-- Created on: 1996-06-11
|
|
-- Created by: Jacques GOUSSARD
|
|
-- Copyright (c) 1996-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
class CSIntersector from LocOpe
|
|
|
|
---Purpose: This class provides the intersection between a set
|
|
-- of axis or a circle and the faces of a shape. The
|
|
-- intersection points are sorted in increasing
|
|
-- parameter along each axis or circle.
|
|
|
|
|
|
uses Shape from TopoDS,
|
|
PntFace from LocOpe,
|
|
Orientation from TopAbs,
|
|
SequenceOfLin from LocOpe,
|
|
SequenceOfCirc from LocOpe,
|
|
SequenceOfCurve from TColGeom
|
|
|
|
|
|
raises NotDone from StdFail,
|
|
OutOfRange from Standard
|
|
|
|
is
|
|
|
|
Create
|
|
---Purpose: Empty constructor.
|
|
returns CSIntersector from LocOpe;
|
|
---C++: inline
|
|
|
|
|
|
Create(S:Shape from TopoDS)
|
|
---Purpose: Creates and performs the intersection betwwen
|
|
-- <Ax1> and <S>.
|
|
---C++: inline
|
|
returns CSIntersector from LocOpe;
|
|
|
|
|
|
Init(me: in out; S:Shape from TopoDS)
|
|
---Purpose: Performs the intersection between <Ax1 and <S>.
|
|
is static;
|
|
|
|
|
|
Perform(me: in out; Slin: SequenceOfLin from LocOpe)
|
|
|
|
is static;
|
|
|
|
|
|
Perform(me: in out; Scir: SequenceOfCirc from LocOpe)
|
|
|
|
is static;
|
|
|
|
|
|
Perform(me: in out; Scur: SequenceOfCurve from TColGeom)
|
|
|
|
is static;
|
|
|
|
|
|
IsDone(me)
|
|
---Purpose: Returns <Standard_True> if the intersection has
|
|
-- been done.
|
|
returns Boolean from Standard
|
|
---C++: inline
|
|
is static;
|
|
|
|
|
|
NbPoints(me; I: Integer from Standard)
|
|
---Purpose: Returns the number of intersection point on the
|
|
-- element of range <I>.
|
|
returns Integer from Standard
|
|
raises NotDone from StdFail
|
|
-- The exception is raised when IsDone returns <Standard_False>.
|
|
is static;
|
|
|
|
|
|
Point(me; I: Integer from Standard; Index: Integer from Standard)
|
|
|
|
---Purpose: Returns the intersection point of range <Index> on
|
|
-- element of range <I>. The points are sorted in
|
|
-- increasing order of parameter along the axis.
|
|
|
|
returns PntFace from LocOpe
|
|
---C++: return const&
|
|
raises NotDone from StdFail,
|
|
OutOfRange from Standard
|
|
is static;
|
|
|
|
|
|
LocalizeAfter(me; I : Integer from Standard;
|
|
From : Real from Standard;
|
|
Tol : Real from Standard;
|
|
Or : out Orientation from TopAbs;
|
|
IndFrom : out Integer from Standard;
|
|
IndTo : out Integer from Standard)
|
|
|
|
---Purpose: On the element of range <I>, searches the first
|
|
-- intersection point located after the parameter
|
|
-- <From>, wich orientation is not TopAbs_EXTERNAL.
|
|
-- If found, returns <Standard_True>. <Or> contains
|
|
-- the orientation of the point, <IndFrom> and
|
|
-- <IndTo> represents the interval of index in the
|
|
-- sequence of intersection point corresponding to
|
|
-- the point. (IndFrom <= IndTo). <Tol> is used to
|
|
-- determine if 2 parameters are equal.
|
|
--
|
|
-- Otherwise, returns <Standard_False>.
|
|
|
|
returns Boolean from Standard
|
|
raises NotDone from StdFail
|
|
is static;
|
|
|
|
|
|
LocalizeBefore(me; I : Integer from Standard;
|
|
From : Real from Standard;
|
|
Tol : Real from Standard;
|
|
Or : out Orientation from TopAbs;
|
|
IndFrom : out Integer from Standard;
|
|
IndTo : out Integer from Standard)
|
|
|
|
---Purpose: On the element of range <I>, searches the first
|
|
-- intersection point located before the parameter
|
|
-- <From>, wich orientation is not TopAbs_EXTERNAL.
|
|
-- If found, returns <Standard_True>. <Or> contains
|
|
-- the orientation of the point, <IndFrom> and
|
|
-- <IndTo> represents the interval of index in the
|
|
-- sequence of intersection point corresponding to
|
|
-- the point (IndFrom <= IndTo). <Tol> is used to
|
|
-- determine if 2 parameters are equal.
|
|
--
|
|
-- Otherwise, returns <Standard_False>.
|
|
|
|
returns Boolean from Standard
|
|
raises NotDone from StdFail
|
|
is static;
|
|
|
|
|
|
LocalizeAfter(me; I : Integer from Standard;
|
|
FromInd : Integer from Standard;
|
|
Tol : Real from Standard;
|
|
Or : out Orientation from TopAbs;
|
|
IndFrom : out Integer from Standard;
|
|
IndTo : out Integer from Standard)
|
|
|
|
---Purpose: On the element of range <I>, searches the first
|
|
-- intersection point located after the index
|
|
-- <FromInd> ( >= FromInd + 1), wich orientation is
|
|
-- not TopAbs_EXTERNAL. If found, returns
|
|
-- <Standard_True>. <Or> contains the orientation of
|
|
-- the point, <IndFrom> and <IndTo> represents the
|
|
-- interval of index in the sequence of intersection
|
|
-- point corresponding to the point. (IndFrom <=
|
|
-- IndTo). <Tol> is used to determine if 2 parameters
|
|
-- are equal.
|
|
--
|
|
-- Otherwise, returns <Standard_False>.
|
|
|
|
returns Boolean from Standard
|
|
raises NotDone from StdFail
|
|
is static;
|
|
|
|
|
|
LocalizeBefore(me; I : Integer from Standard;
|
|
FromInd : Integer from Standard;
|
|
Tol : Real from Standard;
|
|
Or : out Orientation from TopAbs;
|
|
IndFrom : out Integer from Standard;
|
|
IndTo : out Integer from Standard)
|
|
|
|
---Purpose: On the element of range <I>, searches the first
|
|
-- intersection point located before the index
|
|
-- <FromInd> ( <= FromInd -1), wich orientation is
|
|
-- not TopAbs_EXTERNAL. If found, returns
|
|
-- <Standard_True>. <Or> contains the orientation of
|
|
-- the point, <IndFrom> and <IndTo> represents the
|
|
-- interval of index in the sequence of intersection
|
|
-- point corresponding to the point (IndFrom <=
|
|
-- IndTo). <Tol> is used to determine if 2 parameters
|
|
-- are equal.
|
|
--
|
|
-- Otherwise, returns <Standard_False>.
|
|
|
|
returns Boolean from Standard
|
|
raises NotDone from StdFail
|
|
is static;
|
|
|
|
|
|
Destroy(me: in out);
|
|
---C++: alias ~
|
|
|
|
|
|
fields
|
|
|
|
myDone : Boolean from Standard;
|
|
myShape : Shape from TopoDS;
|
|
myPoints : Address from Standard;
|
|
myNbelem : Integer from Standard;
|
|
|
|
end CSIntersector;
|