Files
OCCT/src/Poly/Poly_Triangle.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

80 lines
2.8 KiB
Plaintext
Executable File

-- Created on: 1995-03-06
-- Created by: Laurent PAINNOT
-- Copyright (c) 1995-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 Triangle from Poly
---Purpose: Describes a component triangle of a triangulation
-- (Poly_Triangulation object).
-- A Triangle is defined by a triplet of nodes. Each node is an
-- index in the table of nodes specific to an existing
-- triangulation of a shape, and represents a point on the surface.
raises
OutOfRange from Standard
is
Create returns Triangle from Poly;
---Purpose: Constructs a triangle and sets all indices to zero.
Create(N1,N2,N3 : Integer)
returns Triangle from Poly;
---Purpose: Constructs a triangle and sets its three indices
-- to N1, N2 and N3 respectively, where these node values
-- are indices in the table of nodes specific to an existing
-- triangulation of a shape.
Set(me : in out; N1,N2,N3 : Integer);
---Purpose: Sets the value of the three nodes of this triangle to N1, N2 and N3 respectively.
Set(me : in out; Index, Node : Integer)
---Purpose: Sets the value of the Indexth node of this triangle to Node.
-- Raises OutOfRange if Index is not in 1,2,3
raises
OutOfRange from Standard;
---C++: inline
Get(me; N1,N2,N3 : in out Integer);
--- Purpose: Returns the node indices of this triangle in N1, N2 and N3.
Value(me; Index : Integer) returns Integer
---Purpose: Get the node of given Index.
-- Raises OutOfRange from Standard if Index is not in 1,2,3
raises
OutOfRange from Standard;
---C++: inline
---C++: alias operator()
ChangeValue(me : in out; Index : Integer) returns Integer
---Purpose: Get the node of given Index.
-- Raises OutOfRange if Index is not in 1,2,3
raises
OutOfRange from Standard;
---C++: inline
---C++: return &
---C++: alias operator()
fields
myNodes : Integer [3];
end Triangle;