mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-11 09:32:38 +08:00
107 lines
3.5 KiB
Plaintext
Executable File
107 lines
3.5 KiB
Plaintext
Executable File
-- Created on: 1993-02-03
|
|
-- Created by: Laurent BOURESCHE
|
|
-- 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.
|
|
|
|
|
|
|
|
class NumShape from Sweep
|
|
|
|
---Purpose: Gives a simple indexed representation of a
|
|
-- Directing Edge topology.
|
|
|
|
uses
|
|
ShapeEnum from TopAbs,
|
|
Orientation from TopAbs
|
|
is
|
|
|
|
Create returns NumShape from Sweep;
|
|
---Purpose: Creates a dummy indexed edge.
|
|
|
|
Create (Index : Integer;
|
|
Type : ShapeEnum from TopAbs;
|
|
Closed : Boolean = Standard_False;
|
|
BegInf : Boolean = Standard_False;
|
|
EndInf : Boolean = Standard_False)
|
|
returns NumShape from Sweep;
|
|
|
|
---Purpose: Creates a new simple indexed edge.
|
|
--
|
|
-- For an Edge : Index is the number of vertices (0,
|
|
-- 1 or 2),Type is TopAbs_EDGE, Closed is true if it
|
|
-- is a closed edge, BegInf is true if the Edge is
|
|
-- infinite at the begenning, EndInf is true if the
|
|
-- edge is infinite at the end.
|
|
--
|
|
-- For a Vertex : Index is the index of the vertex in
|
|
-- the edge (1 or 2), Type is TopAbsVERTEX, all the
|
|
-- other fields have no meanning.
|
|
|
|
Init (me : in out;
|
|
Index : Integer;
|
|
Type : ShapeEnum from TopAbs;
|
|
Closed : Boolean = Standard_False;
|
|
BegInf : Boolean = Standard_False;
|
|
EndInf : Boolean = Standard_False)
|
|
|
|
---Purpose: Reinitialize a simple indexed edge.
|
|
--
|
|
-- For an Edge : Index is the number of vertices (0,
|
|
-- 1 or 2),Type is TopAbs_EDGE, Closed is true if it
|
|
-- is a closed edge, BegInf is true if the Edge is
|
|
-- infinite at the begenning, EndInf is true if the
|
|
-- edge is infinite at the end.
|
|
--
|
|
-- For a Vertex : Index is the index of the vertex in
|
|
-- the edge (1 or 2), Type is TopAbsVERTEX, Closed is
|
|
-- true if it is the vertex of a closed edge, all the
|
|
-- other fields have no meanning.
|
|
is static;
|
|
|
|
Index(me) returns Integer
|
|
---C++: inline
|
|
is static;
|
|
|
|
Type(me) returns ShapeEnum from TopAbs
|
|
---C++: inline
|
|
is static;
|
|
|
|
Closed(me) returns Boolean
|
|
---C++: inline
|
|
is static;
|
|
|
|
BegInfinite(me) returns Boolean
|
|
---C++: inline
|
|
is static;
|
|
|
|
EndInfinite(me) returns Boolean
|
|
---C++: inline
|
|
is static;
|
|
|
|
Orientation(me) returns Orientation from TopAbs
|
|
is static;
|
|
fields
|
|
|
|
myType : ShapeEnum from TopAbs;
|
|
myIndex : Integer;
|
|
myClosed : Boolean;
|
|
myBegInf : Boolean;
|
|
myEndInf : Boolean;
|
|
|
|
end NumShape;
|