-- Created on: 1993-05-12 -- 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 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 CircleTool from BRepMesh ---Purpose: Create sort and destroy the circles used in -- triangulation. uses Boolean from Standard, Integer from Standard, Real from Standard, XY from gp, Circ2d from gp, ListOfInteger from BRepMesh, CellFilter from BRepMesh, CircleInspector from BRepMesh, BaseAllocator from BRepMesh is Create (theAlloc : in BaseAllocator from BRepMesh) returns CircleTool from BRepMesh; Create (numberOfComponents : in Integer from Standard; theAlloc : in BaseAllocator from BRepMesh) ---Purpose: Constructs a CircleTool with the maximal dimension -- of the occuped space and an evaluation of the -- number of circles. returns CircleTool from BRepMesh; Initialize (me : in out; numberOfComponents : in Integer from Standard) ---Purpose: Constructs a CircleTool with the maximal dimension -- of the occuped space and an evaluation of the -- number of circles. is static; SetCellSize(me : in out; theSize : in Real from Standard) ---Purpose: Sets new size for cellfilter is static; SetCellSize(me : in out; theXSize : in Real from Standard; theYSize : in Real from Standard) ---Purpose: Sets new size for cellfilter is static; SetMinMaxSize(me : in out; theMin : in XY from gp; theMax : in XY from gp) ---Purpose: Sets min and max size for circle is static; Add (me : in out; theCirc : in Circ2d from gp; theIndex : in Integer from Standard) ---Purpose: Adds and binds circle to the tool. is static; Add (me : in out; p1, p2, p3 : in XY from gp; theIndex : in Integer from Standard) ---Purpose: Computes adds and binds circle to the tool. returns Boolean from Standard is static; MocAdd (me : in out; theIndex : in Integer from Standard); ---Purpose: Adds implicit zero circle Delete (me : in out; theIndex : Integer from Standard) ---Purpose: Deletes a circle from the tool. is static; Select (me : in out; thePnt : XY from gp) ---Purpose: Select the circles which contains thePnt. ---C++: return & returns ListOfInteger from BRepMesh is static; fields Tolerance : Real from Standard; Allocator : BaseAllocator from BRepMesh; CellFilter : CellFilter from BRepMesh; Selector : CircleInspector from BRepMesh; FaceMax : XY from gp; FaceMin : XY from gp; end CircleTool;