Open CASCADE Technology  7.3.0
Public Member Functions
BRepFill_PipeShell Class Reference

Computes a topological shell using some wires (spines and profiles) and diplacement option Perform general sweeping construction. More...

#include <BRepFill_PipeShell.hxx>

Inheritance diagram for BRepFill_PipeShell:
Inheritance graph
[legend]

Public Member Functions

 BRepFill_PipeShell (const TopoDS_Wire &Spine)
 Set an sweep's mode If no mode are setted, the mode use in MakePipe is used. More...
 
void Set (const Standard_Boolean Frenet=Standard_False)
 Set an Frenet or an CorrectedFrenet trihedron to perform the sweeping. More...
 
void SetDiscrete ()
 Set a Discrete trihedron to perform the sweeping. More...
 
void Set (const gp_Ax2 &Axe)
 Set an fixed trihedron to perform the sweeping all sections will be parallel. More...
 
void Set (const gp_Dir &BiNormal)
 Set an fixed BiNormal direction to perform the sweeping. More...
 
Standard_Boolean Set (const TopoDS_Shape &SpineSupport)
 Set support to the spine to define the BiNormal at the spine, like the normal the surfaces. Warning: To be effective, Each edge of the <spine> must have an representaion on one face of<SpineSupport> More...
 
void Set (const TopoDS_Wire &AuxiliarySpine, const Standard_Boolean CurvilinearEquivalence=Standard_True, const BRepFill_TypeOfContact KeepContact=BRepFill_NoContact)
 Set an auxiliary spine to define the Normal For each Point of the Spine P, an Point Q is evalued on <AuxiliarySpine> If <CurvilinearEquivalence> Q split <AuxiliarySpine> with the same length ratio than P split <Spline>. Else the plan define by P and the tangent to the <Spine> intersect <AuxiliarySpine> in Q. If <KeepContact> equals BRepFill_NoContact: The Normal is defined by the vector PQ. If <KeepContact> equals BRepFill_Contact: The Normal is defined to achieve that the sweeped section is in contact to the auxiliarySpine. The width of section is constant all along the path. In other words, the auxiliary spine lies on the swept surface, but not necessarily is a boundary of this surface. However, the auxiliary spine has to be close enough to the main spine to provide intersection with any section all along the path. If <KeepContact> equals BRepFill_ContactOnBorder: The auxiliary spine becomes a boundary of the swept surface and the width of section varies along the path. More...
 
void SetMaxDegree (const Standard_Integer NewMaxDegree)
 Define the maximum V degree of resulting surface. More...
 
void SetMaxSegments (const Standard_Integer NewMaxSegments)
 Define the maximum number of spans in V-direction on resulting surface. More...
 
void SetForceApproxC1 (const Standard_Boolean ForceApproxC1)
 Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0. Give section to sweep. Possibilities are : More...
 
void Add (const TopoDS_Shape &Profile, const Standard_Boolean WithContact=Standard_False, const Standard_Boolean WithCorrection=Standard_False)
 Set an section. The corespondance with the spine, will be automaticaly performed. More...
 
void Add (const TopoDS_Shape &Profile, const TopoDS_Vertex &Location, const Standard_Boolean WithContact=Standard_False, const Standard_Boolean WithCorrection=Standard_False)
 Set an section. The corespondance with the spine, is given by <Location> More...
 
void SetLaw (const TopoDS_Shape &Profile, const Handle< Law_Function > &L, const Standard_Boolean WithContact=Standard_False, const Standard_Boolean WithCorrection=Standard_False)
 Set an section and an homotetic law. The homotetie's centers is given by point on the <Spine>. More...
 
void SetLaw (const TopoDS_Shape &Profile, const Handle< Law_Function > &L, const TopoDS_Vertex &Location, const Standard_Boolean WithContact=Standard_False, const Standard_Boolean WithCorrection=Standard_False)
 Set an section and an homotetic law. The homotetie center is given by point on the <Spine> More...
 
void DeleteProfile (const TopoDS_Shape &Profile)
 Delete an section. More...
 
Standard_Boolean IsReady () const
 Say if <me> is ready to build the shape return False if <me> do not have section definition. More...
 
GeomFill_PipeError GetStatus () const
 Get a status, when Simulate or Build failed. More...
 
void SetTolerance (const Standard_Real Tol3d=1.0e-4, const Standard_Real BoundTol=1.0e-4, const Standard_Real TolAngular=1.0e-2)
 
void SetTransition (const BRepFill_TransitionStyle Mode=BRepFill_Modified, const Standard_Real Angmin=1.0e-2, const Standard_Real Angmax=6.0)
 Set the Transition Mode to manage discontinuities on the sweep. More...
 
void Simulate (const Standard_Integer NumberOfSection, TopTools_ListOfShape &Sections)
 Perform simulation of the sweep : Somes Section are returned. More...
 
Standard_Boolean Build ()
 Builds the resulting shape (redefined from MakeShape). More...
 
Standard_Boolean MakeSolid ()
 Transform the sweeping Shell in Solid. If the section are not closed returns False. More...
 
const TopoDS_ShapeShape () const
 Returns the result Shape. More...
 
Standard_Real ErrorOnSurface () const
 
const TopoDS_ShapeFirstShape () const
 Returns the TopoDS Shape of the bottom of the sweep. More...
 
const TopoDS_ShapeLastShape () const
 Returns the TopoDS Shape of the top of the sweep. More...
 
void Profiles (TopTools_ListOfShape &theProfiles)
 Returns the list of original profiles. More...
 
void Generated (const TopoDS_Shape &S, TopTools_ListOfShape &L)
 Returns the list of shapes generated from the shape <S>. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object. More...
 
- Static Public Member Functions inherited from Standard_Transient
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Detailed Description

Computes a topological shell using some wires (spines and profiles) and diplacement option Perform general sweeping construction.

Constructor & Destructor Documentation

◆ BRepFill_PipeShell()

BRepFill_PipeShell::BRepFill_PipeShell ( const TopoDS_Wire Spine)

Set an sweep's mode If no mode are setted, the mode use in MakePipe is used.

Member Function Documentation

◆ Add() [1/2]

void BRepFill_PipeShell::Add ( const TopoDS_Shape Profile,
const Standard_Boolean  WithContact = Standard_False,
const Standard_Boolean  WithCorrection = Standard_False 
)

Set an section. The corespondance with the spine, will be automaticaly performed.

◆ Add() [2/2]

void BRepFill_PipeShell::Add ( const TopoDS_Shape Profile,
const TopoDS_Vertex Location,
const Standard_Boolean  WithContact = Standard_False,
const Standard_Boolean  WithCorrection = Standard_False 
)

Set an section. The corespondance with the spine, is given by <Location>

◆ Build()

Standard_Boolean BRepFill_PipeShell::Build ( )

Builds the resulting shape (redefined from MakeShape).

◆ DeleteProfile()

void BRepFill_PipeShell::DeleteProfile ( const TopoDS_Shape Profile)

Delete an section.

◆ ErrorOnSurface()

Standard_Real BRepFill_PipeShell::ErrorOnSurface ( ) const

◆ FirstShape()

const TopoDS_Shape& BRepFill_PipeShell::FirstShape ( ) const

Returns the TopoDS Shape of the bottom of the sweep.

◆ Generated()

void BRepFill_PipeShell::Generated ( const TopoDS_Shape S,
TopTools_ListOfShape L 
)

Returns the list of shapes generated from the shape <S>.

◆ GetStatus()

GeomFill_PipeError BRepFill_PipeShell::GetStatus ( ) const

Get a status, when Simulate or Build failed.

◆ IsReady()

Standard_Boolean BRepFill_PipeShell::IsReady ( ) const

Say if <me> is ready to build the shape return False if <me> do not have section definition.

◆ LastShape()

const TopoDS_Shape& BRepFill_PipeShell::LastShape ( ) const

Returns the TopoDS Shape of the top of the sweep.

◆ MakeSolid()

Standard_Boolean BRepFill_PipeShell::MakeSolid ( )

Transform the sweeping Shell in Solid. If the section are not closed returns False.

◆ Profiles()

void BRepFill_PipeShell::Profiles ( TopTools_ListOfShape theProfiles)
inline

Returns the list of original profiles.

◆ Set() [1/5]

void BRepFill_PipeShell::Set ( const Standard_Boolean  Frenet = Standard_False)

Set an Frenet or an CorrectedFrenet trihedron to perform the sweeping.

◆ Set() [2/5]

void BRepFill_PipeShell::Set ( const gp_Ax2 Axe)

Set an fixed trihedron to perform the sweeping all sections will be parallel.

◆ Set() [3/5]

void BRepFill_PipeShell::Set ( const gp_Dir BiNormal)

Set an fixed BiNormal direction to perform the sweeping.

◆ Set() [4/5]

Standard_Boolean BRepFill_PipeShell::Set ( const TopoDS_Shape SpineSupport)

Set support to the spine to define the BiNormal at the spine, like the normal the surfaces. Warning: To be effective, Each edge of the <spine> must have an representaion on one face of<SpineSupport>

◆ Set() [5/5]

void BRepFill_PipeShell::Set ( const TopoDS_Wire AuxiliarySpine,
const Standard_Boolean  CurvilinearEquivalence = Standard_True,
const BRepFill_TypeOfContact  KeepContact = BRepFill_NoContact 
)

Set an auxiliary spine to define the Normal For each Point of the Spine P, an Point Q is evalued on <AuxiliarySpine> If <CurvilinearEquivalence> Q split <AuxiliarySpine> with the same length ratio than P split <Spline>. Else the plan define by P and the tangent to the <Spine> intersect <AuxiliarySpine> in Q. If <KeepContact> equals BRepFill_NoContact: The Normal is defined by the vector PQ. If <KeepContact> equals BRepFill_Contact: The Normal is defined to achieve that the sweeped section is in contact to the auxiliarySpine. The width of section is constant all along the path. In other words, the auxiliary spine lies on the swept surface, but not necessarily is a boundary of this surface. However, the auxiliary spine has to be close enough to the main spine to provide intersection with any section all along the path. If <KeepContact> equals BRepFill_ContactOnBorder: The auxiliary spine becomes a boundary of the swept surface and the width of section varies along the path.

◆ SetDiscrete()

void BRepFill_PipeShell::SetDiscrete ( )

Set a Discrete trihedron to perform the sweeping.

◆ SetForceApproxC1()

void BRepFill_PipeShell::SetForceApproxC1 ( const Standard_Boolean  ForceApproxC1)

Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0. Give section to sweep. Possibilities are :

  • Give one or sevral profile
  • Give one profile and an homotetic law.
  • Automatic compute of correspondance beetween profile, and section on the sweeped shape
  • correspondance beetween profile, and section on the sweeped shape defined by a vertex of the spine

◆ SetLaw() [1/2]

void BRepFill_PipeShell::SetLaw ( const TopoDS_Shape Profile,
const Handle< Law_Function > &  L,
const Standard_Boolean  WithContact = Standard_False,
const Standard_Boolean  WithCorrection = Standard_False 
)

Set an section and an homotetic law. The homotetie's centers is given by point on the <Spine>.

◆ SetLaw() [2/2]

void BRepFill_PipeShell::SetLaw ( const TopoDS_Shape Profile,
const Handle< Law_Function > &  L,
const TopoDS_Vertex Location,
const Standard_Boolean  WithContact = Standard_False,
const Standard_Boolean  WithCorrection = Standard_False 
)

Set an section and an homotetic law. The homotetie center is given by point on the <Spine>

◆ SetMaxDegree()

void BRepFill_PipeShell::SetMaxDegree ( const Standard_Integer  NewMaxDegree)

Define the maximum V degree of resulting surface.

◆ SetMaxSegments()

void BRepFill_PipeShell::SetMaxSegments ( const Standard_Integer  NewMaxSegments)

Define the maximum number of spans in V-direction on resulting surface.

◆ SetTolerance()

void BRepFill_PipeShell::SetTolerance ( const Standard_Real  Tol3d = 1.0e-4,
const Standard_Real  BoundTol = 1.0e-4,
const Standard_Real  TolAngular = 1.0e-2 
)

◆ SetTransition()

void BRepFill_PipeShell::SetTransition ( const BRepFill_TransitionStyle  Mode = BRepFill_Modified,
const Standard_Real  Angmin = 1.0e-2,
const Standard_Real  Angmax = 6.0 
)

Set the Transition Mode to manage discontinuities on the sweep.

◆ Shape()

const TopoDS_Shape& BRepFill_PipeShell::Shape ( ) const

Returns the result Shape.

◆ Simulate()

void BRepFill_PipeShell::Simulate ( const Standard_Integer  NumberOfSection,
TopTools_ListOfShape Sections 
)

Perform simulation of the sweep : Somes Section are returned.


The documentation for this class was generated from the following file: