mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
106 lines
4.2 KiB
Plaintext
Executable File
106 lines
4.2 KiB
Plaintext
Executable File
-- Created on: 1998-06-03
|
|
-- Created by: data exchange team
|
|
-- 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 Solid from ShapeFix inherits Root from ShapeFix
|
|
|
|
---Purpose: Provides method to build a solid from a shells and
|
|
-- orients them in order to have a valid solid with finite volume
|
|
|
|
uses
|
|
|
|
Shell from TopoDS,
|
|
Solid from TopoDS,
|
|
Shape from TopoDS,
|
|
Shell from ShapeFix,
|
|
Status from ShapeExtend,
|
|
BasicMsgRegistrator from ShapeExtend,
|
|
ProgressIndicator from Message
|
|
|
|
is
|
|
Create returns Solid from ShapeFix;
|
|
---Purpose: Empty constructor;
|
|
|
|
Create (solid : Solid from TopoDS) returns Solid from ShapeFix;
|
|
---Purpose: Initializes by solid.
|
|
|
|
Init(me: mutable; solid : Solid from TopoDS) is virtual;
|
|
---Purpose: Initializes by solid .
|
|
|
|
Perform(me: mutable;
|
|
theProgress : ProgressIndicator from Message = 0) returns Boolean is virtual;
|
|
---Purpose: Iterates on shells and performs fixes
|
|
-- (calls ShapeFix_Shell for each subshell). The passed
|
|
-- progress indicator allows user to consult the current
|
|
-- progress stage and abort algorithm if needed.
|
|
|
|
SolidFromShell (me: mutable; shell: Shell from TopoDS)
|
|
returns Solid from TopoDS;
|
|
---Purpose: Calls MakeSolid and orients the solid to be "not infinite"
|
|
|
|
Status (me; status : Status from ShapeExtend) returns Boolean;
|
|
---Purpose: Returns the status of the last Fix.
|
|
|
|
Solid (me) returns Shape from TopoDS;
|
|
---Purpose: Returns resulting solid.
|
|
|
|
FixShellTool (me) returns Shell from ShapeFix;
|
|
---Purpose: Returns tool for fixing shells.
|
|
---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 FixShellTool)
|
|
|
|
SetMinTolerance (me: mutable; mintol: Real) is redefined;
|
|
---Purpose: Sets minimal allowed tolerance (also to FixShellTool)
|
|
|
|
SetMaxTolerance (me: mutable; maxtol: Real) is redefined;
|
|
---Purpose: Sets maximal allowed tolerance (also to FixShellTool)
|
|
|
|
FixShellMode (me: mutable) returns Integer;
|
|
---C++: return &
|
|
---C++: inline
|
|
---Purpose: Returns (modifiable) the mode for applying fixes of
|
|
-- ShapeFix_Shell, by default True.
|
|
CreateOpenSolidMode(me: mutable) returns Boolean;
|
|
---C++: return &
|
|
---C++: inline
|
|
---Purpose: Returns (modifiable) the mode for creation of solids.
|
|
-- If mode myCreateOpenSolidMode is equal to true
|
|
-- solids are created from open shells
|
|
-- else solids are created from closed shells only.
|
|
-- ShapeFix_Shell, by default False.
|
|
Shape(me : mutable) returns Shape from TopoDS;
|
|
---Purpose: In case of multiconnexity returns compound of fixed solids
|
|
-- else returns one solid.
|
|
fields
|
|
|
|
mySolid : Shape from TopoDS is protected;
|
|
myFixShell : Shell from ShapeFix is protected;
|
|
myStatus : Integer is protected;
|
|
myFixShellMode : Integer is protected;
|
|
myCreateOpenSolidMode : Boolean;
|
|
|
|
end Solid;
|