mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-01 11:34:54 +08:00
80 lines
2.8 KiB
Plaintext
Executable File
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;
|