mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-16 10:54:53 +03:00
119 lines
3.6 KiB
Plaintext
Executable File
119 lines
3.6 KiB
Plaintext
Executable File
-- Created on: 1993-07-21
|
|
-- Created by: Remi LEQUETTE
|
|
-- Copyright (c) 1993-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.
|
|
|
|
|
|
|
|
deferred class MakeShape from BRepLib inherits Command from BRepLib
|
|
|
|
---Purpose: This is the root class for all shape
|
|
-- constructions. It stores the result.
|
|
--
|
|
-- It provides deferred methods to trace the history
|
|
-- of sub-shapes.
|
|
|
|
uses
|
|
Shape from TopoDS,
|
|
Face from TopoDS,
|
|
Edge from TopoDS,
|
|
ShapeModification from BRepLib,
|
|
ListOfShape from TopTools
|
|
|
|
|
|
raises
|
|
NotDone from StdFail
|
|
|
|
is
|
|
Initialize;
|
|
|
|
Build(me : in out);
|
|
---Purpose: This is called by Shape(). It does nothing but
|
|
-- may be redefined.
|
|
---Level: Public
|
|
|
|
Shape(me) returns Shape from TopoDS
|
|
---C++: return const &
|
|
---C++: alias "Standard_EXPORT operator TopoDS_Shape() const;"
|
|
---Level: Public
|
|
raises
|
|
NotDone from StdFail
|
|
is static;
|
|
|
|
|
|
-----------------------------------------------------------
|
|
--- the following methods do nothing and must be redefined
|
|
--- for faces creations.
|
|
|
|
FaceStatus(me; F: Face from TopoDS)
|
|
---Purpose: returns the status of the Face after
|
|
-- the shape creation.
|
|
---Level: Public
|
|
returns ShapeModification from BRepLib
|
|
is virtual;
|
|
|
|
|
|
HasDescendants(me; F: Face from TopoDS)
|
|
---Purpose: Returns True if the Face generates new topology.
|
|
---Level: Public
|
|
returns Boolean from Standard
|
|
is virtual;
|
|
|
|
|
|
DescendantFaces(me: in out; F: Face from TopoDS)
|
|
---Purpose: returns the list of generated Faces.
|
|
---C++: return const &
|
|
---Level: Public
|
|
returns ListOfShape from TopTools
|
|
is virtual;
|
|
|
|
|
|
NbSurfaces(me)
|
|
---Purpose: returns the number of surfaces
|
|
-- after the shape creation.
|
|
---Level: Public
|
|
returns Integer from Standard
|
|
is virtual;
|
|
|
|
|
|
NewFaces(me: in out; I: Integer from Standard)
|
|
---Purpose: Return the faces created for surface I.
|
|
---C++: return const &
|
|
---Level: Public
|
|
returns ListOfShape from TopTools
|
|
is virtual;
|
|
|
|
|
|
FacesFromEdges(me: in out; E: Edge from TopoDS)
|
|
---Purpose: returns a list of the created faces
|
|
-- from the edge <E>.
|
|
---C++: return const &
|
|
---Level: Public
|
|
returns ListOfShape from TopTools
|
|
is virtual;
|
|
|
|
|
|
fields
|
|
|
|
myShape : Shape from TopoDS is protected;
|
|
myGenFaces: ListOfShape from TopTools is protected;
|
|
myNewFaces: ListOfShape from TopTools is protected;
|
|
myEdgFaces: ListOfShape from TopTools is protected;
|
|
|
|
end MakeShape;
|