mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-12 11:06:26 +08:00
134 lines
5.8 KiB
Plaintext
Executable File
134 lines
5.8 KiB
Plaintext
Executable File
-- Created on: 1998-08-12
|
|
-- Created by: Galina KULIKOVA
|
|
-- Copyright (c) 1998-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 Shell from ShapeFix inherits Root from ShapeFix
|
|
|
|
---Purpose: Fixing orientation of faces in shell
|
|
|
|
uses
|
|
|
|
Compound from TopoDS,
|
|
Shell from TopoDS,
|
|
Shape from TopoDS,
|
|
Status from ShapeExtend,
|
|
BasicMsgRegistrator from ShapeExtend,
|
|
Face from ShapeFix,
|
|
ProgressIndicator from Message
|
|
|
|
is
|
|
|
|
Create returns Shell from ShapeFix;
|
|
---Purpose: Empty constructor
|
|
|
|
Create (shape: Shell from TopoDS)
|
|
returns Shell from ShapeFix;
|
|
---Purpose: Initializes by shell.
|
|
|
|
Init (me: mutable; shell: Shell from TopoDS);
|
|
---Purpose: Initializes by shell.
|
|
|
|
Perform (me: mutable;
|
|
theProgress : ProgressIndicator from Message = 0) returns Boolean;
|
|
---Purpose: Iterates on subshapes and performs fixes
|
|
-- (for each face calls ShapeFix_Face::Perform and
|
|
-- then calls FixFaceOrientation). The passed progress
|
|
-- indicator allows user to consult the current progress
|
|
-- stage and abort algorithm if needed.
|
|
|
|
FixFaceOrientation (me : mutable; shell : Shell from TopoDS;
|
|
isAccountMultiConex : Boolean = Standard_True;
|
|
NonManifold : Boolean = Standard_False ) returns Boolean;
|
|
---Purpose: Fixes orientation of faces in shell.
|
|
-- Changes orientation of face in the shell, if it is oriented opposite
|
|
-- to neigbouring faces. If it is not possible to orient all faces in the
|
|
-- shell (like in case of mebious band), this method orients only subset
|
|
-- of faces. Other faces are stored in Error compound.
|
|
-- Modes :
|
|
-- isAccountMultiConex - mode for account cases of multiconnexity.
|
|
-- If this mode is equal to Standard_True, separate shells will be created
|
|
-- in the cases of multiconnexity. If this mode is equal to Standard_False,
|
|
-- one shell will be created without account of multiconnexity.By defautt - Standard_True;
|
|
-- NonManifold - mode for creation of non-manifold shells.
|
|
-- If this mode is equal to Standard_True one non-manifold will be created from shell
|
|
-- contains multishared edges. Else if this mode is equal to Standard_False only
|
|
-- manifold shells will be created. By default - Standard_False.
|
|
--
|
|
---Returns: If resulting shell is ok returns TRUE, else returns FALSE.
|
|
---Status : OK - faces in shall were oriented correcty.
|
|
-- DONE - faces in shell oriented succesfully
|
|
-- FAIL - faces orientation process has been failed
|
|
|
|
Shell(me : mutable) returns Shell from TopoDS;
|
|
---Purpose: Returns fixed shell (or subset of oriented faces).
|
|
|
|
Shape(me : mutable) returns Shape from TopoDS;
|
|
---Purpose: In case of multiconnexity returns compound of fixed shells
|
|
-- else returns one shell..
|
|
NbShells(me) returns Integer;
|
|
---Purpose: Returns Number of obtainrd shells;
|
|
|
|
ErrorFaces(me) returns Compound from TopoDS;
|
|
---Purpose: Returns not oriented subset of faces.
|
|
|
|
Status (me; status : Status from ShapeExtend) returns Boolean;
|
|
---Purpose: Returns the status of the last Fix.
|
|
|
|
FixFaceTool (me:mutable) returns Face from ShapeFix;
|
|
---Purpose: Returns tool for fixing faces.
|
|
---C++:inline
|
|
|
|
SetMsgRegistrator (me: mutable; msgreg: BasicMsgRegistrator from ShapeExtend) is redefined;
|
|
---Purpose: Sets message registrator
|
|
|
|
SetPrecision (me: mutable; preci: Real) is redefined;
|
|
---Purpose: Sets basic precision value (also to FixWireTool)
|
|
|
|
SetMinTolerance (me: mutable; mintol: Real) is redefined;
|
|
---Purpose: Sets minimal allowed tolerance (also to FixWireTool)
|
|
|
|
SetMaxTolerance (me: mutable; maxtol: Real) is redefined;
|
|
---Purpose: Sets maximal allowed tolerance (also to FixWireTool)
|
|
|
|
FixFaceMode (me: mutable) returns Integer;
|
|
---C++: return &
|
|
---C++: inline
|
|
---Purpose: Returns (modifiable) the mode for applying fixes of
|
|
-- ShapeFix_Face, by default True.
|
|
|
|
FixOrientationMode (me: mutable) returns Integer;
|
|
---C++: return &
|
|
---C++: inline
|
|
---Purpose: Returns (modifiable) the mode for applying
|
|
-- FixFaceOrientation, by default True.
|
|
|
|
fields
|
|
|
|
myShell : Shell from TopoDS is protected;
|
|
myErrFaces : Compound from TopoDS is protected;
|
|
myStatus : Integer is protected;
|
|
myFixFace : Face from ShapeFix is protected;
|
|
myFixFaceMode : Integer is protected;
|
|
myFixOrientationMode : Integer is protected;
|
|
myNbShells : Integer is protected;
|
|
|
|
end Shell;
|