-- Created on: 1993-03-17 -- Created by: Didier PIFFAULT -- Copyright (c) 1993-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 DataStructureOfDelaun from BRepMesh inherits TShared from MMgt ---Purpose: Describes the data structure necessary for the -- mesh algorithms in two dimensions plane or on -- surface by meshing in UV space. uses Integer from Standard, ListOfInteger from BRepMesh, MapOfInteger from BRepMesh, PairOfIndex from BRepMesh, Box from Bnd, BoundSortBox from Bnd, BaseAllocator from BRepMesh, VertexTool from BRepMesh, IDMapOfLinkOfDataStructureOfDelaun from BRepMesh, IMapOfElementOfDataStructureOfDelaun from BRepMesh, SelectorOfDataStructureOfDelaun from BRepMesh, Vertex from BRepMesh, Edge from BRepMesh, Triangle from BRepMesh is Create (theAllocator: BaseAllocator from BRepMesh; NodeNumber : Integer from Standard = 100) ---Purpose: is just an evaluation of the -- presumed number of nodes in this mesh. The -- Mesh data structure will be automatically -- redimensioned if necessary. returns DataStructureOfDelaun from BRepMesh ; AddNode (me : mutable ; theNode : Vertex from BRepMesh) returns Integer from Standard ---Purpose: Adds a node to the mesh if the node is not -- already in the Mesh. Returns the index of the -- node in the structure. is static; GetNode (me : mutable; Index : Integer from Standard) returns Vertex from BRepMesh ---Purpose: Get the value of node . ---C++: return const & ---C++: alias operator () is static; GetNodeList (me : mutable; Index : Integer from Standard) returns ListOfInteger from BRepMesh ---Purpose: Get the list of node . ---C++: return const & is static; ForceRemoveNode (me : mutable; Index : Integer from Standard) ---Purpose: Removes the node of index from the mesh. is static; ForceRemoveLink (me : mutable; Index : Integer from Standard) ---Purpose: Removes the link of index from the mesh. is static; ReplaceNodes (me : mutable; NewNodes : VertexTool from BRepMesh) ---Purpose: Removes the all nodes and sets new map of -- nodes from the mesh. -- For internal use only. is static; RemoveNode (me : mutable; Index : Integer from Standard) ---Purpose: Removes the node of index from the mesh. is static; MoveNode (me : mutable ; Index : Integer from Standard; newNode : Vertex from BRepMesh) ---Purpose: Changes the UV value of node of index by -- . Returns false if is already in -- the structure. returns Boolean from Standard is static; NbNodes (me) returns Integer from Standard ---Purpose: Gives the number of nodes in this mesh. is static; AddLink (me : mutable; theLink : Edge from BRepMesh) returns Integer from Standard ---Purpose: Adds a Link to the mesh if the Link is not -- already in the structure. Returns the index of -- the link in the structure. is static; GetLink (me : mutable; Index : Integer from Standard) returns Edge from BRepMesh ---Purpose: Get the value of Link . ---C++: return const & is static; RemoveLink (me : mutable; Index : Integer from Standard) ---Purpose: Removes the Link of index from the -- mesh. is static; SubstituteLink (me : mutable ; Index : Integer from Standard; newLink : Edge from BRepMesh) ---Purpose: Substitutes the Link of index by -- clear the connectivity. returns Boolean from Standard is static; NbLinks (me) returns Integer from Standard ---Purpose: Gives the number of elements in this mesh. is static; AddElement (me : mutable; theElement : Triangle from BRepMesh) returns Integer from Standard ---Purpose: Adds an element to the mesh if it is not -- already in the Mesh. Returns the index of the -- element in the structure. is static; GetElement (me : mutable; Index : Integer from Standard) returns Triangle from BRepMesh ---Purpose: Get the value of Element . ---C++: return const & is static; RemoveElement (me : mutable; Index : Integer from Standard) ---Purpose: Removes the element of index in the mesh. is static; SubstituteElement (me : mutable ; Index : Integer from Standard; newElement : Triangle from BRepMesh) ---Purpose: Substitutes the element of index by -- . The links connectivity is updated. returns Boolean from Standard is static; NbElements (me) returns Integer from Standard ---Purpose: Gives the number of elements in this mesh. is static; ClearDomain (me : mutable) ---Purpose: Removes all elements is static; IndexOf (me: mutable; aNode : Vertex from BRepMesh) ---Purpose: Finds the index of the node. Returns 0 if the -- node is not in the mesh. returns Integer from Standard; IndexOf (me; aLink : Edge from BRepMesh) ---Purpose: Finds the index of the Link. Returns 0 if the -- Link is not in the mesh. returns Integer from Standard; IndexOf (me; anElement : Triangle from BRepMesh) ---Purpose: Finds the index of the Element. Returns 0 if -- the Element is not in the mesh. returns Integer from Standard; LinkNeighboursOf (me; theNode : in Integer from Standard) returns ListOfInteger from BRepMesh ---C++: return const & ---Purpose: Gives the list of Link's indices handling the -- node . is static; ElemConnectedTo (me; theLink : in Integer from Standard) returns PairOfIndex from BRepMesh ---C++: return const & ---Purpose: Gives the element's indices conected -- to . is static; ElemOfDomain (me) returns MapOfInteger from BRepMesh ---C++: return const & ---Purpose: Gives the list of element's indices is static; LinkOfDomain (me) returns MapOfInteger from BRepMesh ---C++: return const & ---Purpose: Gives the list of link's indices is static; ClearDeleted (me : mutable) ---Purpose: This method substitute the deleted items by -- the last in Indexed Data Maps to have only -- non-deleted elements, links or nodes in the -- structure. is static; -- Internal methods : ClearElement (me : mutable; Index : Integer from Standard; theElem : Triangle from BRepMesh) ---Purpose: Deletes the element of index in -- the mesh. Used by RemoveElement. is static private; Statistics (me; flot : in out OStream from Standard) ---Purpose: Give informations on map. is static; Allocator (me) returns BaseAllocator from BRepMesh; ---C++: return const& Data (me: mutable) returns VertexTool from BRepMesh; ---Purpose: Give the data structure for cell size and -- tolerance initialization. ---C++: return & fields myNodes : VertexTool from BRepMesh; myLinks : IDMapOfLinkOfDataStructureOfDelaun from BRepMesh; myDelLinks : ListOfInteger from BRepMesh; myElements : IMapOfElementOfDataStructureOfDelaun from BRepMesh; --myDelElements : ListOfInteger from BRepMesh; myElemOfDomain : MapOfInteger from BRepMesh; myLinkOfDomain : MapOfInteger from BRepMesh; myAllocator : BaseAllocator from BRepMesh; end DataStructureOfDelaun;