mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-16 13:20:33 +08:00
61 lines
2.2 KiB
Plaintext
Executable File
61 lines
2.2 KiB
Plaintext
Executable File
-- Created on: 2001-01-04
|
|
-- Copyright (c) 2001-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 ArrayOfSegments from Graphic3d inherits ArrayOfPrimitives from Graphic3d
|
|
|
|
is
|
|
|
|
-- constructor
|
|
Create (
|
|
maxVertexs: Integer from Standard;
|
|
maxEdges: Integer from Standard = 0;
|
|
hasVColors: Boolean from Standard = Standard_False)
|
|
returns mutable ArrayOfSegments from Graphic3d;
|
|
---Purpose: Creates an array of segments,
|
|
-- a segment can be filled as:
|
|
-- 1) creating a set of segments defined with his vertexs.
|
|
-- i.e:
|
|
-- myArray = Graphic3d_ArrayOfSegments(4)
|
|
-- myArray->AddVertex(x1,y1,z1)
|
|
-- ....
|
|
-- myArray->AddVertex(x4,y4,z4)
|
|
-- 2) creating a set of indexed segments defined with his vertex
|
|
-- ans edges.
|
|
-- i.e:
|
|
-- myArray = Graphic3d_ArrayOfSegments(4,0,8)
|
|
-- myArray->AddVertex(x1,y1,z1)
|
|
-- ....
|
|
-- myArray->AddVertex(x4,y4,z4)
|
|
-- myArray->AddEdge(1)
|
|
-- myArray->AddEdge(2)
|
|
-- myArray->AddEdge(3)
|
|
-- myArray->AddEdge(4)
|
|
-- myArray->AddEdge(2)
|
|
-- myArray->AddEdge(4)
|
|
-- myArray->AddEdge(1)
|
|
-- myArray->AddEdge(3)
|
|
--
|
|
-- <maxVertexs> defined the maximun allowed vertex number in the array.
|
|
-- <maxEdges> defined the maximun allowed edge number in the array.
|
|
-- Warning:
|
|
-- When <hasVColors> is TRUE , you must use only
|
|
-- AddVertex(Point,Color) method
|
|
|
|
end;
|