Files
OCCT/src/ShapeFix/ShapeFix_Wireframe.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

135 lines
5.6 KiB
Plaintext
Executable File

-- Created on: 1999-08-24
-- Created by: Sergei ZERTCHANINOV
-- Copyright (c) 1999 Matra Datavision
-- Copyright (c) 1999-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 Wireframe from ShapeFix inherits Root from ShapeFix
---Purpose : Provides methods for fixing wireframe of shape
uses
Shape from TopoDS,
Status from ShapeExtend,
Shape from GeomAbs,
HArray1OfReal from TColStd,
MapOfShape from TopTools,
DataMapOfShapeListOfShape from TopTools
is
Create returns Wireframe from ShapeFix;
Create (shape: Shape from TopoDS) returns Wireframe from ShapeFix;
ClearStatuses (me: mutable) is virtual;
---Purpose: Clears all statuses
Load (me : mutable; shape: Shape from TopoDS);
---Purpose: Loads a shape, resets statuses
FixWireGaps (me : mutable) returns Boolean from Standard;
---Purpose : Fixes gaps between ends of curves of adjacent edges
-- (both 3d and pcurves) in wires
-- If precision is 0.0, uses Precision::Confusion().
---Status : See StatusWireGaps() for details
-- OK - No gaps were found
-- DONE1 - Some gaps in 3D were fixed
-- DONE2 - Some gaps in 2D were fixed
-- FAIL1 - Failed to fix some gaps in 3D
-- FAIL2 - Failed to fix some gaps in 2D
---Returns : False if nothing done, else True
FixSmallEdges (me : mutable) returns Boolean from Standard;
---Purpose : Fixes small edges in shape by merging adjacent edges
-- If precision is 0.0, uses Precision::Confusion().
---Status : See StatusSmallEdges() for details
-- OK - No small edges were found
-- DONE1 - Some small edges were fixed
-- FAIL1 - Failed to fix some small edges
---Returns : False if nothing done, else True
CheckSmallEdges (me: mutable; theSmallEdges: out MapOfShape from TopTools;
theEdgeToFaces: out DataMapOfShapeListOfShape from TopTools;
theFaceWithSmall: out DataMapOfShapeListOfShape from TopTools;
theMultyEdges: out MapOfShape from TopTools)
returns Boolean from Standard;
---Purpose: Auxiliary tool for FixSmallEdges which checks for small edges and fills the maps.
-- Returns True if at least one small edge has been found.
MergeSmallEdges (me: mutable; theSmallEdges: in out MapOfShape from TopTools;
theEdgeToFaces: in out DataMapOfShapeListOfShape from TopTools;
theFaceWithSmall: in out DataMapOfShapeListOfShape from TopTools;
theMultyEdges: out MapOfShape from TopTools;
theModeDrop: Boolean = Standard_False;
theLimitAngle: Real = -1)
returns Boolean from Standard;
---Purpose: Auxiliary tool for FixSmallEdges which merges small edges.
-- If theModeDrop is equal to Standard_True then small edges,
-- which cannot be connected with adjacent edges are dropped.
-- Otherwise they are kept.
-- theLimitAngle specifies maximum allowed tangency
-- discontinuity between adjacent edges.
-- If theLimitAngle is equal to -1, this angle is not taken into account.
StatusWireGaps (me; status: Status from ShapeExtend) returns Boolean;
---C++: inline
---Purpose : Decodes the status of the last FixWireGaps.
-- OK - No gaps were found
-- DONE1 - Some gaps in 3D were fixed
-- DONE2 - Some gaps in 2D were fixed
-- FAIL1 - Failed to fix some gaps in 3D
-- FAIL2 - Failed to fix some gaps in 2D
StatusSmallEdges (me; status: Status from ShapeExtend) returns Boolean;
---C++: inline
---Purpose : Decodes the status of the last FixSmallEdges.
-- OK - No small edges were found
-- DONE1 - Some small edges were fixed
-- FAIL1 - Failed to fix some small edges
Shape (me : mutable) returns Shape from TopoDS;
---C++: inline
ModeDropSmallEdges(me : mutable) returns Boolean;
---C++: return &
---C++: inline
---Purpose: Returns mode managing removing small edges.
SetLimitAngle(me:mutable; theLimitAngle : Real);
---C++: inline
---Purpose:Set limit angle for merging edges.
LimitAngle(me) returns Real;
---C++: inline
---Purpose:Get limit angle for merging edges.
fields
myShape : Shape from TopoDS is protected;
myModeDrop : Boolean;
myLimitAngle : Real;
myStatusWireGaps : Integer from Standard;
myStatusSmallEdges : Integer from Standard;
end Wireframe;