Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
BRepFeat_RibSlot Class Reference

Provides functions to build mechanical features. Mechanical features include ribs - protrusions and grooves (or slots) - depressions along planar (linear) surfaces or revolution surfaces. The semantics of mechanical features is built around giving thickness to a contour. This thickness can either be unilateral - on one side of the contour - or bilateral - on both sides. As in the semantics of form features, the thickness is defined by construction of shapes in specific contexts. The development contexts differ, however,in case of mechanical features. Here they include extrusion: More...

#include <BRepFeat_RibSlot.hxx>

Inheritance diagram for BRepFeat_RibSlot:
Inheritance graph
[legend]

Public Member Functions

bool IsDeleted (const TopoDS_Shape &F) override
 Returns true if F a TopoDS_Shape of type edge or face has been deleted.
 
const NCollection_List< TopoDS_Shape > & Modified (const TopoDS_Shape &F) override
 Returns the list of generated Faces F. This list may be empty.
 
const NCollection_List< TopoDS_Shape > & Generated (const TopoDS_Shape &S) override
 Returns a list NCollection_List<TopoDS_Shape> of the faces S created in the shape.
 
const NCollection_List< TopoDS_Shape > & FirstShape () const
 Returns the list of shapes created at the bottom of the created form. It may be an empty list.
 
const NCollection_List< TopoDS_Shape > & LastShape () const
 Returns the list of shapes created at the top of the created form. It may be an empty list.
 
const NCollection_List< TopoDS_Shape > & FacesForDraft () const
 Returns a list of the limiting and glueing faces generated by the feature. These faces did not originally exist in the basis shape. The list provides the information necessary for subsequent addition of a draft to a face. It may be an empty list. If a face has tangent edges, no draft is possible, and the tangent edges must subsequently be removed if you want to add a draft to the face.
 
const NCollection_List< TopoDS_Shape > & NewEdges () const
 Returns a list of the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape. The list provides the information necessary for subsequent addition of fillets. It may be an empty list.
 
const NCollection_List< TopoDS_Shape > & TgtEdges () const
 Returns a list of the tangent edges among the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape and are tangent to the face against which the feature is built. The list provides the information necessary for subsequent addition of fillets. It may be an empty list. If an edge is tangent, no fillet is possible, and the edge must subsequently be removed if you want to add a fillet.
 
BRepFeat_StatusError CurrentStatusError () const
 
- Public Member Functions inherited from BRepBuilderAPI_MakeShape
virtual void Build (const Message_ProgressRange &theRange=Message_ProgressRange())
 This is called by Shape(). It does nothing but may be redefined.
 
virtual const TopoDS_ShapeShape ()
 Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built.
 
 operator TopoDS_Shape ()
 
- Public Member Functions inherited from BRepBuilderAPI_Command
virtual ~BRepBuilderAPI_Command ()
 
virtual bool IsDone () const
 
void Check () const
 Raises NotDone if done is false.
 

Static Public Member Functions

static double IntPar (const occ::handle< Geom_Curve > &C, const gp_Pnt &P)
 
static TopoDS_Face ChoiceOfFaces (NCollection_List< TopoDS_Shape > &faces, const occ::handle< Geom_Curve > &cc, const double par, const double bnd, const occ::handle< Geom_Plane > &Pln)
 

Protected Member Functions

 BRepFeat_RibSlot ()
 Redefines the empty constructor.
 
void LFPerform ()
 General perform method...
 
gp_Pnt CheckPoint (const TopoDS_Edge &e, const double bnd, const occ::handle< Geom_Plane > &Pln)
 
gp_Dir Normal (const TopoDS_Face &F, const gp_Pnt &P)
 
void EdgeExtention (TopoDS_Edge &e, const double bnd, const bool FirstLast)
 
double HeightMax (const TopoDS_Shape &theSbase, const TopoDS_Shape &theSUntil, gp_Pnt &p1, gp_Pnt &p2)
 
bool ExtremeFaces (const bool RevolRib, const double bnd, const occ::handle< Geom_Plane > &Pln, TopoDS_Edge &FirstEdge, TopoDS_Edge &LastEdge, TopoDS_Face &FirstFace, TopoDS_Face &LastFace, TopoDS_Vertex &FirstVertex, TopoDS_Vertex &LastVertex, bool &OnFirstFace, bool &OnLastFace, bool &PtOnFirstEdge, bool &PtOnLastEdge, TopoDS_Edge &OnFirstEdge, TopoDS_Edge &OnLastEdge)
 
void PtOnEdgeVertex (const bool RevolRib, const TopoDS_Shape &shape, const gp_Pnt &point, const TopoDS_Vertex &FirstVertex, const TopoDS_Vertex &LastVertex, bool &PtOnEdge, TopoDS_Edge &OnEdge, bool &PtOnVertex, TopoDS_Vertex &OnVertex)
 
bool SlidingProfile (TopoDS_Face &Prof, const bool RevolRib, const double myTol, int &Concavite, const occ::handle< Geom_Plane > &myPln, const TopoDS_Face &BndFace, const gp_Pnt &CheckPnt, const TopoDS_Face &FirstFace, const TopoDS_Face &LastFace, const TopoDS_Vertex &FirstVertex, const TopoDS_Vertex &LastVertex, const TopoDS_Edge &FirstEdge, const TopoDS_Edge &LastEdge)
 
bool NoSlidingProfile (TopoDS_Face &Prof, const bool RevolRib, const double myTol, int &Concavite, const occ::handle< Geom_Plane > &myPln, const double bnd, const TopoDS_Face &BndFace, const gp_Pnt &CheckPnt, const TopoDS_Face &FirstFace, const TopoDS_Face &LastFace, const TopoDS_Vertex &FirstVertex, const TopoDS_Vertex &LastVertex, const TopoDS_Edge &FirstEdge, const TopoDS_Edge &LastEdge, const bool OnFirstFace, const bool OnLastFace)
 
void UpdateDescendants (const LocOpe_Gluer &G)
 Updates the data structures of descendant shapes during the glueing operation.Returns the modified, generated and deleted faces during the course of the glueing operation.
 
void UpdateDescendants (const BRepAlgoAPI_BooleanOperation &aBOP, const TopoDS_Shape &SResult, const bool SkipFace=false)
 
- Protected Member Functions inherited from BRepBuilderAPI_MakeShape
 BRepBuilderAPI_MakeShape ()
 
- Protected Member Functions inherited from BRepBuilderAPI_Command
 BRepBuilderAPI_Command ()
 Set done to False.
 
void Done ()
 Set done to true.
 
void NotDone ()
 Set done to false.
 

Protected Attributes

gp_Pnt myFirstPnt
 
gp_Pnt myLastPnt
 
bool myFuse
 
bool mySliding
 
NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHashermyMap
 
NCollection_DataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHashermyLFMap
 
TopoDS_Shape myFShape
 
TopoDS_Shape myLShape
 
BRepFeat_PerfSelection myPerfSelection
 
TopoDS_Wire myWire
 
TopoDS_Shape mySbase
 
TopoDS_Face mySkface
 
TopoDS_Face myPbase
 
TopoDS_Shape myGShape
 
TopoDS_Shape mySUntil
 
NCollection_DataMap< TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHashermyGluedF
 
NCollection_List< TopoDS_ShapemyNewEdges
 
NCollection_List< TopoDS_ShapemyTgtEdges
 
NCollection_List< TopoDS_ShapemyFacesForDraft
 
BRepFeat_StatusError myStatusError
 
- Protected Attributes inherited from BRepBuilderAPI_MakeShape
TopoDS_Shape myShape
 
NCollection_List< TopoDS_ShapemyGenerated
 

Detailed Description

Provides functions to build mechanical features. Mechanical features include ribs - protrusions and grooves (or slots) - depressions along planar (linear) surfaces or revolution surfaces. The semantics of mechanical features is built around giving thickness to a contour. This thickness can either be unilateral - on one side of the contour - or bilateral - on both sides. As in the semantics of form features, the thickness is defined by construction of shapes in specific contexts. The development contexts differ, however,in case of mechanical features. Here they include extrusion:

Constructor & Destructor Documentation

◆ BRepFeat_RibSlot()

BRepFeat_RibSlot::BRepFeat_RibSlot ( )
protected

Redefines the empty constructor.

Member Function Documentation

◆ CheckPoint()

gp_Pnt BRepFeat_RibSlot::CheckPoint ( const TopoDS_Edge & e,
const double bnd,
const occ::handle< Geom_Plane > & Pln )
protected

◆ ChoiceOfFaces()

static TopoDS_Face BRepFeat_RibSlot::ChoiceOfFaces ( NCollection_List< TopoDS_Shape > & faces,
const occ::handle< Geom_Curve > & cc,
const double par,
const double bnd,
const occ::handle< Geom_Plane > & Pln )
static

◆ CurrentStatusError()

BRepFeat_StatusError BRepFeat_RibSlot::CurrentStatusError ( ) const

◆ EdgeExtention()

void BRepFeat_RibSlot::EdgeExtention ( TopoDS_Edge & e,
const double bnd,
const bool FirstLast )
protected

◆ ExtremeFaces()

bool BRepFeat_RibSlot::ExtremeFaces ( const bool RevolRib,
const double bnd,
const occ::handle< Geom_Plane > & Pln,
TopoDS_Edge & FirstEdge,
TopoDS_Edge & LastEdge,
TopoDS_Face & FirstFace,
TopoDS_Face & LastFace,
TopoDS_Vertex & FirstVertex,
TopoDS_Vertex & LastVertex,
bool & OnFirstFace,
bool & OnLastFace,
bool & PtOnFirstEdge,
bool & PtOnLastEdge,
TopoDS_Edge & OnFirstEdge,
TopoDS_Edge & OnLastEdge )
protected

◆ FacesForDraft()

const NCollection_List< TopoDS_Shape > & BRepFeat_RibSlot::FacesForDraft ( ) const

Returns a list of the limiting and glueing faces generated by the feature. These faces did not originally exist in the basis shape. The list provides the information necessary for subsequent addition of a draft to a face. It may be an empty list. If a face has tangent edges, no draft is possible, and the tangent edges must subsequently be removed if you want to add a draft to the face.

◆ FirstShape()

const NCollection_List< TopoDS_Shape > & BRepFeat_RibSlot::FirstShape ( ) const

Returns the list of shapes created at the bottom of the created form. It may be an empty list.

◆ Generated()

const NCollection_List< TopoDS_Shape > & BRepFeat_RibSlot::Generated ( const TopoDS_Shape & S)
overridevirtual

Returns a list NCollection_List<TopoDS_Shape> of the faces S created in the shape.

Reimplemented from BRepBuilderAPI_MakeShape.

◆ HeightMax()

double BRepFeat_RibSlot::HeightMax ( const TopoDS_Shape & theSbase,
const TopoDS_Shape & theSUntil,
gp_Pnt & p1,
gp_Pnt & p2 )
protected

◆ IntPar()

static double BRepFeat_RibSlot::IntPar ( const occ::handle< Geom_Curve > & C,
const gp_Pnt & P )
static

◆ IsDeleted()

bool BRepFeat_RibSlot::IsDeleted ( const TopoDS_Shape & F)
overridevirtual

Returns true if F a TopoDS_Shape of type edge or face has been deleted.

Reimplemented from BRepBuilderAPI_MakeShape.

◆ LastShape()

const NCollection_List< TopoDS_Shape > & BRepFeat_RibSlot::LastShape ( ) const

Returns the list of shapes created at the top of the created form. It may be an empty list.

◆ LFPerform()

void BRepFeat_RibSlot::LFPerform ( )
protected

General perform method...

◆ Modified()

const NCollection_List< TopoDS_Shape > & BRepFeat_RibSlot::Modified ( const TopoDS_Shape & F)
overridevirtual

Returns the list of generated Faces F. This list may be empty.

Reimplemented from BRepBuilderAPI_MakeShape.

◆ NewEdges()

const NCollection_List< TopoDS_Shape > & BRepFeat_RibSlot::NewEdges ( ) const

Returns a list of the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape. The list provides the information necessary for subsequent addition of fillets. It may be an empty list.

◆ Normal()

gp_Dir BRepFeat_RibSlot::Normal ( const TopoDS_Face & F,
const gp_Pnt & P )
protected

◆ NoSlidingProfile()

bool BRepFeat_RibSlot::NoSlidingProfile ( TopoDS_Face & Prof,
const bool RevolRib,
const double myTol,
int & Concavite,
const occ::handle< Geom_Plane > & myPln,
const double bnd,
const TopoDS_Face & BndFace,
const gp_Pnt & CheckPnt,
const TopoDS_Face & FirstFace,
const TopoDS_Face & LastFace,
const TopoDS_Vertex & FirstVertex,
const TopoDS_Vertex & LastVertex,
const TopoDS_Edge & FirstEdge,
const TopoDS_Edge & LastEdge,
const bool OnFirstFace,
const bool OnLastFace )
protected

◆ PtOnEdgeVertex()

void BRepFeat_RibSlot::PtOnEdgeVertex ( const bool RevolRib,
const TopoDS_Shape & shape,
const gp_Pnt & point,
const TopoDS_Vertex & FirstVertex,
const TopoDS_Vertex & LastVertex,
bool & PtOnEdge,
TopoDS_Edge & OnEdge,
bool & PtOnVertex,
TopoDS_Vertex & OnVertex )
protected

◆ SlidingProfile()

bool BRepFeat_RibSlot::SlidingProfile ( TopoDS_Face & Prof,
const bool RevolRib,
const double myTol,
int & Concavite,
const occ::handle< Geom_Plane > & myPln,
const TopoDS_Face & BndFace,
const gp_Pnt & CheckPnt,
const TopoDS_Face & FirstFace,
const TopoDS_Face & LastFace,
const TopoDS_Vertex & FirstVertex,
const TopoDS_Vertex & LastVertex,
const TopoDS_Edge & FirstEdge,
const TopoDS_Edge & LastEdge )
protected

◆ TgtEdges()

const NCollection_List< TopoDS_Shape > & BRepFeat_RibSlot::TgtEdges ( ) const

Returns a list of the tangent edges among the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape and are tangent to the face against which the feature is built. The list provides the information necessary for subsequent addition of fillets. It may be an empty list. If an edge is tangent, no fillet is possible, and the edge must subsequently be removed if you want to add a fillet.

◆ UpdateDescendants() [1/2]

void BRepFeat_RibSlot::UpdateDescendants ( const BRepAlgoAPI_BooleanOperation & aBOP,
const TopoDS_Shape & SResult,
const bool SkipFace = false )
protected

◆ UpdateDescendants() [2/2]

void BRepFeat_RibSlot::UpdateDescendants ( const LocOpe_Gluer & G)
protected

Updates the data structures of descendant shapes during the glueing operation.Returns the modified, generated and deleted faces during the course of the glueing operation.

Field Documentation

◆ myFacesForDraft

NCollection_List<TopoDS_Shape> BRepFeat_RibSlot::myFacesForDraft
protected

◆ myFirstPnt

gp_Pnt BRepFeat_RibSlot::myFirstPnt
protected

◆ myFShape

TopoDS_Shape BRepFeat_RibSlot::myFShape
protected

◆ myFuse

bool BRepFeat_RibSlot::myFuse
protected

◆ myGluedF

NCollection_DataMap<TopoDS_Shape, TopoDS_Shape, TopTools_ShapeMapHasher> BRepFeat_RibSlot::myGluedF
protected

◆ myGShape

TopoDS_Shape BRepFeat_RibSlot::myGShape
protected

◆ myLastPnt

gp_Pnt BRepFeat_RibSlot::myLastPnt
protected

◆ myLFMap

◆ myLShape

TopoDS_Shape BRepFeat_RibSlot::myLShape
protected

◆ myMap

◆ myNewEdges

NCollection_List<TopoDS_Shape> BRepFeat_RibSlot::myNewEdges
protected

◆ myPbase

TopoDS_Face BRepFeat_RibSlot::myPbase
protected

◆ myPerfSelection

BRepFeat_PerfSelection BRepFeat_RibSlot::myPerfSelection
protected

◆ mySbase

TopoDS_Shape BRepFeat_RibSlot::mySbase
protected

◆ mySkface

TopoDS_Face BRepFeat_RibSlot::mySkface
protected

◆ mySliding

bool BRepFeat_RibSlot::mySliding
protected

◆ myStatusError

BRepFeat_StatusError BRepFeat_RibSlot::myStatusError
protected

◆ mySUntil

TopoDS_Shape BRepFeat_RibSlot::mySUntil
protected

◆ myTgtEdges

NCollection_List<TopoDS_Shape> BRepFeat_RibSlot::myTgtEdges
protected

◆ myWire

TopoDS_Wire BRepFeat_RibSlot::myWire
protected

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