mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-18 16:18:37 +08:00
172 lines
4.6 KiB
Plaintext
Executable File
172 lines
4.6 KiB
Plaintext
Executable File
-- Created on: 1992-05-07
|
|
-- Created by: Jacques GOUSSARD
|
|
-- Copyright (c) 1992-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
--
|
|
-- The content of this file is subject to the Open CASCADE Technology Public
|
|
-- License Version 6.5 (the "License"). You may not use the content of this file
|
|
-- except in compliance with the License. Please obtain a copy of the License
|
|
-- at http://www.opencascade.org and read it completely before using this file.
|
|
--
|
|
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
--
|
|
-- The Original Code and all software distributed under the License is
|
|
-- distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
-- Initial Developer hereby disclaims all such warranties, including without
|
|
-- limitation, any warranties of merchantability, fitness for a particular
|
|
-- purpose or non-infringement. Please see the License for the specific terms
|
|
-- and conditions governing the rights and limitations under the License.
|
|
|
|
|
|
|
|
class ImpPrmIntersection from IntPatch
|
|
|
|
---Purpose: Implementation of the intersection between a natural
|
|
-- quadric patch : Plane, Cone, Cylinder or Sphere and
|
|
-- a bi-parametrised surface.
|
|
|
|
uses
|
|
TheSearchInside from IntPatch,
|
|
HSurface from Adaptor3d,
|
|
TopolTool from Adaptor3d,
|
|
Point from IntPatch,
|
|
SequenceOfPoint from IntPatch,
|
|
TheSOnBounds from IntPatch,
|
|
SequenceOfLine from IntPatch,
|
|
Line from IntPatch,
|
|
PathPointTool from IntSurf,
|
|
SequenceOfPathPoint from IntSurf,
|
|
Quadric from IntSurf,
|
|
QuadricTool from IntSurf,
|
|
InteriorPoint from IntSurf,
|
|
InteriorPointTool from IntSurf
|
|
|
|
|
|
raises NotDone from StdFail,
|
|
OutOfRange from Standard,
|
|
DomainError from Standard,
|
|
ConstructionError from Standard
|
|
|
|
is
|
|
|
|
|
|
Create
|
|
|
|
returns ImpPrmIntersection from IntPatch;
|
|
|
|
|
|
Create(Surf1: HSurface from Adaptor3d; D1: TopolTool from Adaptor3d;
|
|
Surf2: HSurface from Adaptor3d; D2: TopolTool from Adaptor3d;
|
|
TolArc,TolTang,Fleche,Pas: Real from Standard)
|
|
|
|
returns ImpPrmIntersection from IntPatch
|
|
raises ConstructionError from Standard;
|
|
|
|
|
|
SetStartPoint(me: in out; U,V: Real from Standard)
|
|
---Purpose: to search for solution from the given point
|
|
is static;
|
|
|
|
|
|
Perform(me: in out;
|
|
Surf1: HSurface from Adaptor3d; D1: TopolTool from Adaptor3d;
|
|
Surf2: HSurface from Adaptor3d; D2: TopolTool from Adaptor3d;
|
|
TolArc,TolTang,Fleche,Pas: Real from Standard)
|
|
|
|
raises ConstructionError from Standard
|
|
is static;
|
|
|
|
|
|
|
|
IsDone(me)
|
|
|
|
---Purpose: Returns true if the calculus was succesfull.
|
|
|
|
returns Boolean from Standard
|
|
---C++: inline
|
|
|
|
is static;
|
|
|
|
|
|
IsEmpty(me)
|
|
|
|
---Purpose: Returns true if the is no intersection.
|
|
|
|
returns Boolean from Standard
|
|
---C++: inline
|
|
|
|
raises NotDone from StdFail
|
|
|
|
is static;
|
|
|
|
|
|
NbPnts(me)
|
|
|
|
---Purpose: Returns the number of "single" points.
|
|
|
|
returns Integer from Standard
|
|
---C++: inline
|
|
|
|
raises NotDone from StdFail
|
|
|
|
is static;
|
|
|
|
|
|
Point(me; Index: Integer from Standard)
|
|
|
|
---Purpose: Returns the point of range Index.
|
|
-- An exception is raised if Index<=0 or Index>NbPnt.
|
|
|
|
returns Point from IntPatch
|
|
---C++: return const&
|
|
---C++: inline
|
|
|
|
raises NotDone from StdFail,
|
|
OutOfRange from Standard
|
|
|
|
is static;
|
|
|
|
|
|
NbLines(me)
|
|
|
|
---Purpose: Returns the number of intersection lines.
|
|
|
|
returns Integer from Standard
|
|
---C++: inline
|
|
|
|
raises NotDone from StdFail
|
|
|
|
is static;
|
|
|
|
|
|
Line(me; Index: Integer from Standard)
|
|
|
|
---Purpose: Returns the line of range Index.
|
|
-- An exception is raised if Index<=0 or Index>NbLine.
|
|
|
|
returns Line from IntPatch
|
|
---C++: return const&
|
|
---C++: inline
|
|
|
|
raises NotDone from StdFail,
|
|
OutOfRange from Standard
|
|
|
|
is static;
|
|
|
|
|
|
fields
|
|
|
|
done : Boolean from Standard;
|
|
empt : Boolean from Standard;
|
|
spnt : SequenceOfPoint from IntPatch;
|
|
slin : SequenceOfLine from IntPatch;
|
|
solrst : TheSOnBounds from IntPatch;
|
|
solins : TheSearchInside from IntPatch;
|
|
-- iwalk : TheIWalking from IntPatch;
|
|
myIsStartPnt: Boolean from Standard;
|
|
myUStart : Real from Standard;
|
|
myVStart : Real from Standard;
|
|
|
|
end ImpPrmIntersection;
|