0024881: Wrong status returned by ShapeFix_Wire::FixGaps3d () operation
[occt.git] / src / ShapeFix / ShapeFix_FixSmallSolid.cdl
CommitLineData
8422b578 1-- Created on: 2014-11-13
2-- Created by: Maxim YAKUNIN
3-- Copyright (c) 2014 OPEN CASCADE SAS
4--
5-- This file is part of Open CASCADE Technology software library.
6--
7-- This library is free software; you can redistribute it and/or modify it under
8-- the terms of the GNU Lesser General Public License version 2.1 as published
9-- by the Free Software Foundation, with special exception defined in the file
10-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11-- distribution for complete text of the license and disclaimer of any warranty.
12--
13-- Alternatively, this file may be used under the terms of Open CASCADE
14-- commercial license or contractual agreement.
15
7c8996f4 16class FixSmallSolid from ShapeFix inherits Root from ShapeFix
8422b578 17
18 ---Purpose: Fixing solids with small size
19
20uses
21 Shape from TopoDS,
22 ReShape from ShapeBuild
23
24is
25 Create returns FixSmallSolid;
26 ---Purpose: Construct
27
df515f16 28 SetFixMode (me: mutable; theMode: Integer);
29 ---Purpose: Set working mode for operator:
30 -- - theMode = 0 use both WidthFactorThreshold and VolumeThreshold parameters
31 -- - theMode = 1 use only WidthFactorThreshold parameter
32 -- - theMode = 2 use only VolumeThreshold parameter
33
7c8996f4 34 SetVolumeThreshold (me: mutable; theThreshold: Real = -1.0);
8422b578 35 ---Purpose: Set or clear volume threshold for small solids
36
7c8996f4 37 SetWidthFactorThreshold (me: mutable; theThreshold: Real = -1.0);
8422b578 38 ---Purpose: Set or clear width factor threshold for small solids
39
40 Remove(me; theShape: Shape from TopoDS; theContext: ReShape from ShapeBuild)
41 returns Shape from TopoDS;
42 ---Purpose: Remove small solids from the given shape
43
44 Merge (me; theShape: Shape from TopoDS; theContext: ReShape from ShapeBuild)
45 returns Shape from TopoDS;
46 ---Purpose: Merge small solids in the given shape to adjacent non-small ones
47
48 IsThresholdsSet (me) returns Boolean is private;
49
50 IsSmall (me; theSolid: Shape from TopoDS) returns Boolean is private;
51
df515f16 52 IsUsedWidthFactorThreshold (me) returns Boolean is private;
53
54 IsUsedVolumeThreshold (me) returns Boolean is private;
55
8422b578 56fields
57
df515f16 58 myFixMode : Integer;
8422b578 59 myVolumeThreshold : Real;
60 myWidthFactorThreshold : Real;
61
62end FixSmallSolid;