mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-17 05:37:45 +08:00
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
74 lines
2.5 KiB
Plaintext
74 lines
2.5 KiB
Plaintext
-- Created on: 1995-03-06
|
|
-- Created by: Laurent PAINNOT
|
|
-- Copyright (c) 1995-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.
|
|
|
|
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;
|