mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-11 00:37:04 +08:00
Mostly duplicated comments were removed and missing ones were moved into dedicated class CDL files. Some more duplicated comments were removed from CDL files. Correction of merge
115 lines
3.6 KiB
Plaintext
115 lines
3.6 KiB
Plaintext
-- Created on: 1994-03-10
|
|
-- Created by: Laurent BUCHARD
|
|
-- Copyright (c) 1994-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.
|
|
|
|
deferred class SolidExplorer from TopClass
|
|
|
|
---Purpose: Provide an exploration of a BRep Shape for the
|
|
-- classification. Defines the description of a solid for the
|
|
-- SolidClassifier.
|
|
|
|
uses
|
|
Pnt from gp,
|
|
Lin from gp,
|
|
Face from TopoDS,
|
|
Shape from TopoDS
|
|
|
|
is
|
|
|
|
Reject(me; P : Pnt from gp) returns Boolean
|
|
---Purpose: Should return True if the point is outside a
|
|
-- bounding volume of the shape.
|
|
is deferred;
|
|
|
|
Segment(me: in out; P : Pnt from gp;
|
|
L : out Lin from gp; Par : out Real)
|
|
---Purpose: Returns in <L>, <Par> a segment having at least
|
|
-- one intersection with the shape boundary to
|
|
-- compute intersections.
|
|
--
|
|
is deferred;
|
|
|
|
OtherSegment(me: in out; P : Pnt from gp;
|
|
L : out Lin from gp; Par : out Real)
|
|
---Purpose: Returns in <L>, <Par> a segment having at least
|
|
-- one intersection with the shape boundary to
|
|
-- compute intersections.
|
|
--
|
|
-- The First Call to this method returns a line which
|
|
-- point to a point of the first face of the shape.
|
|
-- The Second Call provide a line to the second face
|
|
-- and so on.
|
|
--
|
|
-- if the method is called N times on a shape with F
|
|
-- faces (N>F) the line point to other points on the
|
|
-- face 1,2,3 ... N
|
|
is deferred;
|
|
|
|
InitShell(me : in out)
|
|
---Purpose: Starts an exploration of the shells.
|
|
is deferred;
|
|
|
|
MoreShells(me) returns Boolean
|
|
---Purpose: Returns True if there is a current shell.
|
|
is deferred;
|
|
|
|
NextShell(me : in out)
|
|
---Purpose: Sets the explorer to the next shell and returns
|
|
-- False if there are no more wires.
|
|
is deferred;
|
|
|
|
RejectShell(me; L : Lin from gp; Par : Real) returns Boolean
|
|
---Purpose: Returns True if the shell bounding volume does not
|
|
-- intersect the segment.
|
|
is deferred;
|
|
|
|
|
|
|
|
InitFace(me : in out)
|
|
---Purpose: Starts an exploration of the faces.
|
|
is deferred;
|
|
|
|
MoreFaces(me) returns Boolean
|
|
---Purpose: Returns True if there is a current face.
|
|
is deferred;
|
|
|
|
NextFace(me : in out)
|
|
---Purpose: Sets the explorer to the next face and returns
|
|
-- False if there are no more wires.
|
|
is deferred;
|
|
|
|
CurrentFace(me) returns Face from TopoDS
|
|
---Purpose: Returns the current face.
|
|
is deferred;
|
|
|
|
RejectFace(me; L : Lin from gp; Par : Real) returns Boolean
|
|
---Purpose: Returns True if the face bounding volume does not
|
|
-- intersect the segment.
|
|
is deferred;
|
|
|
|
|
|
--------------------------------------------------------------------
|
|
|
|
|
|
end SolidExplorer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|