1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-06 10:36:12 +03:00
occt/src/ShapeFix/ShapeFix_SplitTool.cdl
bugmster 973c2be1e1 0024428: Implementation of LGPL license
The copying permission statements at the beginning of source files updated to refer to LGPL.
Copyright dates extended till 2014 in advance.
2013-12-17 12:42:41 +04:00

80 lines
3.1 KiB
Plaintext

-- Created on: 2004-07-14
-- Created by: Sergey KUUL
-- Copyright (c) 2004-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 SplitTool from ShapeFix
---Purpose: Tool for splitting and cutting edges; includes methods
-- used in OverlappingTool and IntersectionTool
uses
Face from TopoDS,
Edge from TopoDS,
Vertex from TopoDS,
ReShape from ShapeBuild,
SequenceOfShape from TopTools
is
Create returns SplitTool from ShapeFix;
---Purpose: Empty constructor
SplitEdge(me; edge: Edge from TopoDS;
param: Real from Standard;
vert: Vertex from TopoDS;
face: Face from TopoDS;
newE1: in out Edge from TopoDS;
newE2: in out Edge from TopoDS;
tol3d, tol2d : Real from Standard)
returns Boolean from Standard;
---Purpose: Split edge on two new edges using new vertex "vert"
-- and "param" - parameter for splitting
-- The "face" is necessary for pcurves and using TransferParameterProj
SplitEdge (me; edge: Edge from TopoDS;
param1: Real from Standard;
param2: Real from Standard;
vert: Vertex from TopoDS;
face: Face from TopoDS;
newE1: in out Edge from TopoDS;
newE2: in out Edge from TopoDS;
tol3d, tol2d : Real from Standard)
returns Boolean from Standard;
---Purpose: Split edge on two new edges using new vertex "vert"
-- and "param1" and "param2" - parameter for splitting and cutting
-- The "face" is necessary for pcurves and using TransferParameterProj
CutEdge(me; edge: Edge from TopoDS; pend: Real from Standard;
cut: Real from Standard; face: Face from TopoDS;
iscutline: in out Boolean from Standard)
returns Boolean from Standard;
---Purpose: Cut edge by parameters pend and cut
SplitEdge(me; edge: Edge from TopoDS; fp: Real from Standard;
V1: Vertex from TopoDS; lp: Real from Standard;
V2: Vertex from TopoDS; face: Face from TopoDS;
SeqE: in out SequenceOfShape from TopTools;
aNum: in out Integer from Standard;
context: ReShape from ShapeBuild;
tol3d, tol2d : Real from Standard)
returns Boolean from Standard;
---Purpose: Split edge on two new edges using two new vertex V1 and V2
-- and two parameters for splitting - fp and lp correspondingly
-- The "face" is necessary for pcurves and using TransferParameterProj
-- aNum - number of edge in SeqE which corresponding to [fp,lp]
end SplitTool;